/* ========== FONTS (Self-hosted) ========== */
/* Variable font: one file covers weights 100-900 (and optical size) for all
   body copy, nav, and button text set in Inter. */
@font-face {
  font-family: "Inter";
  src: url("/assets/font/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Headline typeface: only the SemiBold weight is used (h1 and h2-h6). */
@font-face {
  font-family: "Jost";
  src: url("/assets/font/Jost-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Fallback for browsers that don't support smooth scroll */
  -webkit-scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f9f7f4;
  color: #351d14;
  line-height: 1.6;
  font-size: 18px;
}

/* ========== BASE TYPOGRAPHY ========== */
/* All body copy: Inter Regular, 18px, 28px line-height, 1px letter-spacing */
p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 1px;
}

/* All section headlines (h1 is sized/handled separately in the hero) */
h2,
h3,
h4,
h5,
h6 {
  font-family: "Jost", sans-serif;
  font-size: 36px;
  font-weight: 600;
}

/* ========== HEADER ========== */
header {
  background-color: #f9f7f4;
  border-bottom: 1px solid #d4c5bd;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 100;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.logo {
  font-family: "Jost", sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #351d14;
  text-decoration: none;
  flex-shrink: 0;
  min-width: fit-content;
}

/* RIGHT: Nav menu + CTA grouped together */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-center {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 48px;
}

.mobile-cta-row {
  display: none;
  background-color: #f9f7f4;
  border-top: 1px solid #d4c5bd;
  padding: 16px 40px;
  text-align: center;
}

nav a {
  text-decoration: none;
  color: #351d14;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

nav a:hover {
  color: #d4c5bd;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 0.5px;
  background-color: #351d14;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  -webkit-flex-direction: column;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: #351d14;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  -webkit-transform: rotate(45deg) translate(8px, 8px);
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  -webkit-transform: rotate(-45deg) translate(8px, -8px);
  transform: rotate(-45deg) translate(8px, -8px);
}

nav {
  position: static;
  max-height: none;
  opacity: 1;
  display: flex;
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 40px;
  background-color: #351d14;
  background-image: url("/assets/imgs/EDONA_StylisticHero_Approved.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Primary brown overlay at 50% opacity over the hero background image */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(53, 29, 20, 0.5);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  font-family: "Jost", sans-serif;
  font-size: 104px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f9f7f4;
  margin-bottom: 32px;
  line-height: 1.2;
}

.hero .tagline {
  color: #f9f7f4;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-block;
  padding: 18px 48px;
  background-color: #f9f7f4;
  color: #351d14;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid #f9f7f4;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary:hover {
  background-color: #d4c5bd;
  color: #351d14;
  border-color: #d4c5bd;
}

.btn-primary-dark {
  display: inline-block;
  padding: 18px 48px;
  background-color: #351d14;
  color: #f9f7f4;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid #351d14;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary-dark:hover {
  background-color: #d4c5bd;
  color: #351d14;
  border-color: #d4c5bd;
}

/* ========== NAVIGATION CTA BUTTON ========== */
.btn-nav-cta {
  display: inline-block;
  padding: 12px 24px;
  background-color: #351d14;
  color: #f9f7f4;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid #351d14;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.btn-nav-cta:hover {
  background-color: #d4c5bd;
  color: #351d14;
  border-color: #d4c5bd;
}

.btn-nav-cta-desktop {
  display: inline-block;
  flex-shrink: 0;
}

.nav-cta-item {
  display: none !important;
}

.btn-nav-cta-mobile {
  display: none;
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: 120px 40px;
  background-color: #351d14;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: #f9f7f4;
}

.about-text {
  color: #f9f7f4;
  margin-bottom: 24px;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-image {
  width: 85%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 12px solid #351d14;
  border-radius: 8px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== SERVICES SECTION ========== */
.services {
  padding: 120px 40px;
  background-color: #f9f7f4;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
}

.services h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 80px;
  color: #351d14;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.service-category {
  border-top: 1px solid #d4c5bd;
  padding-top: 40px;
  border-radius: 6px;
}

.service-category h3 {
  letter-spacing: 1px;
  margin-bottom: 32px;
  color: #351d14;
  text-transform: uppercase;
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.service-table th {
  border-bottom: 1px solid #d4c5bd;
  padding: 12px 0;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #351d14;
}

.service-table td {
  border-bottom: 1px solid #d4c5bd;
  padding: 16px 0;
  font-size: 14px;
  color: #351d14;
}

.service-table td:nth-child(n + 2) {
  text-align: right;
}

.service-table th:nth-child(n + 2) {
  text-align: right;
}

.service-table tr:last-child td {
  border-bottom: none;
}

/* ========== GALLERY SECTION ========== */
.gallery {
  padding: 120px 40px;
  background-color: #351d14;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 80px;
  color: #f9f7f4;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  border: 8px solid #f9f7f4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== OPT-IN FORM SECTION ========== */
.opt-in-form {
  padding: 120px 40px;
  background-color: #f9f7f4;
}

.opt-in-form-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.opt-in-copy h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #351d14;
}

.opt-in-copy p {
  color: #351d14;
}

.opt-in-form-container {
  height: 654px;
}

.opt-in-form-container iframe {
  display: block;
}

/* ========== LEGAL / POLICY PAGES ========== */
.legal-hero {
  padding: 100px 40px 60px;
  background-color: #351d14;
  text-align: center;
}

.legal-hero h1 {
  font-family: "Jost", sans-serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f9f7f4;
  margin-bottom: 16px;
}

.legal-hero .updated {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4c5bd;
  font-weight: 500;
}

.legal-content {
  padding: 100px 40px;
}

.legal-content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-back-link {
  display: inline-block;
  margin-bottom: 48px;
  color: #351d14;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-bottom: 1px solid #d4c5bd;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-back-link:hover {
  color: #a89888;
  border-color: #a89888;
}

.legal-content-inner h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  color: #351d14;
}

.legal-content-inner h2:first-of-type {
  margin-top: 0;
}

.legal-content-inner h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #351d14;
}

.legal-content-inner p {
  margin-bottom: 20px;
  color: #351d14;
}

.legal-content-inner ul,
.legal-content-inner ol {
  margin: 0 0 20px 24px;
}

.legal-content-inner li {
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 1px;
  color: #351d14;
}

.legal-content-inner a {
  color: #351d14;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content-inner a:hover {
  color: #a89888;
}

.legal-callout {
  background-color: rgba(212, 197, 189, 0.25);
  border-left: 4px solid #351d14;
  padding: 24px 28px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.legal-callout p {
  margin-bottom: 0;
}

.legal-callout p + p {
  margin-top: 16px;
}

/* ========== FOOTER ========== */
footer {
  background-color: #351d14;
  color: #f9f7f4;
  padding: 80px 40px;
  border-top: 2px solid #d4c5bd;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

.footer-section h3 {
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #f9f7f4;
}

.footer-section p {
  margin-bottom: 12px;
  color: #d4c5bd;
}

.footer-section a {
  color: #d4c5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #f9f7f4;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d4c5bd;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #d4c5bd;
}

.social-links a:hover {
  background-color: #d4c5bd;
  color: #351d14;
}

.social-links svg {
  width: 14px;
  height: 14px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 80px auto 0;
  padding-top: 40px;
  border-top: 1px solid #d4c5bd;
  text-align: center;
  color: #d1d1cc;
}

.footer-legal-links {
  margin-top: 16px;
}

.footer-legal-links a {
  color: #d4c5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #f9f7f4;
}

.footer-legal-links .footer-legal-sep {
  color: #a89888;
  margin: 0 8px;
}

.footer-credit {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #a89888;
  opacity: 0.6;
}

.footer-credit a {
  font-weight: 400;
  color: #a89888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: #d4c5bd;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .header-container {
    padding: 20px 30px;
    gap: 24px;
  }

  nav ul {
    gap: 32px;
  }

  .btn-nav-cta-desktop {
    padding: 14px 28px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .legal-hero {
    padding: 90px 30px 50px;
  }

  .legal-hero h1 {
    font-size: 44px;
  }

  .legal-content {
    padding: 80px 30px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .opt-in-form-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .opt-in-form-container {
    height: auto;
    min-height: 400px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* HEADER */
  .header-container {
    padding: 16px 20px;
  }

  .logo {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 16px;
  }

  /* Mobile Layout: Stack into 2 rows */
  .header-container {
    flex-direction: column;
    gap: 0;
    padding: 16px 20px;
    position: relative;
  }

  .logo {
    font-size: 32px;
    letter-spacing: 3px;
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .nav-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav {
    position: static;
    background-color: transparent;
    border: none;
    max-height: none;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 99;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  nav.active {
    max-height: none;
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    align-items: center;
    width: 100%;
    justify-content: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  nav.active ul {
    max-height: 300px;
    opacity: 1;
  }

  nav li {
    border-bottom: 1px solid #d4c5bd;
    width: 100%;
    text-align: center;
  }

  nav li:first-child {
    border-top: none;
  }

  nav li:last-child {
    border-bottom: 1px solid #d4c5bd;
  }

  nav a {
    display: block;
    padding: 16px 20px;
    font-size: 13px;
    text-align: center;
  }

  .btn-nav-cta-desktop {
    display: none;
  }

  /* CTA Button inside nav menu on mobile */
  .nav-cta-item {
    display: block !important;
    border-bottom: none;
    padding: 12px 20px;
  }

  .nav-cta-item .btn-nav-cta-mobile {
    display: inline-block;
    padding: 10px 28px;
    font-size: 12px;
    width: auto;
  }

  /* Add top border to nav when menu opens */
  nav ul {
    border-top: 1px solid #d4c5bd;
  }

  /* HERO */
  .hero {
    padding: 60px 20px;
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .hero .tagline {
    margin-bottom: 32px;
  }

  .legal-hero {
    padding: 70px 20px 40px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-content {
    padding: 60px 20px;
  }

  .legal-content-inner h2 {
    margin-top: 40px;
    margin-bottom: 16px;
  }

  .legal-callout {
    padding: 20px;
  }

  .btn-primary {
    padding: 16px 40px;
    font-size: 13px;
    letter-spacing: 1.5px;
    width: 100%;
    max-width: 280px;
  }

  /* ABOUT */
  .about {
    padding: 60px 20px;
  }

  .about-grid {
    gap: 32px;
  }

  .about h2 {
    margin-bottom: 24px;
  }

  .about-text {
    margin-bottom: 16px;
  }

  .about-image {
    width: 100%;
    border: 8px solid #351d14;
  }

  /* SERVICES */
  .services {
    padding: 60px 20px;
  }

  .services h2 {
    margin-bottom: 40px;
  }

  /* GALLERY */
  .gallery {
    padding: 60px 20px;
  }

  .gallery h2 {
    margin-bottom: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* OPT-IN FORM */
  .opt-in-form {
    padding: 60px 20px;
  }

  /* FOOTER */
  footer {
    padding: 40px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section h3 {
    margin-bottom: 16px;
  }

  .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
  }

  .footer-credit {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  /* HEADER */
  .header-container {
    padding: 14px 16px;
    gap: 16px;
  }

  .logo {
    font-size: 28px;
    letter-spacing: 2px;
    padding: 10px 0;
  }

  .header-container {
    padding: 14px 16px;
  }

  nav {
    padding: 0;
  }

  nav ul {
    border-top: 1px solid #d4c5bd;
  }

  .nav-cta-item .btn-nav-cta-mobile {
    padding: 10px 26px;
    font-size: 11px;
  }

  /* HERO */
  .hero {
    padding: 50px 16px;
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .hero .tagline {
    margin-bottom: 28px;
  }

  .legal-hero {
    padding: 56px 16px 32px;
  }

  .legal-hero h1 {
    font-size: 26px;
  }

  .legal-content {
    padding: 50px 16px;
  }

  .legal-content-inner h2 {
    margin-top: 32px;
    margin-bottom: 14px;
  }

  .legal-content-inner h3 {
    font-size: 19px;
  }

  .legal-callout {
    padding: 16px;
  }

  .btn-primary {
    padding: 14px 36px;
    font-size: 12px;
    width: 100%;
    max-width: 260px;
  }

  /* ABOUT */
  .about {
    padding: 50px 16px;
  }

  .about-grid {
    gap: 24px;
  }

  .about h2 {
    margin-bottom: 20px;
  }

  .about-text {
    margin-bottom: 14px;
  }

  .about-image {
    width: 100%;
    aspect-ratio: 3/4;
    border: 6px solid #351d14;
    border-radius: 6px;
  }

  /* SERVICES */
  .services {
    padding: 50px 16px;
  }

  .services h2 {
    margin-bottom: 32px;
  }

  /* GALLERY */
  .gallery {
    padding: 50px 16px;
  }

  .gallery h2 {
    margin-bottom: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item {
    aspect-ratio: 3/4;
    border-radius: 6px;
    border: 6px solid #f9f7f4;
  }

  /* OPT-IN FORM */
  .opt-in-form {
    padding: 50px 16px;
  }

  /* FOOTER */
  footer {
    padding: 36px 16px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-section h3 {
    margin-bottom: 14px;
  }

  .social-links {
    gap: 10px;
    margin-top: 10px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }

  .social-links svg {
    width: 16px;
    height: 16px;
  }

  .footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
  }

  .footer-credit {
    margin-top: 8px;
  }
}
