/* ============================================================
   Gauri Enterprises — Enterprise Website Stylesheet (v2)
   Green-led brand system: deep green + red wordmark, solar-gold energy accent.
   All colour/type/motion tokens live in :root — single source of truth.
   ============================================================ */

:root{
  /* ---------- BRAND: GREEN ---------- */
  --brand-green:        #0A5B47;   /* workhorse: buttons, icons, text on light (8.08:1) */
  --brand-green-deep:   #034134;   /* logo green: deepest ink / dark surfaces (11.60:1) */
  --brand-green-on-dark:#6FE9AE;   /* mint: green text/links ON dark green (8.44:1) */

  /* ---------- BRAND: RED (reserved) ---------- */
  --brand-red:          #E8312E;   /* logo red — LARGE display / icons / fills only */
  --brand-red-ink:      #C41E1B;   /* red for SMALL text on light (5.92:1) */
  --brand-red-on-dark:  #FF7A72;   /* coral: red ON dark green (5.01:1) */

  /* ---------- SOLAR GOLD (fill-only on light) ---------- */
  --gold:               #FFC24B;   /* energy accent; carries dark ink (8.25:1) */
  --gold-deep:          #F5A623;   /* pressed / gradient stop (6.54:1) */

  /* ---------- SUPPORTING TEAL (restrained) ---------- */
  --teal:               #0A6E6B;   /* only cool hue; text-safe on light (6.08:1) */
  --teal-tint:          #E4F3F1;

  /* ---------- SURFACES ---------- */
  --bg-page:            #F7FAF8;
  --surface:            #FFFFFF;
  --surface-inset:      #EFF5F1;
  --surface-dark:       #063A2E;
  --surface-dark-deep:  #052A22;

  /* ---------- TEXT ---------- */
  --text-heading:       #0F362C;   /* 13.25:1 on #fff */
  --text-body:          #38473F;   /* 9.81:1 */
  --text-muted:         #5A6A62;   /* 5.72:1 */
  --text-on-dark:       #EAF5EF;   /* 11.38:1 on dark green */
  --text-on-dark-muted: #A9C6BA;   /* 6.94:1 */
  --text-on-gold:       #0F362C;   /* on gold fills (8.25:1) */

  /* ---------- BORDERS ---------- */
  --border:             rgba(15,54,44,0.10);
  --border-strong:      rgba(15,54,44,0.20);
  --border-on-dark:     rgba(234,245,239,0.16);

  /* ---------- SHADOWS (green-tinted) ---------- */
  --shadow-sm: 0 4px 16px rgba(3,65,52,0.08);
  --shadow-md: 0 14px 36px rgba(3,65,52,0.12);
  --shadow-lg: 0 26px 64px rgba(3,65,52,0.18);
  --shadow-gold: 0 12px 30px rgba(245,166,35,0.28);

  /* ---------- SIGNATURE GRADIENTS ---------- */
  --grad-hero:    linear-gradient(160deg,#0A5B47 0%,#034134 55%,#052A22 100%);
  --grad-gold:    linear-gradient(135deg,#FFD277 0%,#FFC24B 45%,#F5A623 100%);
  --grad-emerald: linear-gradient(135deg,#0E6B50 0%,#0A5B47 60%,#034134 100%);
  --grad-photo-veil: linear-gradient(to top, rgba(5,42,34,0.92) 0%, rgba(5,42,34,0.35) 45%, rgba(5,42,34,0) 78%);

  /* ---------- FONTS ---------- */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* ---------- FLUID TYPE SCALE ---------- */
  --fs-h1:      clamp(2.5rem,1.55rem + 4.2vw,4.75rem);
  --fs-h2:      clamp(2rem,1.55rem + 2.1vw,3.25rem);
  --fs-h3:      clamp(1.5rem,1.28rem + 1.05vw,2.25rem);
  --fs-h4:      clamp(1.25rem,1.13rem + 0.55vw,1.625rem);
  --fs-h5:      clamp(1.125rem,1.06rem + 0.32vw,1.375rem);
  --fs-eyebrow: clamp(0.8125rem,0.79rem + 0.12vw,0.9375rem);
  --fs-lead:    clamp(1.125rem,1.03rem + 0.5vw,1.375rem);
  --fs-body:    clamp(1rem,0.965rem + 0.18vw,1.125rem);
  --fs-small:   clamp(0.8125rem,0.795rem + 0.09vw,0.875rem);

  /* ---------- SPACING (8-pt) ---------- */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.25rem; --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem;
  --space-12:3rem; --space-16:4rem;

  /* ---------- RADIUS ---------- */
  --radius-sm:12px; --radius-md:20px; --radius-lg:28px;

  /* ---------- EASING (4-curve system) ---------- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back:  cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);

  --nav-height: 76px;

  /* ---------- SHARED GRAIN (hero/stats/footer) ---------- */
  --grain-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");

  /* ===== LEGACY ALIASES — keep un-rewritten CSS on-brand ===== */
  --primary:      var(--brand-green);
  --primary-dark: var(--brand-green-deep);
  --secondary:    var(--brand-green-on-dark);
  --teal-start:   #0E6B50;
  --teal-end:     #034134;
  --dark:         var(--text-heading);
  --bg-light:     var(--bg-page);
  --card-bg:      var(--surface);
  --gray-600:     var(--text-body);
  --gray-500:     var(--text-muted);
  --border-soft:  var(--border);
  --ease-smooth:  var(--ease-out);
  --ease-soft:    var(--ease-inout);
}

/* ===================== Base & Reset ===================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body{
  font-family:var(--font-body); font-size:var(--fs-body); font-weight:400;
  line-height:1.65; color:var(--text-body); background:var(--bg-page);
  font-optical-sizing:auto; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1,h2,h3,h4{ font-family:var(--font-heading); font-optical-sizing:auto; color:var(--text-heading); text-wrap:balance; }
h5,h6{ font-family:var(--font-body); color:var(--text-heading); }
h1{ font-size:var(--fs-h1); font-weight:600; line-height:1.03; letter-spacing:-0.021em; }
h2{ font-size:var(--fs-h2); font-weight:600; line-height:1.08; letter-spacing:-0.018em; }
h3{ font-size:var(--fs-h3); font-weight:600; line-height:1.15; letter-spacing:-0.012em; }
h4{ font-size:var(--fs-h4); font-weight:500; line-height:1.22; letter-spacing:-0.006em; }
h5{ font-size:var(--fs-h5); font-weight:700; line-height:1.30; }

p{ color:var(--text-body); text-wrap:pretty; }
a{ text-decoration:none; color:var(--brand-green); }

img{ max-width:100%; height:auto; display:block; }

.lead{ font-size:var(--fs-lead); font-weight:400; line-height:1.6; }
small,.text-small{ font-size:var(--fs-small); font-weight:500; line-height:1.5; letter-spacing:0.006em; }

::selection{ background:var(--gold); color:var(--text-on-gold); }

.container-xl { max-width: 1320px; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 2000;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

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

/* ===================== Utilities ===================== */
.section-py { padding-top: 6.5rem; padding-bottom: 6.5rem; }
@media (max-width: 767.98px) {
  .section-py { padding-top: 4rem; padding-bottom: 4rem; }
}

.bg-soft { background-color: var(--bg-light); }

/* Accent text hooks — GREEN on light, GOLD only on dark */
.gradient-text{
  background: linear-gradient(120deg, var(--brand-green), var(--brand-green-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gradient-text-gold{
  position: relative;
  background: linear-gradient(120deg, #FFE08A, var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-gold{ color: var(--gold); }
.gradient-text-light{ background: none; color: var(--text-on-dark); -webkit-text-fill-color: currentColor; }

.eyebrow, h6.eyebrow{
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-green); background: rgba(10,91,71,0.08);
  border: 1px solid rgba(10,91,71,0.16); padding: .45rem 1.1rem; border-radius: 50px; margin-bottom: 1.25rem;
}
.eyebrow i { font-size: 0.9rem; }
.eyebrow-light{ color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }

.section-header { max-width: 720px; }
.section-header.mx-auto { text-align: center; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: var(--fs-lead); color: var(--text-body); }
.section-header.mx-auto p { margin-left: auto; margin-right: auto; }

/* ===================== Buttons ===================== */
/* PRIMARY (green) — default CTA */
.btn-primary-solar, .btn-gradient{
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2.1rem; border-radius: 50px; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  color: #fff !important; background: var(--grad-emerald); border: none; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn-primary-solar:hover, .btn-gradient:hover, .btn-gradient:focus-visible{ transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff !important; }
.btn-gradient:active { transform: translateY(-1px); }

/* GOLD — energy/hero/quote CTA */
.btn-gold{
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2.1rem; border-radius: 50px; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  color: var(--text-on-gold) !important; background: var(--grad-gold); border: none; box-shadow: var(--shadow-gold);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn-gold:hover, .btn-gold:focus-visible{ transform: translateY(-4px); box-shadow: 0 18px 40px rgba(245,166,35,.5); color: var(--text-on-gold) !important; }
.btn-gold:active { transform: translateY(-1px); }
.btn-gold::after{ content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg,transparent,rgba(255,255,255,.6),transparent); transform: skewX(-20deg); transition: left .75s var(--ease-out); }
.btn-gold:hover::after{ left: 130%; }

/* GLASS — secondary on dark/hero */
.btn-glass{
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 2rem; border-radius: 50px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: #fff !important;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn-glass:hover, .btn-glass:focus-visible{ background: rgba(255,255,255,0.22); transform: translateY(-4px); color: #fff !important; }

/* OUTLINE — green on white */
.btn-outline-primary-soft{
  display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.9rem; border-radius: 50px;
  font-family: var(--font-body); font-weight: 700; color: var(--brand-green) !important; border: 1.5px solid var(--border-strong); background: var(--surface);
  transition: all .3s var(--ease-out);
}
.btn-outline-primary-soft:hover{ background: var(--brand-green); color: #fff !important; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ===================== Preloader ===================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #102a45 0%, var(--dark) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-soft), visibility 0.7s var(--ease-soft);
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-mark { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.preloader-mark img { width: 46px; height: auto; animation: preloaderPulse 1.6s ease-in-out infinite; position: relative; z-index: 1; }
.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(125, 255, 179, 0.14);
  border-top-color: var(--secondary);
  border-right-color: var(--teal-start);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.75; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* ===================== Navbar ===================== */
.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1.1rem 0;
  background: transparent;
  transition: background 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft), padding 0.5s var(--ease-soft);
}
.navbar-main.scrolled {
  background: rgba(247, 250, 248, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-logo .logo-badge {
  background: #fff;
  border-radius: 14px;
  padding: 4px 8px;
  box-shadow: 0 6px 18px rgba(11, 31, 51, 0.14);
  display: flex;
  align-items: center;
}
.brand-logo img { height: 38px; width: auto; }
.brand-logo .brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.4s ease;
  line-height: 1.1;
}
/* Over the dark hero: mint green + coral red (legible on dark). Scrolled: deep logo colours on light. */
.brand-gauri { color: var(--brand-green-on-dark); }
.brand-ent { color: var(--brand-red-on-dark); }
.navbar-main.scrolled .brand-gauri { color: var(--brand-green-deep); }
.navbar-main.scrolled .brand-ent { color: var(--brand-red-ink); }
.brand-logo .brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.navbar-main.scrolled .brand-text small { color: var(--text-muted); }

.navbar-main .nav-link {
  position: relative;
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0 !important;
  margin: 0 0.85rem;
  transition: color 0.3s ease;
}
.navbar-main.scrolled .nav-link { color: var(--text-heading); }
.navbar-main .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.24s var(--ease-inout);
  border-radius: 2px;
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { width: 100%; }
.navbar-main .nav-link:hover { color: var(--gold); }
.navbar-main.scrolled .nav-link:hover { color: var(--brand-green); }

.navbar-main .navbar-toggler {
  border: none;
  color: #fff;
  font-size: 1.6rem;
  padding: 0;
}
.navbar-main .navbar-toggler:focus { box-shadow: none; }

.nav-cta { margin-left: 0.5rem; padding: 0.65rem 1.5rem; font-size: 0.9rem; }

@media (max-width: 991.98px) {
  .navbar-main .collapse {
    background: rgba(247, 250, 248, 0.98);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .navbar-main .nav-link, .navbar-main.scrolled .nav-link { color: var(--text-heading) !important; margin: 0.35rem 0; }
  .nav-cta { margin-left: 0; margin-top: 0.75rem; width: 100%; justify-content: center; }
}

/* ===================== Hero ===================== */
.hero{
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-height); overflow: hidden; isolation: isolate;
}
.hero-bg{ position: absolute; inset: 0; z-index: -3; background: var(--grad-hero); }
.hero-bg::after{ content: ""; position: absolute; inset: 0;
  background: url("../media/hero-background.jpg") center 60%/cover; mix-blend-mode: luminosity; opacity: .55; }
.hero-overlay{ position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(120deg, rgba(5,42,34,.92) 0%, rgba(3,65,52,.72) 45%, rgba(3,65,52,.40) 100%), var(--grad-photo-veil); }
.hero-aurora{ position: absolute; inset: -10%; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 40% at 72% 18%, rgba(255,194,75,.28), transparent 70%),
             radial-gradient(45% 45% at 20% 85%, rgba(10,91,71,.55), transparent 72%);
  animation: auroraDrift 24s ease-in-out infinite; }
@keyframes auroraDrift{ 0%,100%{ transform: translate3d(0,0,0) scale(1);} 50%{ transform: translate3d(2%,-2%,0) scale(1.06);} }

.hero-content{ position: relative; z-index: 2; padding-top: 2rem; padding-bottom: 3rem; }
.hero-content h1{ color: var(--text-on-dark); text-shadow: 0 2px 30px rgba(5,42,34,.45); margin-bottom: 1.3rem; }
.hero-content p.lead{ color: var(--text-on-dark); max-width: 58ch; text-align: left; margin-bottom: 2.2rem; }
.hero-cta{ display: flex; flex-wrap: wrap; gap: 1rem; }

.gradient-text-gold::after{ content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg,transparent 40%,rgba(255,255,255,.75) 50%,transparent 60%);
  background-size: 250% 100%; background-position: 120% 0; mix-blend-mode: overlay;
  animation: goldSweep 1.1s var(--ease-out) .5s 1 both; }
@keyframes goldSweep{ to{ background-position: -40% 0; } }

/* Hero stat strip - overlaps into next section */
.hero-stats-wrap{ position: relative; z-index: 4; margin-top: -1px; }
.hero-stats{
  background: var(--surface); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; transform: translateY(45%); display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1rem; text-align: center; position: relative; overflow: hidden;
}
.hero-stats::before{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); }
.hero-stats .stat-item{ position: relative; transition: transform 0.4s var(--ease-out); }
.hero-stats .stat-item:hover{ transform: translateY(-5px); }
.hero-stats .stat-item:not(:last-child)::after{
  content: ""; position: absolute; right: -0.5rem; top: 10%; width: 1px; height: 80%; background: var(--border); }
.stat-icon{
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto .6rem;
  border-radius: 12px; font-size: 1.1rem; background: var(--grad-gold); color: var(--text-on-gold); box-shadow: var(--shadow-gold); }
.hero-stats .stat-item h3{
  font-family: var(--font-heading); font-weight: 600; color: var(--brand-green-deep);
  font-size: clamp(1.7rem,3vw,2.4rem); margin-bottom: 0.15rem; }
.hero-stats .stat-item span{ color: var(--text-muted); font-weight: 600; font-size: var(--fs-small); }
@media (max-width: 767.98px){ .hero-stats{ grid-template-columns: repeat(2,1fr); transform: translateY(20%); gap: 1.5rem; } }
#about{ padding-top: clamp(5rem, 10vw, 8rem); }

/* ===================== About ===================== */
.about-img-wrap { position: relative; }
.about-img-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  background: var(--grad-emerald);
  border-radius: calc(var(--radius-lg) + 10px);
  opacity: 0.28;
  filter: blur(24px);
  z-index: -1;
}
.about-img-frame { border-radius: var(--radius-lg); overflow: hidden; }
.about-img-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.about-img-wrap:hover img { transform: scale(1.04); }
.about-badge-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.25rem;
  display: flex; align-items: center; gap: .85rem;
  background: var(--grad-emerald);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow-lg);
  max-width: 250px;
}
.about-badge-card > i { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; }
.about-badge-card h4 { font-family: var(--font-heading); color: #fff; font-size: 1.75rem; margin-bottom: 0.05rem; }
.about-badge-card p { color: var(--text-on-dark-muted); font-size: 0.8rem; margin: 0; font-weight: 500; }
@media (max-width: 575.98px) { .about-badge-card { left: 0.75rem; bottom: -1.25rem; padding: 1rem 1.1rem; } }

/* Value POP cards — Vision / Mission / Integrity / Craftsmanship */
.value-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.35rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-back), box-shadow 0.5s var(--ease-smooth), border-color 0.4s ease;
}
.value-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.value-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10,91,71,0.2);
}
.value-item:hover::before { transform: scaleX(1); }
.value-icon {
  position: relative;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,91,71,0.09);
  color: var(--brand-green);
  font-size: 1.25rem;
  transition: transform 0.45s var(--ease-back), color 0.3s ease, background 0.3s ease;
  isolation: isolate;
}
.value-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  background: var(--grad-gold);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.value-item:hover .value-icon {
  transform: translateY(-2px) scale(1.06);
  color: var(--text-on-gold);
  background: var(--grad-gold);
}
.value-item > div { flex: 1; min-width: 0; }
.value-item h5 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.value-item p { font-size: 0.9rem; margin: 0; }

