:root {
  --primary: #35211a;
  --primary-dark: #261510;
  --accent: #c89a5b;
  --accent-dark: #b0864c;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-soft: #f7f1e9;
  --border: #e7dfd4;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(53, 33, 26, 0.08);
}

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

html { scroll-behavior: smooth; }

html, body { height: 100%; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > .site-header { flex-shrink: 0; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 110px; width: auto; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 2px; }

.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--text); font-size: 15px; transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; color: var(--primary); font-size: 16px; }
.header-phone a:hover { color: var(--accent); }

/* Services dropdown */
.nav-services { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  min-width: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.nav-services:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.dropdown a { display: block; padding: 10px 22px; font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); color: var(--primary); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--primary); margin: 5px 0; border-radius: 2px; }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 0 20px 18px; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 14px 0; font-weight: 600; }
.mobile-nav .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: 0; }
.mobile-nav .nav-services:hover .dropdown { transform: none; }

/* Hero */
.hero {
  background: linear-gradient(rgba(38, 21, 16, 0.82), rgba(38, 21, 16, 0.82)), url('../images/hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 110px 0;
  text-align: center;
}
.hero h1 { font-size: 46px; line-height: 1.2; max-width: 900px; margin: 0 auto 18px; font-weight: 800; }
.hero p { font-size: 19px; max-width: 720px; margin: 0 auto 32px; opacity: 0.95; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head h2 { font-size: 36px; color: var(--primary); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 26px; }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(53, 33, 26, 0.16); }
.service-card .thumb { height: 210px; background: var(--bg-soft) center/cover no-repeat; overflow: hidden; position: relative; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { color: var(--primary); font-size: 22px; margin-bottom: 10px; }
.service-card p { color: var(--muted); margin-bottom: 18px; flex: 1; }
.service-card .btn { align-self: flex-start; }

/* Feature grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature { text-align: center; padding: 28px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature .icon { font-size: 40px; margin-bottom: 12px; display: block; }
.feature h4 { color: var(--primary); margin-bottom: 8px; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.step .num { font-size: 34px; font-weight: 800; color: var(--accent); display: block; margin-bottom: 8px; }
.step h4 { color: var(--primary); margin-bottom: 6px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.project-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: opacity 0.3s, transform 0.35s, box-shadow 0.35s; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(53, 33, 26, 0.16); }
.project-card .thumb { height: 240px; background: var(--bg-soft) center/cover no-repeat; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .thumb img { transform: scale(1.08); }
.project-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.project-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 22px; }
.project-card .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.project-card .meta span { margin-right: 12px; }
.project-card .btn { align-self: flex-start; }
.project-card.hidden { display: none; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.filter-btn { padding: 10px 22px; border: 2px solid var(--border); background: #fff; border-radius: 30px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); transition: all 0.25s ease; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Project detail page */
.project-hero-detail { padding: 80px 0; background: var(--primary); color: #fff; }
.project-hero-detail .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.project-hero-detail h1 { font-size: 38px; margin-bottom: 14px; }
.project-hero-detail p { opacity: 0.9; font-size: 16px; }
.project-hero-detail .thumb { border-radius: var(--radius); background: rgba(255,255,255,0.15) center/cover no-repeat; position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.project-thumb-slide {
  position: absolute; inset: 0;
  background: var(--primary) center/cover no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.project-thumb-slide.on { opacity: 1; }

.project-details-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.detail-item { background: rgba(255,255,255,0.12); border-radius: 8px; padding: 16px 20px; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-item .label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin-bottom: 4px; display: block; }
.detail-item .value { font-size: 18px; font-weight: 700; display: block; }

.project-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }
.project-info-block h2 { color: var(--primary); font-size: 26px; margin-bottom: 14px; }
.project-info-block p { color: #444; margin-bottom: 14px; }
.project-info-block ul { color: #444; margin-bottom: 14px; padding-left: 0; list-style: none; }
.project-info-block ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.project-info-block ul li::before { content: '•'; color: var(--accent); position: absolute; left: 4px; font-weight: 800; }

.project-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 50px; }
.gallery-item { border-radius: var(--radius); background: var(--bg-soft) center/cover no-repeat; position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.gallery-item .gallery-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(38,21,16,0.85)); color: #fff; padding: 14px 18px; font-weight: 600; font-size: 15px; }

.project-materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.material-item { text-align: center; padding: 24px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.material-item .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.material-item .value { font-weight: 700; color: var(--primary); }

.more-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.more-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.25s; }
.more-card:hover { transform: translateY(-5px); }
.more-card .thumb { background: var(--bg-soft) center/cover no-repeat; aspect-ratio: 4 / 5; }
.more-card .body { padding: 22px; }
.more-card .body h3 { color: var(--primary); font-size: 19px; margin: 6px 0 0; }
.more-card .pj-loc { font-size: 12px; }
.more-card .pj-cost { margin-bottom: 0; }

@media (max-width: 900px) {
  .project-hero-detail .container { grid-template-columns: 1fr; }
  .project-details-bar { grid-template-columns: repeat(2, 1fr); }
  .project-info-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .project-details-bar { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.testimonial .quote { font-style: italic; color: var(--text); margin-bottom: 16px; }
.testimonial .author { font-weight: 700; color: var(--primary); }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-weight: 600; color: var(--primary); cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 22px; font-size: 24px; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 22px 18px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--primary); color: #fff; padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: 36px; margin-bottom: 14px; }
.cta-band p { max-width: 640px; margin: 0 auto 30px; opacity: 0.9; }

/* Contact info grid */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.contact-card { text-align: center; padding: 30px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card .icon { font-size: 34px; display: block; margin-bottom: 10px; }
.contact-card h4 { color: var(--primary); margin-bottom: 8px; }
.contact-card a { color: var(--accent); font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}

/* Page hero (inner) */
.page-hero { background: var(--primary); color: #fff; padding: 70px 0; text-align: center; }
.page-hero h1 { font-size: 40px; margin-bottom: 12px; }
.page-hero p { max-width: 700px; margin: 0 auto; opacity: 0.9; font-size: 17px; }

/* Prose */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { color: var(--primary); font-size: 30px; margin: 42px 0 16px; }
.prose h3 { color: var(--primary); font-size: 23px; margin: 30px 0 12px; }
.prose p { margin-bottom: 16px; color: #444; }
.prose ul { margin-bottom: 16px; color: #444; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose ul li::before { content: '•'; color: var(--accent); position: absolute; left: 4px; font-weight: 800; }

/* Footer */
.site-footer { background: #fff; color: var(--text); padding: 60px 0 0; font-size: 14px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: var(--primary); margin-bottom: 18px; font-size: 16px; }
.site-footer a { color: var(--text); display: block; margin-bottom: 10px; transition: color 0.2s; }
.site-footer a:hover { color: var(--accent); }
.footer-about { line-height: 1.8; color: var(--muted); text-align: center; }
.footer-about img.footer-logo-img { display: block; height: 96px; width: auto; margin: 0 auto 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; }
.footer-bottom a { display: inline; margin: 0 10px; color: var(--text); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 12px; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 34px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal h2 { color: var(--primary); font-size: 26px; margin-bottom: 6px; }
.modal .sub { color: var(--muted); margin-bottom: 22px; }
.modal .form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.modal-success { text-align: center; padding: 30px 10px; }
.modal-success .check { font-size: 50px; color: green; display: block; margin-bottom: 14px; }

@media (max-width: 900px) {
  .main-nav, .header-actions .header-phone { display: none; }
  .hamburger { display: block; }
  .header-inner { flex-wrap: wrap; }
  .hero h1 { font-size: 34px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 28px; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 28px; }
  .logo img { height: 84px; }
}

/* ===== Project showcase rows (pj) ===== */
.pj-section { padding: 80px 0; }
.pj-list { display: flex; flex-direction: column; gap: 90px; }

.pj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pj-row.pj-reverse { direction: rtl; }
.pj-row.pj-reverse > * { direction: ltr; }

.pj-text { padding: 46px 40px 40px; display: flex; flex-direction: column; }
.pj-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pj-loc { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.pj-idx { font-size: 15px; font-weight: 700; color: var(--accent); }
.pj-title { font-size: 28px; color: var(--primary); margin-bottom: 14px; line-height: 1.2; }
.pj-desc { color: #555; font-size: 15px; line-height: 1.8; margin-bottom: 26px; }

.pj-client { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pj-client-logo {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
}
.pj-client-logo-icon { width: 34px; height: 34px; }
.pj-client-name { font-weight: 700; color: var(--primary); font-size: 16px; }
.pj-client-type { font-size: 13px; color: var(--muted); }

.pj-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pj-pill { padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; background: #f1efea; color: var(--text); }
.pj-pill-blush { background: #f6e7da; color: #a86b3a; }

.pj-cost {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 26px; padding-top: 20px;
  font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px;
  border-top: 1px solid #e8e4dc;
}
.pj-cost strong {
  font-size: 20px; font-weight: 800;
  color: var(--accent); text-transform: none; letter-spacing: 0;
}

.pj-btn {
  display: inline-block; align-self: flex-start;
  background: var(--primary); color: #fff;
  padding: 13px 26px; border-radius: 6px;
  font-weight: 600; font-size: 15px;
  transition: background 0.25s ease;
}
.pj-btn:hover { background: var(--accent); }
.pj-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pj-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--primary);
  transition: all 0.25s ease;
}
.pj-btn-secondary:hover { background: var(--primary); color: #fff; }

/* Slider */
.pj-slider-wrap { position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5; }
.pj-slider { position: relative; flex: 1; overflow: hidden; background: var(--bg-soft); }
.pj-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.pj-slide img, .pj-slide .pj-ph { width: 100%; height: 100%; object-fit: cover; }
.pj-slide.on { opacity: 1; position: relative; }
.pj-sl-feat {
  position: absolute; top: 18px; left: 18px; z-index: 5;
  background: var(--accent); color: #fff;
  padding: 7px 14px; border-radius: 30px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.pj-sl-counter {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  background: rgba(38,21,16,0.7); color: #fff;
  padding: 6px 13px; border-radius: 30px; font-size: 13px; font-weight: 600;
}
.pj-sl-dots { display: flex; gap: 8px; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5; }
.pj-sl-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.6); cursor: pointer; padding: 0;
  transition: background 0.2s, width 0.2s;
}
.pj-sl-dot.on { background: #fff; width: 26px; border-radius: 5px; }
.pj-sl-nav { position: absolute; bottom: 16px; right: 18px; z-index: 6; display: flex; gap: 8px; }
.pj-sl-arr {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: var(--primary);
  font-size: 18px; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.pj-sl-arr:hover { background: var(--primary); color: #fff; }

@media (max-width: 900px) {
  .pj-row { grid-template-columns: 1fr; }
  .pj-row.pj-reverse { direction: ltr; }
  .pj-text { padding: 32px 24px; }
  .pj-slider-inner { min-height: 340px; }
  .pj-list { gap: 60px; }
}

/* ===== Floating WhatsApp button ===== */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(37,211,102,0.5); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; display: block; }

@media (max-width: 540px) {
  .wa-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-brand {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.preloader-brand span { color: var(--accent); }

.preloader-tag {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.preloader-bar {
  margin-top: 28px;
  width: 220px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  animation: preloadBar 1.4s ease forwards;
}
@keyframes preloadBar { to { width: 100%; } }

.preloader-logo {
  width: 74px;
  height: 74px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: preloadSpin 1.1s linear infinite;
}
.preloader-logo-inner {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 4px;
  transform: rotate(45deg);
}
@keyframes preloadSpin { to { transform: rotate(360deg); } }

@media (max-width: 540px) {
  .preloader-brand { font-size: 30px; letter-spacing: 3px; }
  .preloader-tag { font-size: 11px; letter-spacing: 2px; }
}

/* ===== Prose figures (article images) ===== */
.prose-figure {
  margin: 28px 0 36px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  position: relative;
}
.prose-figure img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.prose-figure:hover img { transform: scale(1.05); }
.prose-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
}
@media (max-width: 540px) {
  .prose-figure img { max-height: 260px; }
}

/* ===== Reveal on scroll ===== */
html.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }
html.js .reveal-delay-1 { transition-delay: 0.1s; }
html.js .reveal-delay-2 { transition-delay: 0.2s; }
html.js .reveal-delay-3 { transition-delay: 0.3s; }
html.js .reveal-delay-4 { transition-delay: 0.4s; }
html.js .reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Hero entrance animation ===== */
.hero { animation: heroZoom 9s ease both; }
@keyframes heroZoom {
  from { background-size: 115%; }
  to { background-size: 100%; }
}
.hero h1, .hero p, .hero-cta { animation: heroUp 1s ease both; }
.hero p { animation-delay: 0.15s; }
.hero-cta { animation-delay: 0.3s; }
.page-hero h1, .page-hero p { animation: heroUp 0.9s ease both; }
.page-hero p { animation-delay: 0.15s; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ===== Floating WhatsApp pulse ===== */
.wa-float { animation: waPulse 2.6s ease-in-out infinite; }
.wa-float:hover { animation: none; transform: translateY(-4px); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.65); }
}

/* ===== Card entrance stagger for grids ===== */
.services-grid .service-card, .features-grid .feature, .process-steps .step,
.testimonials-grid .testimonial, .projects-grid .project-card, .contact-grid .contact-card {
  will-change: transform, opacity;
}

/* ===== CTA band entrance ===== */
.cta-band h2, .cta-band p, .cta-band .btn, .cta-band a { animation: heroUp 0.9s ease both; }
.cta-band p { animation-delay: 0.12s; }
.cta-band .btn, .cta-band a { animation-delay: 0.25s; }
