/* ============================================================
   VALENCIA BOTANICALS — Design System
   Based on the Leandra Isler / Praxis style reference
   ============================================================ */

/* ---- Custom Properties (Design Tokens) ---- */
:root {
  /* Colors */
  --color-vellum-sand: #f4e6cd;
  --color-pressed-linen: #edddc3;
  --color-aged-ink: #1e211e;
  --color-charcoal-black: #000000;
  --color-twilight-bronze: #8f774b;
  --color-hayfield: #ba9d6a;
  --color-wheat-sheaf: #d6bd97;

  /* Typography — Fonts */
  --font-pp-neue-montreal: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Typography — Scale */
  --text-caption: 14px;
  --leading-caption: 1.5;
  --text-body-sm: 16px;
  --leading-body-sm: 1.5;
  --text-body: 18px;
  --leading-body: 1.5;
  --text-subheading: 24px;
  --leading-subheading: 1.4;
  --text-heading-sm: 26px;
  --leading-heading-sm: 1.4;
  --text-heading: 40px;
  --leading-heading: 1.2;
  --text-heading-lg: clamp(40px, 8vw, 75px);
  --leading-heading-lg: 1;
  --tracking-heading-lg: clamp(-1px, -0.03em, -2.25px);
  --text-display: clamp(58px, 12vw, 173px);
  --leading-display: 0.9;
  --tracking-display: clamp(-2px, -0.045em, -7.79px);
  --text-display-sub: clamp(26px, 5vw, 75px);

  /* Typography — Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-8: 8px;
  --spacing-10: 10px;
  --spacing-11: 11px;
  --spacing-13: 13px;
  --spacing-14: 14px;
  --spacing-17: 17px;
  --spacing-20: 20px;
  --spacing-26: 26px;
  --spacing-30: 30px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-50: 50px;
  --spacing-60: 60px;
  --spacing-120: 120px;

  /* Border Radius */
  --radius-images: 4px;

  /* Surfaces */
  --surface-vellum-canvas: #f4e6cd;
  --surface-pressed-linen: #edddc3;

  /* Nav height */
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-pp-neue-montreal);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-aged-ink);
  background-color: var(--color-vellum-sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--color-vellum-sand);
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--spacing-30);
  max-width: 1440px;
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  text-decoration: none;
  color: var(--color-aged-ink);
  flex-shrink: 0;
}

.nav__starburst {
  flex-shrink: 0;
  margin-top: -2px;
}

.nav__wordmark {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-30);
}

.nav__link {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-regular);
  color: var(--color-aged-ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav__link:hover {
  border-bottom-color: var(--color-aged-ink);
}

.nav__cta {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-regular);
  color: var(--color-aged-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-aged-ink);
  padding-bottom: 2px;
  transition: border-bottom-width 0.2s ease;
  flex-shrink: 0;
}

.nav__cta:hover {
  border-bottom-width: 2px;
}

/* ---- Mobile Nav (single-page site — no hamburger, all links visible) ---- */
@media (max-width: 768px) {
  .nav__inner {
    padding: 0 var(--spacing-20);
  }

  .nav__links {
    gap: var(--spacing-14);
  }

  .nav__cta {
    display: none;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-vellum-sand);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    184deg,
    var(--color-twilight-bronze) 0%,
    var(--color-hayfield) 25%,
    var(--color-wheat-sheaf) 55%,
    var(--color-vellum-sand) 85%
  );
  opacity: 0.45;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--spacing-60) var(--spacing-30);
  max-width: 1440px;
  margin: 0 auto;
}

.hero__headline {
  font-size: var(--text-display);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-charcoal-black);
  max-width: 90%;
}

.hero__headline-sub {
  display: block;
  font-size: var(--text-display-sub);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-heading-lg);
  color: var(--color-aged-ink);
  margin-top: var(--spacing-8);
}

.hero__image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  max-width: 600px;
  z-index: 1;
  pointer-events: none;
}

.hero__plant {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-images);
  transform: translateY(4%) scale(1.08);
  transform-origin: bottom right;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--spacing-30);
  left: var(--spacing-30);
  z-index: 2;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--color-aged-ink);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---- Hero Responsive ---- */
@media (max-width: 1024px) {
  .hero__image {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .hero__headline {
    max-width: 100%;
  }

  .hero__headline-sub {
    font-size: clamp(20px, 4vw, 40px);
  }

  .hero__image {
    width: 70%;
    max-width: 400px;
    opacity: 0.5;
  }

  .hero__content {
    padding: var(--spacing-40) var(--spacing-20);
  }
}

@media (max-width: 480px) {
  .hero__image {
    width: 85%;
    opacity: 0.35;
  }
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-aged-ink);
  margin: var(--spacing-60) 0;
}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section {
  padding: var(--spacing-60) 0;
  background-color: var(--color-vellum-sand);
}

.section__inner {
  padding: 0 var(--spacing-30);
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-60);
}

.section__heading {
  font-size: var(--text-heading-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  color: var(--color-charcoal-black);
}

.section__body {
  max-width: 65ch;
}

.section__text {
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-aged-ink);
  margin-bottom: var(--spacing-14);
}

.section__text:last-of-type {
  margin-bottom: var(--spacing-20);
}

.section__text--sm {
  font-size: var(--text-body-sm);
}

.section__text--light {
  color: var(--color-pressed-linen);
}

.section__heading--light {
  color: var(--color-pressed-linen);
}

/* ---- Section: Full Image Background ---- */
.section--full-image {
  position: relative;
  padding: 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section__image-bg {
  position: absolute;
  inset: 0;
}

.section__image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.section__image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 33, 30, 0.75) 0%,
    rgba(30, 33, 30, 0.4) 50%,
    rgba(30, 33, 30, 0.2) 100%
  );
}

