/* ============================================
   Glazing2You — Modernised stylesheet
   Warm, trustworthy, craft-led visual direction
   ============================================ */

:root {
  /* Colour */
  --ink: #1E2329;
  --ink-soft: #4B5158;
  --stone: #8A8174;
  --linen: #FBF7F0;
  --linen-deep: #F3ECDE;
  --card: #FFFFFF;
  --rust: #C5491E;
  --rust-deep: #A33B16;
  --sage: #5B7256;
  --sage-deep: #46583F;
  --line: rgba(30, 35, 41, 0.10);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(30, 35, 41, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 35, 41, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 35, 41, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2.5px solid var(--rust);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--rust);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--rust);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--rust-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-light {
  background: var(--linen);
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(30,35,41,0.05);
  padding: 12px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 66px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--rust);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.25s ease; }

@media (max-width: 880px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--linen); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 8px 28px 22px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.25s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 18px 0 22px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--rust);
}
.hero-copy p {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 14px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.hero-trust span { font-size: 0.85rem; color: var(--stone); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: -26px;
  left: -26px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}
.hero-badge .dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-badge .dot svg { width: 18px; height: 18px; color: #fff; }
.hero-badge strong { display: block; font-size: 0.85rem; color: var(--ink); font-weight: 600; }
.hero-badge span { font-size: 0.78rem; color: var(--stone); }

@media (max-width: 880px) {
  .hero { padding: 128px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-badge { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 72px 0; }
.section-deep { background: var(--linen-deep); }
.section-ink { background: var(--ink); color: var(--linen); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }
.section-ink .section-head p { color: rgba(251,247,240,0.7); }

/* ---------- Process / journey rail (signature element) ---------- */
.journey { position: relative; }
.journey-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.journey-rail::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--line) 0, var(--line) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.journey-step { position: relative; padding: 0 22px; z-index: 1; }
.journey-step .step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--rust);
  color: var(--rust);
  font-family: var(--serif);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.journey-step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.journey-step p { color: var(--ink-soft); font-size: 0.96rem; }
.journey-step:not(:last-child)::after {
  content: '';
}

@media (max-width: 880px) {
  .journey-rail { grid-template-columns: 1fr; gap: 36px; }
  .journey-rail::before { display: none; }
}

/* ---------- About / split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-visual { order: 2; }
.split-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3.1;
  object-fit: cover;
}
.split-copy p { color: var(--ink-soft); margin-top: 16px; font-size: 1.03rem; }
.split-copy h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-top: 14px; }
.feature-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list svg { width: 20px; height: 20px; color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.feature-list span { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-visual { order: -1; }
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media { aspect-ratio: 4/3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-body { padding: 24px 26px 28px; }
.product-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}
.product-body h3 { font-size: 1.28rem; margin: 8px 0 10px; }
.product-body p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 880px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

.products-cta {
  margin-top: 56px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
}
.products-cta p { font-size: 1.15rem; font-family: var(--serif); color: var(--ink); margin-bottom: 22px; }

/* ---------- Testimonial ---------- */
.testimonial-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonial-wrap .quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--rust);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 6px;
}
.testimonial-wrap blockquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}
.testimonial-cite { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.testimonial-cite strong { font-size: 1rem; }
.testimonial-cite span { font-size: 0.88rem; color: var(--stone); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.testimonial-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.testimonial-dots button.active { background: var(--rust); transform: scale(1.2); }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.contact-info {
  background: var(--ink);
  color: var(--linen);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-info h2 { font-size: 1.9rem; margin-top: 14px; }
.contact-info > p { color: rgba(251,247,240,0.7); margin-top: 14px; }
.contact-detail-list { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-detail-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-detail-list svg { width: 20px; height: 20px; color: var(--rust); flex-shrink: 0; margin-top: 2px; }
.contact-detail-list strong { display: block; font-size: 0.95rem; }
.contact-detail-list span { font-size: 0.88rem; color: rgba(251,247,240,0.65); }

.contact-form-area { padding: 52px 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--linen);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: none;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--rust);
  background: #fff;
}
.form-submit { margin-top: 24px; display: flex; align-items: center; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--stone); }

@media (max-width: 880px) {
  .contact-panel { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(251,247,240,0.6); padding: 36px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.86rem; }
.site-footer a { color: rgba(251,247,240,0.85); font-weight: 600; }
.site-footer a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