.about-mini-stats { display: flex; gap: 2rem; margin-top: 1.75rem; flex-wrap: wrap; }
.about-mini-stats .mini-stat h3 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 2.25rem; margin-bottom: 0; color: var(--brand-green-deep);
}
.about-mini-stats .mini-stat span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* ===================== Shared card shell (Services) ===================== */
.glass-card{
  background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); height: 100%; position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease;
}
.glass-card::before{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); z-index: 1; }
.glass-card::after{ display: none; }
.glass-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(10,91,71,.18); }
.glass-card:hover::before{ transform: scaleX(1); }

/* ===================== v2 global tone: calm ornaments, gold progress ===================== */
.section-ornament::before, .section-ornament::after, .ornament-icon{ animation: none !important; }
.ornament-icon{ color: var(--brand-green); opacity: .06; }
.section-ornament::before{ background: var(--brand-green); }
.section-ornament::after{ background: var(--gold-deep); }
.dot-grid-accent{ background-image: radial-gradient(rgba(10,91,71,0.16) 1.5px, transparent 1.5px); }
#scrollProgress{ background: var(--grad-gold); }
.preloader-ring{ border-top-color: var(--gold); border-right-color: var(--brand-green); }
:focus-visible{ outline: 3px solid var(--brand-green); outline-offset: 3px; }
.skip-link{ background: var(--brand-green); color: #fff; }
/* Calm: only the hero aurora + preloader may loop */
.service-icon::before, .feature-icon::before, .testimonial-avatar::before,
.process-number::before, .process-track::before { animation: none !important; }
.process-track::after { display: none !important; }
/* Gold "+" suffix only on the dark stats band; inherit (green) on light stat groups */
.hero-stats .accent-gold, .about-mini-stats .accent-gold { color: inherit; }

/* Services */
.service-card { padding: 2rem 1.85rem; display: flex; flex-direction: column; }
.service-icon {
  position: relative;
  width: 66px; height: 66px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-start), var(--primary));
  margin-bottom: 1.4rem;
  box-shadow: 0 10px 24px rgba(10,91,71,0.25);
  transition: transform 0.5s var(--ease-back);
  isolation: isolate;
}
.service-icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  background: conic-gradient(from 0deg, var(--secondary), var(--teal-start), var(--primary), var(--secondary));
  opacity: 0;
  z-index: -1;
  animation: spinSlow 3s linear infinite;
  transition: opacity 0.35s ease;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-8deg); }
