/* =============================================================
   Saum — Global Styles
   Shared across all pages. Header and footer are canonical here.
   Page-specific styles live in each page's own <style> block.
   ============================================================= */

/* ── Variables ── */
:root {
  --primary-color: #c9b18c;
  --secondary-color: #f5f0e6;
  --text-color: #1e1e1e;
  --heading-color: #111111;
  --accent-color: #4a3c24;
  --button-bg: #7a6344;
  --button-hover-bg: #4a3c24;
  --footer-bg: #3a3a3a;
  --light-bg: #faf7f2;
  --light-beige: #fdfbf7;
  --white: #ffffff;
  --menu-active-color: #FF8C00;
}

/* ── Reset ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cormorant Garamond', 'Palatino', serif;
}

/* ── Base ── */
body {
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 400;
  color: var(--heading-color);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; margin-bottom: 1rem; }

p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ── */
header {
  background-color: var(--white);
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 130px;
  height: auto;
}

/* ── Navigation ── */
nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #000000;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--menu-active-color);
}

/* ── Dropdowns ── */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  border-radius: 4px;
  top: 100%;
  left: 0;
  margin-top: 0;
}

nav ul li.dropdown:last-child .dropdown-content {
  left: auto;
  right: 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.8rem 1rem;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
  white-space: normal;
  line-height: 1.4;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.dropdown > a::after {
  content: ' ▼';
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

/* ── Footer ── */
footer {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 3rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-variant-numeric: lining-nums;
}

.copyright p {
  opacity: 0.6;
  font-size: 0.9rem;
  margin: 0;
}

/* ── Mobile: header & nav ── */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  nav ul li {
    margin: 0;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border: 1px solid var(--secondary-color);
    margin-top: 0.5rem;
    border-radius: 4px;
  }

  .dropdown-content.show {
    display: block !important;
  }

  .container {
    padding: 0 1.5rem;
  }
}
