/* =========================================================
   SK&P LTD — Master Stylesheet
   Design tokens: Navy #0F172A / Gold #C89B3C / BG #FFFFFF
   Light #F8FAFC / Dark #111827 / Border #E5E7EB
   Headings: Poppins | Body: Inter
   ========================================================= */

:root {
  --navy: #0F172A;
  --gold: #C89B3C;
  --bg: #FFFFFF;
  --light-bg: #F8FAFC;
  --dark: #111827;
  --border: #E5E7EB;
  --navy-rgb: 15, 23, 42;
  --gold-rgb: 200, 155, 60;
}

* { scroll-behavior: smooth; }

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--navy);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* =========================================================
   SIGNATURE ELEMENT: Architectural Dimension Line
   A surveyor's / blueprint dimension line used as a section
   divider — ticks + a running measurement label — nods to
   the drawings & site-plans this company builds from.
   ========================================================= */
.dim-line {
  position: relative;
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
}
.dim-line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 6px,
    transparent 6px, transparent 18px
  );
  opacity: 0.55;
}
.dim-line span {
  position: relative;
  margin: 0 auto;
  padding: 0 18px;
  background: inherit;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.dim-line.on-light span { background: var(--bg); }
.dim-line.on-light-alt span { background: var(--light-bg); }
.dim-line.on-dark span { background: var(--navy); }

/* Blueprint grid texture for dark sections */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(200,155,60,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,155,60,0.055) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* Corner brackets — surveyor pin motif for cards */
.corner-card { position: relative; }
.corner-card::before,
.corner-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.corner-card::before {
  top: 10px; left: 10px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transform: translate(4px, 4px);
}
.corner-card::after {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: translate(-4px, -4px);
}
.corner-card:hover::before,
.corner-card:hover::after { opacity: 1; transform: translate(0,0); }

/* Sticky navbar states */
#navbar {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, height 0.35s ease, backdrop-filter 0.35s ease;
}
#navbar.solid {
  background-color: rgba(255,255,255,0.97);
  box-shadow: 0 4px 24px rgba(15,23,42,0.08);
  backdrop-filter: blur(8px);
}
#navbar .nav-link { position: relative; }
#navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
#navbar .nav-link:hover::after,
#navbar .nav-link.active::after { width: 100%; }

/* Logo integrity — never crop, never squash */
.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: height 0.35s ease;
}
@media (max-width: 1023px) {
  .brand-logo { height: 58px; }
}
@media (max-width: 767px) {
  .brand-logo { height: 52px; }
}

/* Logo swap for transparent-over-dark-hero navbar state.
   On-dark variant (navy swapped to white, gold accents kept)
   shows while navbar is transparent over the hero; full-colour
   variant shows once the navbar goes solid white on scroll. */
.logo-wrap { position: relative; display: inline-flex; }
.logo-wrap .logo-ondark {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.logo-wrap .logo-color {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#navbar.solid .logo-wrap .logo-ondark { opacity: 0; }
#navbar.solid .logo-wrap .logo-color { opacity: 1; }

/* DWS credit — premium medallion badge */
.dws-seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 9px 20px 9px 9px;
  border-radius: 999px;
  border: 1px solid rgba(200,155,60,0.28);
  background: linear-gradient(135deg, rgba(200,155,60,0.07), rgba(255,255,255,0.015));
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s ease, transform 0.35s ease, box-shadow 0.4s ease, padding 0.5s ease;
}
.dws-seal:hover {
  border-color: rgba(200,155,60,0.65);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200,155,60,0.2);
}
.dws-seal::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: skewX(-20deg);
  transition: left 0.85s ease;
  z-index: 1;
}
.dws-seal:hover::before { left: 130%; }

/* Medallion ring with a slow-spinning gold halo, always alive at rest */
.dws-ring {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200,155,60,0.6);
  background: var(--navy);
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1), background 0.3s ease;
}
.dws-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(200,155,60,0.85) 55deg, transparent 110deg, transparent 360deg);
  animation: dws-halo-spin 5s linear infinite;
}
@keyframes dws-halo-spin { to { transform: rotate(360deg); } }
.dws-seal:hover .dws-ring {
  transform: rotate(180deg) scale(1.06);
  background: #16233d;
}
.dws-ring svg { transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1); }
.dws-seal:hover .dws-ring svg { transform: rotate(-180deg); }

.dws-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: center;
}
.dws-label {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.8);
}
.dws-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #C89B3C 0%, #F1D48C 45%, #C89B3C 100%);
  background-size: 220% auto;
  background-position: left center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.7s ease;
}
.dws-seal:hover .dws-name { background-position: right center; }

/* Domain name stays tucked away, unfurls on hover like a wax-seal ribbon */
.dws-domain {
  position: relative;
  z-index: 2;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(200,155,60,0.9);
  border-left: 1px solid transparent;
  padding-left: 0;
  margin-left: 0;
  transition: max-width 0.55s ease, opacity 0.4s ease 0.05s, padding-left 0.55s ease, margin-left 0.55s ease, border-color 0.4s ease;
}
.dws-seal:hover .dws-domain {
  max-width: 160px;
  opacity: 1;
  padding-left: 12px;
  margin-left: 1px;
  border-color: rgba(200,155,60,0.3);
}

@media (prefers-reduced-motion: reduce) {
  .dws-ring::before { animation: none; }
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #D6AC55, var(--gold));
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(200,155,60,0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200,155,60,0.4);
}
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  transition: all 0.3s ease;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-navy:hover { background: #1e293b; transform: translateY(-2px); }

/* Cards */
.card-elevated {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-elevated:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15,23,42,0.12);
  border-color: rgba(200,155,60,0.4);
}

/* Glass morphism (hero navbar / CTA cards) */
.glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
}

/* Section eyebrow label */
.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Scroll indicator */
.scroll-indicator {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  position: relative;
}
.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 6px; }
}

/* Counter numerals */
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--gold);
}

/* Timeline (process) */
.process-line {
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  height: 1px;
}
.process-node {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(200,155,60,0.15);
}

/* Testimonial slider */
.testi-track { transition: transform 0.6s cubic-bezier(0.65,0,0.35,1); }

/* FAQ accordion */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 480px; }
.faq-item .faq-icon { transition: transform 0.35s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Mobile menu */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.65,0,0.35,1);
}
#mobile-menu.open { transform: translateX(0); }

/* Back to top */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.show { opacity: 1; pointer-events: auto; }

/* Gallery filter fade */
.gallery-item {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: scale(1);
}
.gallery-item.fade-out {
  opacity: 0 !important;
  transform: scale(0.94) !important;
  pointer-events: none;
}
.gallery-item.hidden-item {
  display: none !important;
}

/* Reveal-on-scroll (lightweight, no external lib dependency required) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-zoom { opacity: 0; transform: scale(0.92); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-zoom.in { opacity: 1; transform: scale(1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.in { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-zoom, .reveal-left, .reveal-right {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .scroll-indicator::before { animation: none; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Utility: image hover zoom container */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.6s ease; }
.img-zoom:hover img { transform: scale(1.08); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy);
  padding: 10px 18px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }