/* ==========================================================================
   Diyesta — Single Estate Ceylon Cinnamon
   Main stylesheet. Mobile-first, no external dependencies.
   Brand palette: gold #b89109, dark #2a2118, cream #faf7f0
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --gold: #b89109;
  --gold-dark: #8a6d06;
  --gold-light: #d9b53a;
  --ink: #2a2118;
  --ink-soft: #5b5347;
  --cream: #faf7f0;
  --cream-2: #f3ecdd;
  --white: #ffffff;
  --line: #e6ddca;
  --shadow: 0 8px 30px rgba(42, 33, 24, 0.10);
  --shadow-sm: 0 2px 10px rgba(42, 33, 24, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1180px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: #ece6da; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: .78rem;
  color: var(--gold-dark); margin-bottom: .9rem;
}
.text-center { text-align: center; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.7rem; border-radius: 50px; cursor: pointer;
  border: 2px solid var(--gold); transition: all .2s ease; text-align: center;
}
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--gold-dark); }
.btn--ghost:hover { background: var(--gold); color: var(--white); }
.btn--light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--light:hover { background: var(--white); color: var(--ink); }

/* ----- Skip link (accessibility) ----- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; }
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 48px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: block; padding: .55rem .85rem; color: var(--ink); font-weight: 500;
  font-size: .96rem; border-radius: 8px;
}
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--gold-dark); background: var(--cream-2); }
.nav__cta { margin-left: .5rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  width: 44px; height: 44px; color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__menu {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .28s ease; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: .75rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ----- Hero ----- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background:
    linear-gradient(115deg, rgba(42, 33, 24, .88) 0%, rgba(42, 33, 24, .62) 55%, rgba(138, 109, 6, .40) 100%),
    url("/images/2024/FO-1.jpg") center / cover no-repeat,
    radial-gradient(circle at 75% 30%, #a8842a 0%, #6b4f12 55%, #2a2118 100%);
}
.hero__inner { display: grid; gap: 1.25rem; padding: clamp(4rem, 9vw, 7rem) 0; max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: .25rem; }
.hero__lead { font-size: 1.18rem; color: #f1ead9; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .75rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem; align-self: start;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  padding: .4rem .9rem; border-radius: 50px; font-size: .85rem; font-weight: 600; letter-spacing: .03em;
}

/* ----- Full-width image band ----- */
.image-band { position: relative; display: grid; align-items: center; min-height: 420px; overflow: hidden; }
.image-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(42, 33, 24, .82) 0%, rgba(42, 33, 24, .55) 45%, rgba(42, 33, 24, .25) 100%);
}
.image-band__inner { position: relative; z-index: 2; color: var(--white); padding: 3rem 1.25rem; }
.image-band__inner .eyebrow { color: var(--gold-light); }
.image-band__inner h2 { color: var(--white); max-width: 600px; }
.image-band__inner p { color: #f1ead9; max-width: 560px; font-size: 1.05rem; margin-bottom: 0; }
@media (max-width: 600px) { .image-band { min-height: 340px; } }

/* ----- Page hero (interior pages) ----- */
.page-hero {
  background: linear-gradient(120deg, var(--ink) 0%, #4a3a1f 100%);
  color: var(--white); padding: clamp(3rem, 7vw, 4.75rem) 0; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .35rem; }
.page-hero p { color: #e7dfce; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: #cdbf9d; margin-bottom: 1rem; }
.breadcrumb a { color: #e7dfce; }
.breadcrumb a:hover { color: var(--white); }

/* ----- Feature grid ----- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--cream-2);
  display: grid; place-items: center; margin-bottom: 1rem; color: var(--gold-dark);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }

/* ----- Split / media sections ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img, .media-frame {
  border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%;
}
.media-frame {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, #c9a23a, #6b4f12);
  display: grid; place-items: center; color: rgba(255,255,255,.85); text-align: center; padding: 1.5rem;
}

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat__label { font-size: .92rem; color: #d8cfb8; margin-top: .5rem; letter-spacing: .03em; }

/* ----- Products ----- */
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card__media { aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--cream-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-card__grade { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.product-card__body h3 { font-size: 1.25rem; margin: .15rem 0 .4rem; }
.product-card__body p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1rem; flex: 1; }
.product-card__link { font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }

/* ----- Testimonials ----- */
.testimonial {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); height: 100%;
}
.testimonial__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .75rem; font-size: 1.05rem; }
.testimonial blockquote { margin: 0 0 1.1rem; font-style: italic; color: var(--ink); }
.testimonial__author { font-weight: 700; font-family: var(--font-head); }
.testimonial__meta { font-size: .85rem; color: var(--ink-soft); }

/* ----- Prose blocks ----- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* ----- FAQ accordion ----- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .9rem; background: var(--white); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--ink);
  padding: 1.15rem 1.35rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q:hover { color: var(--gold-dark); }
.faq__icon { flex: none; width: 24px; height: 24px; transition: transform .25s ease; color: var(--gold-dark); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 1.35rem 1.25rem; color: var(--ink-soft); }
.faq__item.is-open .faq__a { max-height: 600px; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: .9rem; margin-bottom: 1.2rem; align-items: flex-start; }
.contact-list .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--cream-2); display: grid; place-items: center; color: var(--gold-dark); }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); }
.contact-list a, .contact-list span { color: var(--ink-soft); }

.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 540px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.consent input { margin-top: .25rem; }

/* ----- CTA band ----- */
.cta-band { background: linear-gradient(120deg, var(--gold-dark), var(--gold)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff6e0; max-width: 620px; margin: 0 auto 1.75rem; }

/* ----- Footer ----- */
.site-footer { background: var(--ink); color: #c9bfa9; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #c9bfa9; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 280px; }
.footer-social { display: flex; gap: .65rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; display: grid; place-items: center; color: #c9bfa9; }
.footer-social a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: #9a8f78; }
.footer-bottom a { color: #9a8f78; }

/* ----- Utilities ----- */
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.badge-row span { background: var(--cream-2); color: var(--gold-dark); font-weight: 600; font-size: .82rem; padding: .4rem .9rem; border-radius: 50px; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
