/* ============================================================
   The Contra Group — shared stylesheet (all pages)
   Palette: navy #0A1E3F, white, accent orange #FF5722
   Font: Plus Jakarta Sans (single family, headings + body)
   Mobile-first; breakpoints at 640px, 900px, 1100px
   ============================================================ */

:root {
  --navy: #0A1E3F;
  --navy-2: #122a52;
  --orange: #FF5722;
  --orange-dark: #D84315;
  --ink: #26313f;
  --muted: #57677c;
  --white: #ffffff;
  --bg-soft: #f3f6fa;
  --border: #dce4ee;
  --danger: #c62828;
  --success-bg: #e8f5ec;
  --success-border: #2e7d32;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(10, 30, 63, 0.10);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 800; }

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

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

.container-narrow { max-width: 760px; }

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--white); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Demo banner ---------- */

.demo-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
}
.demo-banner a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.demo-banner a:hover { opacity: 0.85; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(10, 30, 63, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.2px;
}
.logo-mark { color: var(--orange); flex-shrink: 0; }

.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: var(--white);
  padding: 8px 10px;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--white); }

.primary-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
}
.primary-nav.is-open { display: flex; }

.primary-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 14px;
  border-radius: 10px;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.primary-nav a:hover { background: rgba(255, 255, 255, 0.12); }
.primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 3px 0 0 var(--orange);
}

.header-call { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  min-height: 52px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--bg-soft); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); color: var(--white); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; min-height: 56px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 30, 63, 0.92) 20%, rgba(10, 30, 63, 0.55) 65%, rgba(10, 30, 63, 0.35));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 1140px;
}
.hero-kicker {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  max-width: 620px;
  margin-bottom: 16px;
}
.hero-tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
}

/* ---------- Trust badges ---------- */

.trust-badges {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.badge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.badge svg { color: var(--orange); margin-bottom: 6px; }
.badge strong { color: var(--navy); font-size: 1rem; }
.badge span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.section-head-left { text-align: left; margin-left: 0; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- Service cards (home preview) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(10, 30, 63, 0.16); }
.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.service-card-body { padding: 22px; }
.service-card-body h3 { margin-bottom: 8px; }
.service-card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.card-link {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
}
.card-link::after { content: " \2192"; }

/* ---------- Service detail cards (services page) ---------- */

.service-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-detail-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.service-detail-card .btn { margin-top: 6px; }

/* ---------- Reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.stars {
  color: var(--orange);
  font-size: 1.15rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.review-card blockquote {
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.review-card figcaption {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Service area ---------- */

.area-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}
.area-text p { color: var(--muted); margin-top: 12px; }
.town-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.town-list li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 999px;
}
.area-note a { font-weight: 700; }
.area-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy); padding: 48px 0; }
.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin-top: 8px; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Page banner (interior pages) ---------- */

.page-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-banner-solid { background: var(--navy); }
.page-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 63, 0.82);
}
.page-banner-content {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 48px;
}
.page-banner-content h1 { color: var(--white); }
.page-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
  max-width: 560px;
}

/* ---------- About page ---------- */

.story-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}
.story-text p { color: var(--muted); margin-top: 14px; }
.story-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.why-item svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 3px;
}
.why-item strong { color: var(--navy); display: block; }
.why-item span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.required { color: var(--orange-dark); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  min-height: 52px;
  transition: border-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.25);
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 7px;
}

.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

/* ---------- Success panel ---------- */

.success-panel {
  background: var(--success-bg);
  border: 2px solid var(--success-border);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  margin-bottom: 28px;
}
.success-panel svg { color: var(--success-border); margin-bottom: 12px; }
.success-panel h2 { color: var(--success-border); margin-bottom: 10px; }
.success-panel p { color: var(--ink); max-width: 460px; margin: 0 auto 20px; }

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.info-card svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.info-card h2 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card a { font-weight: 700; }
.info-card p { color: var(--muted); font-size: 0.92rem; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.domain-note {
  background: #fff4ef;
  border: 1px solid #ffd4c2;
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 48px;
  padding-bottom: 36px;
}
.logo-footer { margin-bottom: 12px; }
.footer-col p { font-size: 0.92rem; }
.footer-heading {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-list a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }
.footer-strong { color: var(--white); font-weight: 700; margin-top: 10px; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.2s ease;
}
.social-links a:hover { background: rgba(255, 255, 255, 0.14); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom p { margin-bottom: 6px; }
.footer-bottom a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero-actions { flex-direction: row; max-width: none; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cta-actions { flex-direction: row; }
  .form-card { padding: 36px 32px; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .primary-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    gap: 2px;
    padding-top: 0;
    margin-left: auto;
  }
  .primary-nav a { padding: 10px 13px; min-height: 44px; font-size: 0.95rem; }
  .header-call { display: inline-flex; min-height: 48px; padding: 12px 20px; }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .area-layout { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .story-layout { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1.1fr; gap: 44px; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .section { padding: 72px 0; }
  .page-banner { min-height: 320px; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 3.2rem; }
  .hero { min-height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