.service-card:hover .service-icon::before { opacity: 0.8; }
.service-card h4 { font-size: 1.18rem; margin-bottom: 0.7rem; }
.service-card p.service-desc { font-size: 0.94rem; margin-bottom: 1rem; }
.read-more-btn {
  background: none; border: none; padding: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}
.read-more-btn i { transition: transform 0.35s var(--ease-back); }
.service-card:hover .read-more-btn i,
.read-more-btn[aria-expanded="true"] i { transform: translateY(-3px); }

/* Upward-sliding pop panel (replaces inline expand) */
.service-pop {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 2rem 1.85rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--primary) 0%, var(--teal-start) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(101%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease-smooth), opacity 0.4s ease, visibility 0.5s;
  overflow: auto;
}
.service-card:hover .service-pop,
.service-card.is-open .service-pop {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.service-pop-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.service-pop h5 { color: #fff; font-size: 1.1rem; margin-bottom: 0.6rem; }
.service-pop p { color: rgba(255,255,255,0.94); font-size: 0.92rem; margin: 0; line-height: 1.6; }
.service-pop-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.service-card.is-open .service-pop-close { opacity: 1; }
.service-pop-close:hover { background: rgba(255,255,255,0.28); }
@media (prefers-reduced-motion: reduce) {
  .service-pop { transition: opacity 0.3s ease, visibility 0.3s; transform: none; }
}

/* Why choose us */
.feature-card { padding: 2.2rem 1.75rem; text-align: center; }
.feature-icon {
  position: relative;
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  color: var(--primary);
  background: radial-gradient(circle at 30% 30%, rgba(125,255,179,0.35), rgba(10,91,71,0.12));
  border: 1px solid rgba(10,91,71,0.15);
  transition: transform 0.5s var(--ease-back), color 0.35s ease;
  isolation: isolate;
}
.feature-icon::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--teal-start), var(--primary), var(--secondary), var(--teal-start));
  opacity: 0;
  z-index: -1;
  animation: spinSlow 3s linear infinite;
  transition: opacity 0.35s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1); color: var(--dark); }
