/* ===========================
   Whanka LTD - Main Stylesheet
   =========================== */

:root {
  --gold: #C8952A;
  --gold-light: #E2B04A;
  --dark: #1A1A18;
  --dark-2: #252520;
  --stone: #4A4535;
  --stone-light: #7A7260;
  --cream: #F5F0E8;
  --cream-2: #EDE8DC;
  --white: #FFFFFF;
  --text: #2C2A22;
  --text-muted: #6B6556;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.1rem; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,149,42,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-tag.light {
  color: var(--gold-light);
  background: rgba(226, 176, 74, 0.15);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,149,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-light {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.btn-small {
  padding: 9px 20px;
  font-size: 0.82rem;
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-small:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.btn-full { width: 100%; justify-content: center; }

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { text-decoration: none; color: var(--white) !important; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white) !important;
  letter-spacing: 0.02em;
}
.logo-text em {
  font-style: italic;
  color: var(--gold-light) !important;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--gold-light);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
  image-rendering: crisp-edges;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,18,12,0.78) 0%, rgba(26,26,24,0.55) 60%, rgba(200,149,42,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-top: 80px;
  animation: fadeUp 1s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- STATS ---- */
.stats {
  background: var(--dark);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ---- ABOUT STRIP ---- */
.about-strip {
  padding: 96px 0;
  background: var(--cream);
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-strip-text .section-tag { color: var(--stone); background: rgba(74,69,53,0.1); }
.about-strip-text h2 { color: var(--dark); margin: 8px 0 20px; }
.about-strip-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-strip-text .btn { margin-top: 8px; }
.about-strip-text .btn-primary { background: var(--dark); border-color: var(--dark); }
.about-strip-text .btn-primary:hover { background: var(--stone); border-color: var(--stone); }

.image-frame {
  position: relative;
}
.image-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
}
.image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 50%;
  height: 50%;
  border: 3px solid var(--gold);
  z-index: -1;
  border-radius: 2px;
}

/* ---- PRODUCTS ---- */
.products-section {
  padding: 96px 0;
  background: var(--white);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-image {
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-category {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.product-info {
  padding: 20px;
}
.product-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.product-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.products-cta { text-align: center; }
.products-cta .btn-outline {
  color: var(--dark);
  border-color: var(--dark);
}
.products-cta .btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* ---- SERVICES ---- */
.services-section {
  padding: 96px 0;
  background: var(--cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); }
.service-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-body { padding: 24px; }
.service-icon { font-size: 1.8rem; margin-bottom: 10px; }
.service-body h3 { margin-bottom: 10px; color: var(--dark); font-size: 1.05rem; }
.service-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---- SUSTAINABILITY BANNER ---- */
.sustainability-banner {
  background: var(--dark-2);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.sustainability-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://whanka.co.ke/wp-content/uploads/2024/09/service-3.jpg') center/cover;
  opacity: 0.12;
}
.sustainability-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sustainability-text h2 { color: var(--white); margin: 8px 0 16px; }
.sustainability-text p { color: rgba(255,255,255,0.72); margin-bottom: 28px; line-height: 1.7; }
.sustainability-list { color: var(--white); }
.sustainability-list h4 { color: var(--gold-light); margin-bottom: 4px; font-size: 1rem; }
.list-subtitle { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 20px; }
.sustainability-list ul { display: flex; flex-direction: column; gap: 12px; }
.sustainability-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.check {
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- QUOTE FORM ---- */
.quote-section {
  padding: 96px 0;
  background: var(--white);
}
.quote-form-wrap { max-width: 680px; margin: 0 auto; }
.quote-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--stone); }
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--cream-2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-success {
  background: #e6f4ea;
  color: #2d6a35;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 500;
}

/* ---- FAQ ---- */
.faq-section {
  padding: 96px 0;
  background: var(--cream);
}
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: 'âˆ’'; }
.faq-item[open] summary { color: var(--gold); }
.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--cream-2);
  padding-top: 16px;
}

/* ---- FOOTER ---- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.footer-logo-text em {
  font-style: italic;
  color: var(--gold-light);
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .about-strip-inner,
  .sustainability-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-grid,
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 28px; text-align: center; }
  .main-nav a { font-size: 1.3rem; }
  .nav-toggle { display: flex; z-index: 1000; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: fit-content; }
  .products-grid,
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2rem; }
}