/* =====================================================
   Sai Shradda Lifts — Shared Design System
   ===================================================== */

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

:root {
  --bg: #f5f4f0;
  --bg2: #eceae4;
  --surface: #ffffff;
  --surface2: rgba(255,255,255,0.75);
  --border: rgba(0,0,0,0.08);
  --text: #111110;
  --text2: #555550;
  --text3: #888880;
  --accent: #1a4fd6;
  --accent2: #0f35a0;
  --accent-glow: rgba(26,79,214,0.10);
  --shadow: 0 2px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --radius: 12px; --radius-lg: 20px; --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
  --bg: #0d0d0d; --bg2: #141414; --surface: #1a1a1a;
  --surface2: rgba(26,26,26,0.85); --border: rgba(255,255,255,0.08);
  --text: #f0efea; --text2: #a8a8a0; --text3: #606060;
  --accent: #4d7cff; --accent2: #2558e8; --accent-glow: rgba(77,124,255,0.13);
  --shadow: 0 2px 20px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.65), 0 2px 8px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center; padding: 0 5%;
  background: var(--surface2); backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; color: var(--text);
}
.nav-logo-icon {
  width: 38px; height: 38px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; margin-left: auto; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text2);
  padding: 8px 15px; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: var(--accent-glow); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 500; border: none; transition: all var(--transition); cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg2); color: var(--text); }
.btn-outline {
  background: transparent; color: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 8px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition);
}
.btn-outline:hover { background: var(--accent); color: white; transform: translateY(-1px); }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text2); font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg2); }
.mobile-menu-btn {
  display: none; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 18px;
  align-items: center; justify-content: center;
}
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 16px 5%; z-index: 999; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 16px; font-weight: 500; padding: 10px 0; color: var(--text2); border-bottom: 1px solid var(--border); }

/* SECTION COMMONS */
section { padding: 96px 5%; }
.section-eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.section-title { font-size: clamp(32px,5vw,52px); font-weight: 800; color: var(--text); margin-bottom: 16px; }
.section-subtitle { font-size: 17px; color: var(--text2); max-width: 560px; font-weight: 300; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }
.section-cta { margin-top: 44px; text-align: center; }

/* CARDS */
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { width: 56px; height: 56px; background: var(--accent-glow); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; border: 1px solid rgba(26,79,214,0.15); }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 100px; background: var(--bg2); color: var(--text3); border: 1px solid var(--border); }

.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-thumb { height: 200px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; overflow: hidden; }
.project-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 40%,rgba(0,0,0,0.25)); }
.project-type-badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: var(--accent); color: white; }
.project-body { padding: 20px; }
.project-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.project-body p { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.project-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.project-meta span { font-size: 12px; color: var(--text3); }

.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.testimonial-card::before { content: '"'; font-family: Georgia,serif; font-size: 72px; line-height: 1; color: var(--accent); opacity: 0.18; position: absolute; top: 6px; left: 18px; }
.testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-glow); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed',sans-serif; font-size: 16px; font-weight: 700; color: var(--accent); }
.author-name { font-size: 14px; font-weight: 600; }
.author-role { font-size: 12px; color: var(--text3); }

.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb { height: 160px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 48px; border-bottom: 1px solid var(--border); }
.blog-body { padding: 20px; }
.blog-tag { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.blog-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-body p { font-size: 13px; color: var(--text2); margin-bottom: 14px; }
.blog-meta { font-size: 12px; color: var(--text3); display: flex; gap: 12px; }

/* CONTACT METHODS */
.contact-method { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); }
.contact-method:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.cm-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cm-green { background: rgba(37,211,102,0.12); }
.cm-blue { background: var(--accent-glow); }
.cm-red { background: rgba(239,68,68,0.1); }
.cm-label { font-size: 12px; color: var(--text3); }
.cm-val { font-size: 14px; font-weight: 500; color: var(--text); }

/* FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 500; color: var(--text2); }
input, select, textarea { font-family: 'DM Sans',sans-serif; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; outline: none; width: 100%; transition: border-color var(--transition), box-shadow var(--transition); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
select { appearance: none; }
textarea { resize: vertical; min-height: 80px; }
.btn-submit { width: 100%; padding: 14px; background: var(--accent); color: white; font-size: 15px; font-weight: 600; border: none; border-radius: 10px; margin-top: 4px; transition: all var(--transition); }
.btn-submit:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.form-success { display: none; text-align: center; padding: 32px; }
.form-success.visible { display: block; }
.success-icon { width: 64px; height: 64px; background: rgba(34,197,94,0.1); border: 2px solid #22c55e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; }
.success-title { font-family: 'Barlow Condensed',sans-serif; font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.success-sub { font-size: 14px; color: var(--text2); }
.lead-id { display: inline-block; font-family: monospace; font-size: 13px; background: var(--bg2); padding: 4px 12px; border-radius: 6px; color: var(--accent); margin-top: 12px; border: 1px solid var(--border); }

/* CTA BANNER */
.cta-banner { background: var(--accent); padding: 80px 5%; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%,rgba(255,255,255,0.1),transparent 60%), radial-gradient(ellipse at 80% 50%,rgba(0,0,0,0.15),transparent 60%); }
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(30px,5vw,52px); font-weight: 800; color: white; margin-bottom: 12px; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,0.82); margin-bottom: 36px; font-weight: 300; }
.btn-white { background: white; color: var(--accent2); padding: 16px 36px; font-size: 16px; font-weight: 600; border-radius: 10px; border: none; cursor: pointer; transition: all var(--transition); display: inline-block; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 5% 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text3); line-height: 1.7; max-width: 280px; }
.footer-iso { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--text2); margin-top: 20px; width: fit-content; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text3); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text3); }

/* FLOATING ACTION BUTTONS */
.floating-actions { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 900; }
.fab {
  display: flex; align-items: center; justify-content: flex-end;
  height: 52px; border-radius: 26px; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: width 0.32s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease;
  width: 52px; overflow: hidden; padding: 0 14px; text-decoration: none;
}
.fab:hover { width: 170px; transform: scale(1.04); box-shadow: 0 6px 28px rgba(0,0,0,0.3); }
.fab-wa { background: #25D366; color: white; }
.fab-wa:hover { background: #1fb356; }
.fab-call { background: var(--accent); color: white; }
.fab-call:hover { background: var(--accent2); }
.fab-label { font-family: 'DM Sans',sans-serif; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; margin-right: auto; transition: opacity 0.18s ease 0.06s; color: white; }
.fab:hover .fab-label { opacity: 1; }
.fab-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* PAGE HERO (inner pages) */
.page-hero { padding: calc(var(--nav-h) + 64px) 5% 72px; background: var(--bg2); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,var(--accent-glow),transparent 60%); }
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--text3); }
.breadcrumb a { color: var(--accent); }
.page-hero h1 { font-size: clamp(40px,6vw,68px); font-weight: 800; color: var(--text); margin-bottom: 16px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { font-size: 17px; color: var(--text2); font-weight: 300; max-width: 560px; }

/* COUNT-UP NUMBERS */
.count-num { display: inline-block; }

/* RESPONSIVE */
@media(max-width:1000px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:900px){ .nav-links{display:none;} .nav-actions .btn-ghost{display:none;} .mobile-menu-btn{display:flex;} }
@media(max-width:600px){ section{padding:64px 5%;} .form-grid{grid-template-columns:1fr;} .footer-grid{grid-template-columns:1fr;} .fab:hover{width:52px;} .fab:hover .fab-label{opacity:0;} }

/* ── IMAGE CARDS ─────────────────────────────────────── */
.img-thumb {
  width: 100%; height: 200px; object-fit: cover;
  display: block; transition: transform 0.5s ease;
}
.project-card:hover .img-thumb { transform: scale(1.04); }
.svc-img {
  width: 100%; height: 220px; object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.img-wrap { overflow: hidden; }
.project-thumb.has-img { padding: 0; font-size: 0; }
.project-thumb.has-img .project-type-badge { font-size: 11px; }

/* ── BLOG SOURCE LABEL ───────────────────────────────── */
.blog-source {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text3);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 8px; margin-top: 8px;
}
.blog-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-top: 12px; transition: gap var(--transition);
  text-decoration: none;
}
.blog-read-more:hover { gap: 9px; }

/* ── FIREBASE LOADING SPINNER ────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.9s linear infinite; }

/* ── FIELD ERROR ─────────────────────────────────────── */
.field-err { font-size: 12px; color: #ef4444; margin-top: 2px; }

/* ── SUCCESS ACTIONS ─────────────────────────────────── */
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-wa-success {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  background: #25D366; color: white;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-wa-success:hover { background: #1aab52; transform: translateY(-1px); }

/* ── SUCCESS STATE ENHANCEMENTS ──────────────────────── */
.form-success.visible {
  animation: successPop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.success-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
}
.success-icon {
  font-size: 36px; margin-bottom: 16px;
  animation: successPulse 0.6s ease 0.2s both;
}
@keyframes successPulse {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── SUBMIT BUTTON STATES ────────────────────────────── */
.btn-submit:disabled {
  opacity: 0.75; cursor: not-allowed; transform: none !important;
}