.section__inner--overlay {
  position: relative;
  z-index: 2;
  color: var(--color-pressed-linen);
}

/* ---- Section: Testimonial ---- */
.section--testimonial .section__inner {
  display: block;
  max-width: 80ch;
  text-align: center;
}

.testimonial__text {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: var(--color-aged-ink);
  font-style: normal;
  quotes: none;
}

.testimonial__attribution {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-aged-ink);
  margin-top: var(--spacing-20);
  opacity: 0.7;
}

/* ---- Section: Contact ---- */
.section--contact .section__inner {
  display: block;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-40);
  margin-top: var(--spacing-10);
}

.contact__label {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-aged-ink);
  margin-bottom: var(--spacing-8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact__info {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body-sm);
  color: var(--color-aged-ink);
}

.contact__col .link {
  font-size: var(--text-body-sm);
}

/* ---- Section: Newsletter ---- */
.section--newsletter .section__inner {
  align-items: center;
}

.newsletter {
  display: flex;
  gap: var(--spacing-10);
  align-items: center;
  margin-top: var(--spacing-4);
}

.newsletter__input {
  font-family: var(--font-pp-neue-montreal);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-aged-ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-aged-ink);
  padding: var(--spacing-8) 0;
  outline: none;
  width: 260px;
  transition: border-bottom-width 0.2s ease;
}

.newsletter__input::placeholder {
  color: var(--color-aged-ink);
  opacity: 0.4;
}

.newsletter__input:focus {
  border-bottom-width: 2px;
}

.newsletter__submit {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-pp-neue-montreal);
  font-size: var(--text-body);
  padding: 0;
  white-space: nowrap;
}

/* ---- Responsive Sections ---- */
@media (max-width: 768px) {
  .section {
    padding: var(--spacing-40) 0;
  }

  .section__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-30);
    padding: 0 var(--spacing-20);
  }

  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-26);
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter__input {
    width: 100%;
  }

  .divider {
    margin: var(--spacing-40) 0;
  }

  .section--full-image {
    min-height: 60vh;
  }

  .section__image-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(30, 33, 30, 0.75) 0%,
      rgba(30, 33, 30, 0.5) 100%
    );
  }
}

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

/* ============================================================
   UNDERLINED TEXT LINK
   ============================================================ */
.link {
  display: inline-block;
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-aged-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-aged-ink);
  padding-bottom: 2px;
  transition: border-bottom-width 0.2s ease, color 0.2s ease;
}

.link:hover {
  border-bottom-width: 2px;
}

.link--light {
  color: var(--color-pressed-linen);
  border-bottom-color: var(--color-pressed-linen);
}

.link--light:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-60);
  align-items: center;
  padding: var(--spacing-60) var(--spacing-30);
  max-width: 1440px;
  margin: 0 auto;
}

.product__image {
  border-radius: var(--radius-images);
  overflow: hidden;
}

.product__image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-images);
}

.product__content {
  max-width: 55ch;
}

.product__name {
  font-size: var(--text-heading);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-heading);
  color: var(--color-charcoal-black);
  margin-bottom: var(--spacing-13);
}

.product__desc {
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-aged-ink);
  margin-bottom: var(--spacing-13);
}

.product__detail {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-aged-ink);
  opacity: 0.65;
  margin-bottom: var(--spacing-17);
}

.product .link {
  font-size: var(--text-body-sm);
}

/* Reverse layout for alternating products */
.product--reverse {
  direction: rtl;
}

.product--reverse .product__content {
  direction: ltr;
}

/* ---- Products Responsive ---- */
@media (max-width: 768px) {
  .product {
    grid-template-columns: 1fr;
    gap: var(--spacing-20);
    padding: var(--spacing-40) var(--spacing-20);
  }

  .product--reverse {
    direction: ltr;
  }

  .product__image img {
    height: 260px;
  }

  .product__name {
    font-size: clamp(28px, 5vw, 40px);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-vellum-sand);
  padding: var(--spacing-60) var(--spacing-30) var(--spacing-30);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-40);
  max-width: 1440px;
  margin: 0 auto;
}

.footer__label {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-aged-ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--spacing-13);
}

.footer__text {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-caption);
  color: var(--color-aged-ink);
  opacity: 0.8;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}

.footer__link {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-regular);
  color: var(--color-aged-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-bottom-color 0.2s ease;
  opacity: 0.8;
}

.footer__link:hover {
  border-bottom-color: var(--color-aged-ink);
  opacity: 1;
}

.footer__bottom {
  margin-top: var(--spacing-60);
  padding-top: var(--spacing-20);
  border-top: 1px solid var(--color-aged-ink);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.footer__copyright {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-regular);
  color: var(--color-aged-ink);
  opacity: 0.5;
}

/* ---- Footer Responsive ---- */
@media (max-width: 768px) {
  .footer {
    padding: var(--spacing-40) var(--spacing-20) var(--spacing-20);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-30);
  }
}

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

/* ============================================================
   SELECTION STYLING
   ============================================================ */
::selection {
  background-color: var(--color-aged-ink);
  color: var(--color-vellum-sand);
}

/* ============================================================
   SMOOTH SCROLLBAR (Webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-vellum-sand);
}

::-webkit-scrollbar-thumb {
  background: var(--color-aged-ink);
  border-radius: 0;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__headline {
  animation: fadeInUp 1s ease-out forwards;
}

.hero__image {
  animation: fadeInUp 1.2s ease-out 0.2s forwards;
  opacity: 0;
}
