/* ==============================
   VARIABLES & RESET
============================== */
:root {
  --color-bg:           #F7F4EF;
  --color-bg-alt:       #EDE8E0;
  --color-accent:       #8B5E52;
  --color-accent-light: #C4957F;
  --color-text:         #1E1C1A;
  --color-text-muted:   #6B6056;
  --color-border:       #D9D2C8;
  --color-white:        #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Raleway', sans-serif;
  --font-body:    'Lora', Georgia, serif;

  --header-h:     80px;
  --max-w:        1200px;
  --px:           40px;
  --section-py:   80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* ==============================
   UTILITIES
============================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 56px;
}

/* Signature vertical accent line */
.accent-block {
  border-left: 2px solid var(--color-accent);
  padding-left: 28px;
}

/* ==============================
   ANIMATIONS
============================== */
.anim {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.5s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0ms),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0ms);
}

.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero — triggers on load, not scroll */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-anim.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   BUTTONS
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: #7a4f44;
  border-color: #7a4f44;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ==============================
   HEADER
============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

.header__cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 9px 18px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.burger__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open .burger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open .burger__line:nth-child(2) { opacity: 0; }
.burger.open .burger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.mobile-nav.open {
  max-height: 480px;
}

.mobile-nav__link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 16px var(--px);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}

.mobile-nav__link:hover {
  color: var(--color-accent);
}

.mobile-nav__footer {
  padding: 20px var(--px) 28px;
}

.mobile-nav__footer .btn {
  width: 100%;
}

/* ==============================
   HERO
============================== */
.hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  background-color: var(--color-bg);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: end;
  width: 100%;
}

.hero__content {
  align-self: center;
  padding-bottom: 64px;
  padding-top: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--color-text-muted);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero__photo {
  height: calc(100vh - var(--header-h));
  max-height: 720px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  align-self: end;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==============================
   ABOUT
============================== */
.about__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

.about__photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about__content {
  padding-top: 8px;
}

.about__content h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 28px;
}

.about__text {
  margin-top: 4px;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ==============================
   PAIN
============================== */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
}

.pain__item {
  padding: 40px 40px 40px 0;
  border-right: 1px solid var(--color-border);
}

.pain__item:last-child {
  border-right: none;
}

.pain__item + .pain__item {
  padding-left: 40px;
}

.pain__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.pain__title::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-accent);
  margin-bottom: 14px;
}

.pain__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

/* ==============================
   SERVICES
============================== */
.services__list {
  border-top: 1px solid var(--color-border);
  max-width: 780px;
}

.services__item {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: color 0.2s ease;
}

.services__item::before {
  content: '—';
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.services__item:hover {
  color: var(--color-accent);
}

/* ==============================
   CASE
============================== */
.case__title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 680px;
}

.case .accent-block p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.case__list {
  margin: 18px 0 22px;
}

.case__list li {
  color: var(--color-text-muted);
  padding: 5px 0;
  display: flex;
  gap: 10px;
}

.case__list li::before {
  content: '–';
  color: var(--color-accent);
  flex-shrink: 0;
}

.case__tools {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ==============================
   CTA
============================== */
.cta {
  border-top: 1px solid var(--color-border);
}

.cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-text);
  margin-bottom: 18px;
}

.cta__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ==============================
   FOOTER
============================== */
.footer {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: 52px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247, 244, 239, 0.12);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-bg);
  opacity: 0.9;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-bg);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 1;
}

.footer__bottom {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-bg);
  opacity: 0.38;
}

/* ==============================
   RESPONSIVE — 1024px
============================== */
@media (max-width: 1024px) {
  :root {
    --px: 28px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__inner {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }

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

  .section__title {
    font-size: 2rem;
  }
}

/* ==============================
   RESPONSIVE — 768px (mobile)
============================== */
@media (max-width: 768px) {
  :root {
    --section-py: 48px;
    --px: 20px;
  }

  /* Header */
  .header__nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    align-items: start;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }

  .hero__photo {
    order: -1;
    height: 380px;
    max-height: 380px;
    border-radius: 0;
    margin-left: calc(-1 * var(--px));
    margin-right: calc(-1 * var(--px));
    width: calc(100% + 2 * var(--px));
  }

  .hero__content {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .hero__title {
    font-size: 2.1rem;
  }

  .hero__subtitle {
    font-size: 0.975rem;
    max-width: 100%;
  }

  /* About */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about__photo {
    aspect-ratio: 4 / 3;
  }

  .about__content h2 {
    font-size: 1.85rem;
  }

  /* Pain */
  .pain__grid {
    grid-template-columns: 1fr;
  }

  .pain__item {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .pain__item:last-child {
    border-bottom: none;
  }

  .pain__item + .pain__item {
    padding-left: 0;
  }

  /* Section titles */
  .section__title {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }

  /* Services */
  .services__list {
    max-width: 100%;
  }

  /* Case */
  .case__title {
    font-size: 1.75rem;
  }

  /* CTA */
  .cta__title {
    font-size: 2.1rem;
  }

  .cta__text {
    font-size: 0.975rem;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer__nav {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
}

/* ==============================
   RESPONSIVE — 375px
============================== */
@media (max-width: 400px) {
  .hero__title {
    font-size: 1.85rem;
  }

  .hero__photo {
    height: 320px;
    max-height: 320px;
  }

  .cta__title {
    font-size: 1.8rem;
  }
}