.feature-card:hover .feature-icon::before { opacity: 0.9; }
.feature-card h4 { font-size: 1.08rem; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.92rem; margin: 0; }

/* Industries — 3D flip reveal */
.industry-flip { aspect-ratio: 1 / 1; perspective: 1200px; }
.industry-flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-smooth);
  border-radius: var(--radius-md);
}
.industry-flip:hover .industry-flip-inner,
.industry-flip.is-flipped .industry-flip-inner { transform: rotateY(180deg); }

.industry-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.1rem;
}
.industry-front {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.industry-icon {
  width: 60px; height: 60px;
  margin-bottom: 1rem;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  color: var(--dark);
  background: linear-gradient(135deg, rgba(125,255,179,0.5), rgba(0,198,167,0.35));
}
.industry-front h5 { font-size: 0.96rem; margin: 0; }
.industry-back {
  transform: rotateY(180deg);
  background: linear-gradient(150deg, var(--teal-start), var(--primary));
  color: #fff;
}
.industry-back i { font-size: 1.4rem; margin-bottom: 0.6rem; opacity: 0.9; }
.industry-back p { color: rgba(255,255,255,0.92); font-size: 0.82rem; margin: 0; line-height: 1.5; }

@media (hover: none), (pointer: coarse) {
  .industry-flip-inner { transition: transform 0.6s var(--ease-smooth); }
}
@media (prefers-reduced-motion: reduce) {
  .industry-flip-inner { transition: none; }
}

/* ===================== Process Timeline ===================== */
.process-track { position: relative; padding-top: 1rem; }
.process-track::before {
  content: "";
  position: absolute;
  top: calc(1rem + 46px);
  left: 8%; right: 8%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-start), var(--primary), var(--teal-start));
  background-size: 200% 100%;
  opacity: 0.3;
  display: none;
  animation: lineShift 6s linear infinite;
}
@media (min-width: 992px) { .process-track::before { display: block; } }
@keyframes lineShift {
  to { background-position: 200% 0; }
}
.process-track::after {
  content: "";
  position: absolute;
  top: calc(1rem + 46px - 5px);
  left: 8%;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(125,255,179,0.25), 0 0 18px 4px rgba(125,255,179,0.7);
  display: none;
  animation: travelDot 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@media (min-width: 992px) { .process-track::after { display: block; } }
@keyframes travelDot {
  0% { left: 8%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}

.process-step { text-align: center; position: relative; padding: 0 0.75rem; }
.process-number {
  width: 92px; height: 92px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--card-bg);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}
.process-step:hover .process-number {
  transform: translateY(-6px) scale(1.05);
  box-shadow: var(--shadow-lg);
}
.process-number::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--teal-start);
  opacity: 0;
  animation: ringPulse 2.4s ease-out infinite;
}
.process-step:nth-child(2) .process-number::before { animation-delay: 0.4s; }
.process-step:nth-child(3) .process-number::before { animation-delay: 0.8s; }
.process-step:nth-child(4) .process-number::before { animation-delay: 1.2s; }
.process-step:nth-child(5) .process-number::before { animation-delay: 1.6s; }
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.process-number .step-icon { font-size: 1.7rem; color: var(--primary); }
.process-number .step-badge {
  position: absolute;
  top: -10px; right: -6px;
  background: linear-gradient(135deg, var(--teal-start), var(--primary));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(10,91,71,0.35);
}
.process-step h5 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; }

