/* =========================================================
   Vig Constructions — brand tokens (locked to logo colours)
   ========================================================= */
:root {
  --color-primary: #1074BC;      /* main logo blue */
  --color-primary-dark: #0B5A94;
  --color-navy: #083C68;         /* logo banner navy */
  --color-navy-deep: #06263F;
  --color-accent: #09B3FE;       /* bright shirt/flanno blue */
  --color-bg: #F5F8FB;
  --color-surface: #FFFFFF;
  --color-text: #10202E;
  --color-muted: #4C6478;
  --color-border: #DCE6EF;
  --color-on-primary: #FFFFFF;

  --font-heading: 'Poppins', 'Arial', sans-serif;
  --font-body: 'Open Sans', 'Arial', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(8, 60, 104, 0.08);
  --shadow-md: 0 10px 30px rgba(8, 60, 104, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-navy-deep);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(16, 116, 188, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  min-height: 44px;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-navy-deep);
}
.btn-primary:hover { background: #3fc4ff; color: var(--color-navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }

.btn-navy {
  background: var(--color-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-navy-deep);
  white-space: nowrap;
}
.logo .mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--color-accent), var(--color-primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}
.logo .sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  color: var(--color-navy-deep);
  font-weight: 600;
  font-size: 0.96rem;
}
nav.main-nav a:hover { color: var(--color-primary); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy-deep);
}
.header-phone svg { width: 20px; height: 20px; color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle svg { width: 28px; height: 28px; color: var(--color-navy-deep); }

@media (max-width: 900px) {
  nav.main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 220ms ease;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a {
    width: 100%;
    padding: 14px 8px;
    border-bottom: 1px solid var(--color-border);
  }
  .header-phone span { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,38,63,0.78) 0%, rgba(6,38,63,0.72) 40%, rgba(6,38,63,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 140px 24px 100px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 179, 254, 0.18);
  border: 1px solid rgba(9,179,254,0.5);
  color: #B7E9FF;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .slogan {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #E4F3FF;
  font-style: italic;
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-trust .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #EAF6FF;
}
.hero-trust svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; }

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-primary), var(--color-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; color: #fff; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

/* =========================================================
   Before / After
   ========================================================= */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.ba-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ba-images figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.ba-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-images figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-navy-deep);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.ba-images figure.after figcaption { background: var(--color-accent); color: var(--color-navy-deep); }
.ba-caption { padding: 18px 20px; }
.ba-caption h3 { margin-bottom: 4px; font-size: 1.05rem; }
.ba-caption p { margin: 0; font-size: 0.9rem; }

/* =========================================================
   Project gallery
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 10px;
  background: linear-gradient(0deg, rgba(6,38,63,0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   About / Why choose us
   ========================================================= */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; }
}
.quote-block {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 32px;
  margin-bottom: 20px;
  position: relative;
}
.quote-block p {
  color: #EAF6FF;
  font-size: 1.08rem;
  font-style: italic;
  margin: 0;
}
.quote-block .quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 0.5;
  display: block;
  margin-bottom: 14px;
}
.about-signoff {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.about-signoff .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-accent), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}
.about-signoff strong { display: block; color: var(--color-navy-deep); }
.about-signoff span { font-size: 0.88rem; color: var(--color-muted); }

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.value-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.value-list .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(9, 179, 254, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-list svg { width: 22px; height: 22px; color: var(--color-primary); }
.value-list h3 { margin-bottom: 4px; font-size: 1.02rem; }
.value-list p { margin: 0; font-size: 0.92rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-primary) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #DCEFFC; max-width: 560px; margin: 0 auto 32px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* =========================================================
   Contact
   ========================================================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-method:last-child { border-bottom: none; }
.contact-method .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(16, 116, 188, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method svg { width: 22px; height: 22px; color: var(--color-primary); }
.contact-method strong { display: block; color: var(--color-navy-deep); font-family: var(--font-heading); }
.contact-method a, .contact-method span.value { color: var(--color-muted); }

.form-card {
  background: var(--color-navy-deep);
  border-radius: var(--radius);
  padding: 34px;
  color: #fff;
}
.form-card h3 { color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #CFE6F8;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 44px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  background: rgba(255,255,255,0.12);
}
.field select option { color: #10202E; }
.form-note { font-size: 0.82rem; color: #B8D5EA; margin-top: 10px; }
.form-status { font-size: 0.9rem; margin-top: 10px; min-height: 1.2em; }
.form-status.success { color: #9CE7B8; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-navy-deep);
  color: #B8D2E4;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo .mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(145deg, var(--color-accent), var(--color-primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #B8D2E4; }
.site-footer a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
}
.service-area-note {
  font-size: 0.78rem;
  color: #7E9DB4;
  margin-top: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-navy-deep);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
