/* ============================================================
   Florastitch — Global Styles
   ============================================================ */

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

/* ─── Custom properties ─────────────────────────────────────── */
:root {
  --cream:       #f8f4ef;
  --cream-dark:  #f0e9e0;
  --rose:        #c9897a;
  --rose-dark:   #b07060;
  --rose-light:  #e8c5bc;
  --sage:        #8a9e87;
  --sage-light:  #d4dfd3;
  --charcoal:    #2d2926;
  --charcoal-mid:#4a4540;
  --warm-grey:   #9a9086;
  --warm-grey-light: #e8e2da;
  --white:       #ffffff;

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

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-soft: 0 4px 24px rgba(45, 41, 38, 0.08);
  --shadow-card: 0 2px 16px rgba(45, 41, 38, 0.06);

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── Typography helpers ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--charcoal-mid); }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--rose);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--rose-dark);
  box-shadow: 0 6px 20px rgba(176, 112, 96, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
}
.btn-outline:hover {
  background-color: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--warm-grey-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--rose); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--rose); }

.nav-cta { margin-left: 16px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Mobile nav ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--cream);
    border-bottom: 1px solid var(--warm-grey-light);
    padding: 16px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--warm-grey-light); width: 100%; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-left: 0; margin-top: 12px; }
  .nav-burger { display: flex; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--rose);
}

.hero-title {
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--rose);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--charcoal-mid);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--warm-grey);
  margin-top: 16px;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(248, 244, 239, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
}
.hero-img-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--charcoal);
}
.hero-img-badge span {
  font-size: 0.78rem;
  color: var(--warm-grey);
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-img-wrap { order: -1; }
  .hero { padding: 48px 0 40px; }
}

/* ─── Section label ──────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--rose);
}

.section-title { margin-bottom: 16px; }
.section-intro {
  font-size: 1.05rem;
  color: var(--charcoal-mid);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: 52px; }
.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-header.centered .section-label::before { display: none; }
.section-header.centered .section-label {
  justify-content: center;
}

/* ─── For whom ───────────────────────────────────────────────── */
.for-whom {
  background-color: var(--cream-dark);
}

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.for-whom-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--warm-grey-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.for-whom-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.for-whom-card .icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  line-height: 1;
}
.for-whom-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.for-whom-card p {
  font-size: 0.88rem;
  color: var(--warm-grey);
  line-height: 1.6;
}

/* ─── Format ─────────────────────────────────────────────────── */
.format-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.format-step {
  padding: 32px 28px;
  border-right: 1px solid var(--warm-grey-light);
  position: relative;
}
.format-step:last-child { border-right: none; }

.step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--rose-light);
  line-height: 1;
  margin-bottom: 12px;
}
.format-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.format-step p {
  font-size: 0.88rem;
  color: var(--warm-grey);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .format-steps { grid-template-columns: 1fr; }
  .format-step { border-right: none; border-bottom: 1px solid var(--warm-grey-light); }
  .format-step:last-child { border-bottom: none; }
}

/* ─── Works gallery ──────────────────────────────────────────── */
.works {
  background-color: var(--cream-dark);
}

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

.work-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  box-shadow: var(--shadow-card);
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-item:hover img { transform: scale(1.04); }

@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-item { aspect-ratio: 4/3; }
}

/* ─── Lead form ──────────────────────────────────────────────── */
.lead-form-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, #3d3530 100%);
  padding: 80px 0;
}

.lead-form-section .section-label { color: var(--rose-light); }
.lead-form-section .section-label::before { background: var(--rose-light); }
.lead-form-section .section-title { color: var(--white); }
.lead-form-section .section-intro { color: rgba(255,255,255,0.65); }

.lead-form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lead-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-subtitle {
  font-size: 0.88rem;
  color: var(--warm-grey);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--warm-grey-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 137, 122, 0.15);
}
.form-group input.invalid {
  border-color: #d05a4a;
  box-shadow: 0 0 0 3px rgba(208, 90, 74, 0.12);
}

.form-error {
  font-size: 0.78rem;
  color: #d05a4a;
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }

.form-consent {
  font-size: 0.78rem;
  color: var(--warm-grey);
  margin-top: 6px;
  line-height: 1.5;
}
.form-consent a {
  color: var(--rose);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  font-size: 1rem;
}

.lead-form-benefits {
  color: var(--white);
}
.lead-form-benefits h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 28px;
  font-weight: 500;
  font-style: italic;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(201, 137, 122, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.benefit-text strong {
  display: block;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
  font-size: 0.95rem;
}
.benefit-text span {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .lead-form-inner { grid-template-columns: 1fr; gap: 36px; }
  .lead-form-benefits { display: none; }
  .lead-form-card { padding: 28px 22px; }
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--warm-grey-light);
}
.faq-item:first-child { border-top: 1px solid var(--warm-grey-light); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  background: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--rose); }

.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--warm-grey-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background-color var(--transition);
  font-size: 0.65rem;
  color: var(--warm-grey);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  padding-bottom: 22px;
  font-size: 0.93rem;
  color: var(--charcoal-mid);
  line-height: 1.7;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background-color: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 52px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand .logo span { color: var(--rose-light); }
.footer-brand p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-sans);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--rose-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── Cookie banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--charcoal);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner.hidden { transform: translateY(100%); }

.cookie-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  flex: 1;
  line-height: 1.5;
}
.cookie-text a {
  color: var(--rose-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-accept {
  padding: 10px 22px;
  background: var(--rose);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color var(--transition);
  border: none;
  cursor: pointer;
}
.cookie-accept:hover { background: var(--rose-dark); }
.cookie-decline {
  padding: 10px 18px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border-radius: 50px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.cookie-decline:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.8); }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .cookie-actions { width: 100%; }
  .cookie-accept { flex: 1; text-align: center; }
}

/* ─── Success page ────────────────────────────────────────────── */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--cream);
}
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.success-page h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.success-page p {
  font-size: 1rem;
  color: var(--warm-grey);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ─── Legal pages ─────────────────────────────────────────────── */
.legal-page {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 0.84rem;
  color: var(--warm-grey);
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--warm-grey-light);
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: 0.92rem;
  color: var(--charcoal-mid);
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-page a {
  color: var(--rose);
  text-decoration: underline;
}

/* ─── Scroll fade-in ─────────────────────────────────────────── */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-fade][data-delay="1"] { transition-delay: 0.1s; }
[data-fade][data-delay="2"] { transition-delay: 0.2s; }
[data-fade][data-delay="3"] { transition-delay: 0.3s; }
[data-fade][data-delay="4"] { transition-delay: 0.4s; }

/* ─── Misc helpers ───────────────────────────────────────────── */
.text-rose { color: var(--rose); }
.mt-8 { margin-top: 8px; }
.divider {
  height: 1px;
  background: var(--warm-grey-light);
  margin: 0;
}

/* ─── Image placeholder while loading ───────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--warm-grey-light) 100%);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--warm-grey);
  font-size: 1rem;
}