/* ===================== Statistics band ===================== */
.stats-band{ position: relative; background: var(--grad-hero); overflow: hidden; }
.stats-band::before{ content: ""; position: absolute; inset: 0; background-image: var(--grain-noise); mix-blend-mode: soft-light; opacity: .6; }
.stats-band .stat-box{
  position: relative; z-index: 1; text-align: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-on-dark); backdrop-filter: blur(10px);
  border-radius: var(--radius-md); padding: 2rem 1rem;
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}
.stats-band .stat-box:hover{ transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.stats-band .stat-box i{ font-size: 1.9rem; color: var(--gold); margin-bottom: 0.75rem; display: inline-block; }
.stats-band .stat-box h3{ font-family: var(--font-heading); font-weight: 600; color: var(--text-on-dark); font-size: clamp(2rem,4vw,3rem); margin-bottom: 0.25rem; }
.stats-band .stat-box h3 .accent-gold{ color: var(--gold); }
.stats-band .stat-box span{ color: var(--text-on-dark-muted); font-weight: 600; font-size: var(--fs-small); }

/* ===================== Projects (masonry) ===================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 2.75rem;
}
.filter-btn {
  border: 1.5px solid var(--border-soft);
  background: #fff;
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--teal-start), var(--primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(10,91,71,0.3);
}

/* ---- Bento 3D grid ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 1.5rem;
  perspective: 1600px;
}
.project-card-3d.size-lg { grid-column: span 2; grid-row: span 2; }
@media (max-width: 991.98px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
}
@media (max-width: 575.98px) {
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .project-card-3d.size-lg { grid-column: span 1; grid-row: span 1; }
}

.project-card-3d {
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
}
.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
  will-change: transform;
}
.project-card-3d:hover .project-card-inner {
  box-shadow: 0 30px 60px -12px rgba(10, 91, 71, 0.35), 0 0 0 1px rgba(10,91,71,0.08);
}
.project-media {
  position: absolute; inset: -6%;
  transform: translateZ(0);
  transition: transform 0.4s var(--ease-smooth);
}
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-smooth), filter 0.5s ease;
  filter: saturate(1.28) contrast(1.08) brightness(1.03);
}
.project-card-3d:hover .project-media img { transform: scale(1.1); filter: saturate(1.4) contrast(1.1) brightness(1.05); }

.project-glow {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.project-card-3d:hover .project-glow { opacity: 1; }

/* Base dark scrim for legibility */
.project-card-inner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,42,34,0.9) 0%, rgba(5,42,34,0.05) 55%, transparent 100%);
  pointer-events: none;
  transition: background 0.5s ease;
}
/* Category colour wash — kills the "dull" look by tinting each card with a brand hue */
.project-card-3d[data-category="residential"] .project-card-inner::after {
  background: linear-gradient(to top, rgba(6,80,50,0.92) 0%, rgba(15,154,77,0.28) 45%, rgba(15,154,77,0.05) 75%, transparent 100%);
}
.project-card-3d[data-category="commercial"] .project-card-inner::after {
  background: linear-gradient(to top, rgba(6,55,52,0.92) 0%, rgba(10,91,71,0.3) 45%, rgba(10,91,71,0.06) 75%, transparent 100%);
}
.project-card-3d[data-category="rooftop"] .project-card-inner::after {
  background: linear-gradient(to top, rgba(120,80,10,0.92) 0%, rgba(245,166,35,0.32) 45%, rgba(245,166,35,0.06) 75%, transparent 100%);
}
/* Coloured gradient ring appears on hover */
.project-card-inner {
  outline: 0 solid transparent;
}
.project-card-3d[data-category="residential"]:hover .project-card-inner { box-shadow: 0 30px 60px -12px rgba(15,154,77,0.45), inset 0 0 0 2px rgba(125,255,179,0.5); }
.project-card-3d[data-category="commercial"]:hover .project-card-inner { box-shadow: 0 30px 60px -12px rgba(10,91,71,0.45), inset 0 0 0 2px rgba(111,233,174,0.55); }
.project-card-3d[data-category="rooftop"]:hover .project-card-inner { box-shadow: 0 30px 60px -12px rgba(245,166,35,0.5), inset 0 0 0 2px rgba(255,210,120,0.6); }

