/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #faf8f4;
  --color-surface: #ffffff;
  --color-ivory: #f5f1e8;
  --color-gray-light: #f0eeea;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-primary: #b8893b;
  --color-primary-dark: #9c7230;
  --color-accent: #d4af6a;
  --color-whatsapp: #25d366;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 6px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --font: 'Cairo', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 2px solid transparent; transition: all .25s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); backdrop-filter: blur(4px); }
.btn-outline:hover { background: #fff; color: var(--color-text); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.08rem; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { font-weight: 800; font-size: 1.35rem; color: var(--color-text); white-space: nowrap; }
.logo span { color: var(--color-primary); }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 22px; }
.main-nav a { font-weight: 600; font-size: .96rem; color: var(--color-text); position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px;
  background: var(--color-primary); transition: width .25s;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--color-primary); }
.header-cta { white-space: nowrap; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--color-text); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden; color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,20,20,.72) 0%, rgba(20,20,20,.45) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.35; margin-bottom: 20px; }
.hero-desc { font-size: 1.08rem; margin-bottom: 30px; color: rgba(255,255,255,.92); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.hero-features li { font-weight: 600; font-size: .98rem; display: flex; align-items: center; gap: 8px; }
.hero-features li::before { content: '✓'; color: var(--color-accent); font-weight: 800; font-size: 1.15rem; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  margin-bottom: 18px; color: var(--color-text);
  position: relative; padding-bottom: 14px;
}
.section h2::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 70px; height: 4px; background: var(--color-primary); border-radius: 2px;
}
.section-lead { color: var(--color-muted); margin-bottom: 40px; max-width: 720px; font-size: 1.02rem; }

/* ============ INTRO ============ */
.intro { background: var(--color-surface); }
.intro-text p { margin-bottom: 16px; color: #444; font-size: 1.03rem; }
.intro-text strong { color: var(--color-primary-dark); }

/* ============ SERVICE CARDS ============ */
.services-section { background: var(--color-ivory); }
.services-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.service-card {
  background: var(--color-surface); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .3s, box-shadow .3s;
  opacity: 0; transform: translateY(24px);
}
.service-card.visible { opacity: 1; transform: translateY(0); transition: opacity .6s, transform .6s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  font-size: 2rem; width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fdf6e9, #f3e6cc);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; color: var(--color-text); }
.service-card p { color: var(--color-muted); font-size: .96rem; }

/* ============ DOORS ============ */
.doors-section { background: var(--color-surface); }
.doors-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 34px; }
.doors-block { background: var(--color-ivory); border-radius: var(--radius); padding: 30px; }
.doors-block h3 { font-size: 1.2rem; margin-bottom: 16px; color: var(--color-primary-dark); }
.doors-block ul li { position: relative; padding-inline-start: 24px; margin-bottom: 10px; color: #444; }
.doors-block ul li::before { content: '•'; position: absolute; right: 0; color: var(--color-primary); font-weight: 800; font-size: 1.3rem; line-height: 1.4; }
.section-cta { text-align: center; margin-top: 30px; }

/* ============ STEPS ============ */
.steps-section { background: var(--color-ivory); }
.steps-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.step {
  background: var(--color-surface); border-radius: var(--radius); padding: 26px;
  display: flex; align-items: flex-start; gap: 16px; box-shadow: var(--shadow-sm);
}
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.step p { color: #444; font-size: .98rem; }

/* ============ GYPSUM ============ */
.gypsum-section { background: var(--color-surface); }
.gypsum-inner { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.gypsum-text ul { margin: 18px 0 24px; }
.gypsum-text ul li { position: relative; padding-inline-start: 26px; margin-bottom: 9px; color: #444; }
.gypsum-text ul li::before { content: '✓'; position: absolute; right: 0; color: var(--color-primary); font-weight: 800; }
.gypsum-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }

/* ============ GALLERY ============ */
.gallery-section { background: var(--color-ivory); }
.gallery-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gallery-item {
  overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  cursor: pointer; background: #ddd; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ============ WHY US ============ */
.whyus-section { background: var(--color-surface); }
.whyus-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.why-card {
  background: var(--color-ivory); border-radius: var(--radius); padding: 26px;
  border: 1px solid rgba(0,0,0,.03); transition: transform .3s;
}
.why-card:hover { transform: translateY(-4px); }
.why-card span { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { color: var(--color-muted); font-size: .94rem; }

/* ============ AREAS ============ */
.areas-section { background: var(--color-ivory); }
.areas-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.areas-list li {
  background: var(--color-surface); padding: 8px 20px; border-radius: 50px;
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-sm); color: var(--color-primary-dark);
}
.areas-note { color: var(--color-muted); font-size: .95rem; margin-top: 10px; }

/* ============ FAQ ============ */
.faq-section { background: var(--color-surface); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e5e2db; }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-family: var(--font); font-size: 1.04rem; font-weight: 700;
  color: var(--color-text); text-align: right;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon { font-size: 1.5rem; color: var(--color-primary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding-bottom: 22px; color: var(--color-muted); font-size: .98rem; }

/* ============ CTA ============ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff; text-align: center;
}
.cta-inner h2 { color: #fff; }
.cta-inner h2::after { background: #fff; right: 50%; transform: translateX(50%); }
.cta-inner p { max-width: 640px; margin: 0 auto 28px; color: rgba(255,255,255,.95); }
.cta-inner .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-inner .btn-primary:hover { background: var(--color-ivory); }

/* ============ CONTACT ============ */
.contact-section { background: var(--color-ivory); text-align: center; }
.contact-inner p { color: var(--color-muted); margin-bottom: 28px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ============ FOOTER ============ */
.site-footer { background: #1f1d1a; color: #d8d4cd; padding: 60px 0 0; }
.footer-inner { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 40px; }
.footer-col h3 { color: #fff; font-size: 1.1rem; margin-bottom: 16px; }
.footer-col p, .footer-col li { font-size: .95rem; margin-bottom: 8px; color: #b5b0a8; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid #333; padding: 22px 0; text-align: center; font-size: .9rem; color: #8f8a82; }

/* ============ FLOATING CALL ============ */
.floating-call {
  position: fixed; bottom: 22px; left: 22px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,137,59,.5); }
  50% { box-shadow: 0 0 0 14px rgba(184,137,59,0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .main-nav {
    position: fixed; top: 76px; right: 0; left: 0;
    background: #fff; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  .main-nav li { border-bottom: 1px solid #eee; }
  .main-nav a { display: block; padding: 14px 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .gypsum-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { min-height: auto; padding: 110px 0 60px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; }
  .services-grid, .steps-grid, .whyus-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .service-card { opacity: 1; transform: none; }
}