/* ============================================================
   EMILY SIERRA | ANT for humans | FLORA for humans
   Design System — Shared Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ── Tokens ── */
:root {
  --cream:        #F4EFE7;
  --cream-mid:    #ECE4D6;
  --cream-deep:   #E2D7C5;
  --ink:          #1C1712;
  --ink-mid:      #4A3F34;
  --ink-light:    #8B7D6B;
  --sage:         #6E7C5E;
  --sage-light:   #A8B899;
  --earth:        #C4A882;
  --white:        #FAF7F2;
  --ant:          #8C3A1C;
  --ant-dark:     #6A2A14;
  --flora:        #3A4A82;
  --flora-dark:   #2B3760;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --space-xs:     0.5rem;
  --space-sm:     1rem;
  --space-md:     2rem;
  --space-lg:     4rem;
  --space-xl:     8rem;

  --max-w:        1200px;
  --max-w-text:   680px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
}

.title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.body-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.65;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  width: 100%;
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section--sm {
  padding: var(--space-lg) 0;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(244, 239, 231, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem var(--space-md);
  border-bottom: 1px solid var(--cream-deep);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  transition: color 0.2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.nav__link--active { color: var(--ink); }
.nav__link--active::after { width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink-mid);
}

.btn--outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

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

.btn--outline-light {
  border: 1px solid rgba(250, 247, 242, 0.5);
  color: var(--white);
}

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

.btn--sage {
  background: var(--sage);
  color: var(--white);
}

.btn--sage:hover {
  background: var(--sage-light);
  color: var(--ink);
}

.btn--ant {
  background: var(--ant);
  color: var(--white);
}

.btn--ant:hover {
  background: var(--ant-dark);
}

.btn--flora {
  background: var(--flora);
  color: var(--white);
}

.btn--flora:hover {
  background: var(--flora-dark);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-lg);
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--cream-mid);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* ── Image blocks ── */
.img-frame {
  overflow: hidden;
  background: var(--cream-deep);
}

.img-frame img {
  transition: transform 0.6s ease;
}

.img-frame:hover img {
  transform: scale(1.02);
}

.img-frame--tall { aspect-ratio: 3/4; }
.img-frame--wide { aspect-ratio: 16/9; }
.img-frame--square { aspect-ratio: 1/1; }
.img-frame--portrait { aspect-ratio: 2/3; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--cream-deep);
  margin: 0;
}

/* ── Quote ── */
.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-mid);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--cream-deep);
  border-bottom: 1px solid var(--cream-deep);
}

.quote__source {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: var(--space-sm);
  font-style: normal;
}

/* ── Testimonials ── */
.testimonial {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--cream-deep);
}

.testimonial__text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.testimonial__attribution {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ── Service card ── */
.service-card {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--cream-deep);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-md);
  align-items: start;
  transition: background 0.3s;
}

.service-card:first-child { border-top: 1px solid var(--cream-deep); }

@media (max-width: 768px) {
  .service-card { grid-template-columns: 1fr; }
}

.service-card__label {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  padding-top: 0.2rem;
}

.service-card__content { }

.service-card__desc {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--ink-mid);
}

/* ── Product card ── */
.product-card {
  background: var(--white);
}

.product-card__img {
  aspect-ratio: 4/5;
  background: var(--cream-deep);
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 1.25rem var(--space-sm);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.product-card__desc {
  font-size: 0.83rem;
  color: var(--ink-mid);
  margin-bottom: 0.75rem;
}

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── Pill / tag ── */
.tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid var(--cream-deep);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  border-radius: 100px;
}

/* ── Split layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: var(--space-md); }
  .split--reverse { direction: ltr; }
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: var(--cream-mid);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(250,247,242,0.1);
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__col-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.4);
  margin-bottom: 1rem;
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  color: rgba(250,247,242,0.7);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(250,247,242,0.35);
}

/* ── Form ── */
.form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cream-deep);
  padding: 0.75rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Sticky label ── */
.sticky-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  transform: rotate(180deg);
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-sm);
  z-index: 50;
}

/* ── Manifesto block ── */
.manifesto {
  border-left: 1px solid var(--cream-deep);
  padding-left: var(--space-md);
}

/* ── Accent line ── */
.line-accent {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--earth);
  vertical-align: middle;
  margin-right: 0.75rem;
}

/* ── Dark section ── */
.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark .eyebrow { color: rgba(250,247,242,0.45); }
.section--dark .divider { background: rgba(250,247,242,0.1); }
.section--dark .testimonial { border-bottom-color: rgba(250,247,242,0.1); }
.section--dark .testimonial__attribution { color: rgba(250,247,242,0.4); }
.section--dark .quote { color: rgba(250,247,242,0.75); border-color: rgba(250,247,242,0.1); }
.section--dark .quote__source { color: rgba(250,247,242,0.4); }

/* ── Sage section ── */
.section--sage {
  background: var(--sage);
  color: var(--white);
}

/* ── Scroll fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile nav ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 99;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 0.9rem;
  }

  .nav__hamburger { display: flex; z-index: 101; }
}

/* ── Utilities ── */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.text-center { text-align: center; }
.text-light { color: var(--ink-light); }
.italic { font-style: italic; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