.project-index {
  position: absolute;
  top: 1.1rem; left: 1.1rem;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  transform: translateZ(45px);
  transition: transform 0.5s var(--ease-smooth);
}

.project-view-btn {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transform: translateZ(45px) scale(0.7);
  opacity: 0;
  transition: transform 0.45s var(--ease-back), opacity 0.35s ease, background 0.3s ease;
}
.project-card-3d:hover .project-view-btn { opacity: 1; transform: translateZ(55px) scale(1); }
.project-view-btn:hover { background: linear-gradient(135deg, var(--teal-start), var(--primary)); }

.project-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.3rem 1.4rem;
  transform: translateZ(35px);
  transition: transform 0.5s var(--ease-smooth);
}
.project-info .cat-tag {
  display: inline-block;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.project-card-3d[data-category="residential"] .cat-tag { background: linear-gradient(135deg, #12b45c, #0a7c42); }
.project-card-3d[data-category="commercial"] .cat-tag { background: linear-gradient(135deg, #16a89f, #0a6e6b); }
.project-card-3d[data-category="rooftop"] .cat-tag { background: linear-gradient(135deg, #ffc24b, #f5a623); color: #3a2600; }
.project-info h5 { color: #fff; font-size: 1.05rem; margin-bottom: 0.15rem; }
.project-info p {
  color: rgba(255,255,255,0.8); font-size: 0.8rem; margin: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth), opacity 0.4s ease;
}
.project-card-3d:hover .project-info p { max-height: 40px; opacity: 1; margin-top: 0.2rem; }

@media (hover: none), (pointer: coarse) {
  .project-view-btn { opacity: 1; transform: translateZ(0) scale(1); }
  .project-info p { max-height: 40px; opacity: 1; margin-top: 0.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card-inner, .project-media img, .project-index, .project-view-btn, .project-info { transition: none !important; }
}

/* Featured video card */
.video-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
}
.video-feature video { width: 100%; display: block; max-height: 520px; object-fit: cover; background: var(--dark); }
.video-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(125deg, rgba(5,42,34,0.55), rgba(10,91,71,0.35));
  cursor: pointer;
  transition: opacity 0.4s ease;
}
.video-play-overlay .play-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.video-play-overlay:hover .play-btn { transform: scale(1.1); background: rgba(255,255,255,0.28); }
.video-play-overlay.d-none-video { display: none; }

/* ===================== Gallery — 3D flip cards ===================== */
.gallery-grid .flip-card {
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s var(--ease-smooth);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.flip-card-front img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
  transition: transform 8s linear;
}
.flip-card:hover .flip-card-front img { transform: scale(1.18); }
.flip-card-front::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,42,34,0.55) 0%, transparent 45%);
}
.flip-hint {
  position: absolute;
  bottom: 0.8rem; right: 0.8rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(150deg, var(--teal-start), var(--primary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.1rem;
}
.flip-card-back .back-icon { font-size: 1.6rem; color: #fff; opacity: 0.85; margin-bottom: 0.6rem; }
.flip-card-back .cat-tag {
  color: rgba(255,255,255,0.85);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.flip-card-back h6 { color: #fff; font-size: 0.92rem; margin-bottom: 0.5rem; line-height: 1.3; }
.flip-card-back .view-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
  background: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
}

@media (hover: none), (pointer: coarse) {
  .flip-card-inner { transition: transform 0.6s var(--ease-smooth); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transform: none !important; }
  .flip-card-back { display: none; }
}

/* ===================== Testimonials ===================== */
#testimonialCarousel { perspective: 1600px; }
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
.testimonial-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-gold); }
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-card .quote-icon {
  font-size: 3rem;
  color: rgba(255,194,75,0.22);
  position: absolute;
  top: 1.5rem; left: 50%;
  transform: translateX(-50%);
}
.testimonial-card .stars { color: var(--gold-deep); font-size: 1.05rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card .stars i {
  display: inline-block;
  opacity: 0;
  animation: starPop 0.5s var(--ease-back) forwards;
}
.testimonial-card .stars i:nth-child(1) { animation-delay: 0.05s; }
.testimonial-card .stars i:nth-child(2) { animation-delay: 0.15s; }
.testimonial-card .stars i:nth-child(3) { animation-delay: 0.25s; }
.testimonial-card .stars i:nth-child(4) { animation-delay: 0.35s; }
.testimonial-card .stars i:nth-child(5) { animation-delay: 0.45s; }
@keyframes starPop {
  from { opacity: 0; scale: 0.3; }
  to { opacity: 1; scale: 1; }
}
.testimonial-card p.quote-text { font-size: var(--fs-lead); color: var(--text-body); font-style: normal; line-height: 1.6; max-width: 54ch; margin: 0 auto 1.75rem; }
.testimonial-avatar {
  position: relative;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600;
  color: #fff;
  background: var(--grad-emerald);
  margin: 0 auto 0.75rem;
  font-size: 1.15rem;
  box-shadow: 0 0 0 4px rgba(10,91,71,0.1);
}
.testimonial-avatar::before { content: none; }
.testimonial-card h5 { font-size: 1.05rem; margin-bottom: 0.15rem; color: var(--text-heading); }
.testimonial-card span.role { font-size: 0.85rem; color: var(--text-muted); }

#testimonialCarousel .carousel-indicators { position: static; margin-top: 2.25rem; }
#testimonialCarousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: var(--border-strong);
  border: none;
  margin: 0 6px;
}
#testimonialCarousel .carousel-indicators .active { background-color: var(--gold); }
.carousel-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--brand-green);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-green);
  box-shadow: var(--shadow-sm);
  position: relative;
  opacity: 1;
  transition: all .3s var(--ease-out);
}
.carousel-arrow:hover { background: var(--grad-gold); color: var(--text-on-gold); border-color: transparent; }

/* ===================== Contact ===================== */
.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
}
.contact-info-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal-start), var(--primary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-smooth);
}
.contact-info-card:hover {
  transform: translateX(6px) translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-info-card:hover::before { transform: scaleY(1); }
.contact-info-card .ci-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-start), var(--primary));
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.4s var(--ease-back);
}
.contact-info-card:hover .ci-icon { transform: scale(1.1) rotate(-6deg); }
.contact-info-card > div { flex: 1; min-width: 0; }
.contact-info-card h6 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-info-card p, .contact-info-card a { font-size: 0.9rem; margin: 0; color: var(--gray-600); }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-start), var(--primary), var(--secondary));
}
.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid var(--border-soft);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  background: var(--bg-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-smooth);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(255,194,75,0.35), 0 8px 20px rgba(3,65,52,0.1);
  background: var(--surface);
  transform: translateY(-2px);
}
label.form-label { font-weight: 600; font-size: 0.88rem; color: var(--dark); margin-bottom: 0.35rem; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 320px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(15%) contrast(1.05); }

.social-icons { display: flex; gap: 0.7rem; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-on-dark); color: var(--text-on-dark);
  transition: all 0.35s var(--ease-back);
}
.social-icons a:hover {
  background: var(--grad-gold); color: var(--text-on-gold);
  transform: translateY(-4px); box-shadow: var(--shadow-gold);
}

/* ===================== Footer ===================== */
.site-footer{ background: var(--grad-hero); color: var(--text-on-dark-muted); padding-top: 5.5rem; position: relative; }
.site-footer::before{ content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: var(--grain-noise); mix-blend-mode: soft-light; }
.site-footer > *{ position: relative; z-index: 1; }
.site-footer h5{ color: var(--text-on-dark); font-size: 1.05rem; margin-bottom: 1.25rem; }
.site-footer p{ color: var(--text-on-dark-muted); font-size: 0.92rem; }
.site-footer .brand-gauri{ color: var(--brand-green-on-dark); }
.site-footer .brand-ent{ color: var(--brand-red-on-dark); }
.footer-links{ list-style: none; padding: 0; margin: 0; }
.footer-links li{ margin-bottom: 0.7rem; }
.footer-links a{ color: var(--text-on-dark-muted); font-size: 0.92rem; display: inline-flex; align-items: center; transition: color 0.18s var(--ease-out); }
.footer-links a:hover{ color: var(--gold); }
.footer-links i{ font-size: 0.7rem; margin-right: 0.4rem; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out); }
.footer-links a:hover i{ opacity: 1; transform: translateX(0); }

.newsletter-form{ position: relative; margin-top: 1rem; }
.newsletter-form input{
  width: 100%; padding: 0.85rem 6.5rem 0.85rem 1.2rem; border-radius: 50px;
  border: 1px solid var(--border-on-dark); background: rgba(255,255,255,0.06); color: var(--text-on-dark); font-size: 0.9rem;
}
.newsletter-form input::placeholder{ color: rgba(234,245,239,0.5); }
.newsletter-form input:focus{ outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,194,75,.3); }
.newsletter-form button{
  position: absolute; right: 4px; top: 4px; bottom: 4px; border: none; border-radius: 50px; padding: 0 1.3rem;
  font-weight: 700; font-size: 0.85rem; background: var(--grad-gold); color: var(--text-on-gold);
}

/* ---------- Footer dealer certificate ---------- */
.footer-certificate{
  display: block; margin-top: 0; max-width: 200px;
  background: #fff; border-radius: 12px; padding: 8px;
  border: 1px solid var(--border-on-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.footer-certificate:hover{ transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.footer-certificate img{ width: 100%; height: auto; display: block; border-radius: 6px; }
.footer-certificate-caption{
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin-top: 0.6rem; padding-bottom: 0.2rem;
  font-size: 0.78rem; font-weight: 600; color: var(--brand-green, #157347); text-align: center;
}
.footer-certificate-caption i{ color: var(--gold); }

.footer-bottom{ border-top: 1px solid var(--border-on-dark); margin-top: 3.5rem; padding: 1.5rem 0; font-size: 0.85rem; }
.footer-bottom a{ color: var(--text-on-dark-muted); } .footer-bottom a:hover{ color: var(--gold); }

@media (max-width: 991.98px){
  .site-footer{ padding-top: 4rem; }
  .site-footer .row{ --bs-gutter-y: 2.5rem; }
  .footer-certificate{ margin-left: auto; margin-right: auto; }
}

/* ===================== Back to top ===================== */
#backToTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--text-on-gold);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s ease;
  z-index: 900;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { transform: translateY(-4px); }

/* ===================== Lightbox Modal ===================== */
#lightboxModal .modal-content { background: transparent; border: none; }
#lightboxModal .modal-body { padding: 0; position: relative; }
#lightboxModal img { width: 100%; border-radius: var(--radius-md); }
#lightboxModal .btn-close { filter: invert(1); opacity: 1; background-color: rgba(0,0,0,0.4); border-radius: 50%; padding: 0.6rem; z-index: 3; }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  z-index: 3;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -10px; }
.lightbox-next { right: -10px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 1rem; font-weight: 600; }
@media (max-width: 575.98px) {
  .lightbox-prev { left: -4px; width: 40px; height: 40px; }
  .lightbox-next { right: -4px; width: 40px; height: 40px; }
}

/* ===================== Ornamental section backgrounds ===================== */
.section-ornament { position: relative; isolation: isolate; }
.section-ornament::before,
.section-ornament::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  pointer-events: none;
  animation: driftSlow 16s ease-in-out infinite;
}
.section-ornament::before {
  width: 380px; height: 380px;
  background: var(--teal-start);
  top: -60px; left: -100px;
}
.section-ornament::after {
  width: 300px; height: 300px;
  background: var(--primary);
  bottom: -80px; right: -80px;
  animation-delay: 4s;
  animation-direction: reverse;
}
@keyframes driftSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
}

.ornament-icon {
  position: absolute;
  color: var(--primary);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
  animation: driftSlow 14s ease-in-out infinite;
}
.ornament-icon.icon-lg { font-size: 6rem; }
.ornament-icon.icon-md { font-size: 3.5rem; }
.ornament-icon.spin-slow { animation: driftSlow 14s ease-in-out infinite, spinSlow 40s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.dot-grid-accent {
  position: absolute;
  width: 220px; height: 220px;
  background-image: radial-gradient(rgba(10,91,71,0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Section wave dividers */
.section-wave { position: relative; overflow: visible; }
.wave-divider {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.wave-divider svg { width: 100%; height: 60px; display: block; }
.wave-divider.wave-top { top: -1px; }
.wave-divider.wave-bottom { bottom: -2px; }

@media (prefers-reduced-motion: reduce) {
  .section-ornament::before, .section-ornament::after, .ornament-icon { animation: none !important; }
}
@media (max-width: 767.98px) {
  .ornament-icon.icon-lg { font-size: 3.5rem; }
  .dot-grid-accent { width: 140px; height: 140px; }
}

/* ===================== Scroll progress bar ===================== */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-start), var(--primary), var(--secondary));
  z-index: 1100;
  transition: width 0.1s linear;
}


/* ===================== Section heading decorative underline ===================== */
.deco-underline{
  display: block; width: 56px; height: 4px; border-radius: 4px; margin: 0 0 1.1rem;
  background: var(--grad-gold);
}
.deco-underline::after{ content: none; }
.section-header.mx-auto .deco-underline { margin-left: auto; margin-right: auto; }

/* ===================== Image clarity polish ===================== */
.about-img-wrap img,
.masonry-item img,
.gallery-grid .gallery-item img,
.hero-bg,
.video-feature video {
  filter: saturate(1.08) contrast(1.03);
}
