/* ============================================================
   ENVELOPE ROOFING — main.css
   Global design tokens, reset, base styles
   Brand: BeWashed/Envelope shared palette
   Reference: Naylor Love design language
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colours */
  --accent:        #0096FF;
  --navy:          #071E39;
  --navy-mid:      #0d2d52;
  --navy-light:    #e8f2ff;
  --white:         #FFFFFF;
  --off-white:     #F3F3F3;
  --grey-200:      #e2e6ea;
  --grey-400:      #9aa3ad;
  --grey-600:      #5a6472;
  --near-black:    #1F1F1F;

  /* Typography */
  --font-head: 'Antarctican Headline', 'Barlow Condensed', sans-serif;
  --font-body: 'Neue Montreal', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 68px;

  /* Transitions */
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Visible focus states */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-navy {
  background: var(--navy);
}

/* ============================================================
   TYPOGRAPHY — BASE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* Lead paragraph — first <p> directly after a heading reads as part of the heading block */
h1 + p,
h2 + p {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.6;
  color: inherit;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

/* On dark (navy) backgrounds, inherit white — on light backgrounds, use near-black */
.section-alt h1 + p,
.section-alt h2 + p {
  color: var(--near-black);
}

/* Don't apply to modal headings */
.modal h2 + p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--grey-600);
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--grey-600);
}

strong {
  font-weight: 600;
  color: var(--near-black);
}

/* ============================================================
   TYPOGRAPHY — LABELS & EYEBROWS
   ============================================================ */
.label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.label-dim {
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   SECTION HEADING WITH RULE
   Naylor Love pattern: heading + horizontal line to right edge
   ============================================================ */
.heading-rule {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.heading-rule__line {
  flex: 1;
  height: 1px;
  background: var(--grey-200);
  margin-bottom: 0.6rem;
}

.heading-rule h2 {
  margin-bottom: 0;
  white-space: nowrap;
}

/* ============================================================
   PAGE HERO — DARK
   Used on inner pages (not homepage)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 5rem) 0 4rem;
  text-align: left;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
  max-width: 720px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 560px;
  line-height: 1.65;
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  line-height: 1;
}

.logo__bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.logo__text--dark {
  color: var(--navy);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 1.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #007fe0;
  border-color: #007fe0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 150, 255, 0.35);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
}

.btn--white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--full {
  width: 100%;
}

/* ============================================================
   STATS STRIP
   Naylor Love pattern: horizontal credential stats below hero
   ============================================================ */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 2.5rem 0;
}

.stats-strip__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 150px;
  max-width: 220px;
  padding: 0 2rem;
  border-right: 1px solid var(--grey-200);
  text-align: center;
}

.stat:last-child {
  border-right: none;
}

.stat__number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stat__number span {
  color: var(--accent);
}

.stat__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-600);
}

.stat__sub {
  font-size: 0.82rem;
  color: var(--grey-400);
  margin-top: 0.2rem;
}

/* ============================================================
   CREDENTIALS BAR
   Dark strip with accent dots — Naylor Love pattern
   ============================================================ */
.cred-bar {
  background: var(--navy);
  padding: 1.25rem 0;
}

.cred-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}

.cred-item__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   PILLARS — Why Envelope
   Naylor Love: accent top border, uppercase heading
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem 2.5rem;
}

.pillar {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
}

.pillar h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.pillar p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================================
   SERVICE CARDS
   Flush grid with 1px grey gaps
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem 2rem;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  background: var(--navy-light);
}

.service-card:hover .service-card__arrow {
  color: var(--accent);
  letter-spacing: 0.15em;
}

.service-card__num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--grey-400);
  margin-bottom: 1.25rem;
  display: block;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-card__arrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  transition: all var(--transition);
  display: inline-block;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SERVICE PAGE LAYOUT
   Two-column: main content + sticky sidebar
   ============================================================ */
.service-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 5rem) 0 5rem;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.service-hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: var(--navy-mid);
  opacity: 0.5;
}

.service-hero__bg {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
}

.service-hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.service-hero__content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.service-hero__content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.service-hero__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: start;
  padding: 5rem 0;
}

.service-main h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
}

.service-main h2:first-child {
  margin-top: 0;
}

.service-main p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.service-main ul {
  margin: 0.5rem 0 1.5rem;
}

.service-main ul li {
  font-size: 1rem;
  color: var(--grey-600);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--off-white);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
}

.service-main ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.6rem;
}

/* Callout box */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--navy-light);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 2rem;
}

.callout p {
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout .callout__note {
  font-size: 0.78rem;
  color: var(--grey-400);
}

/* Process steps */
.process-steps {
  margin: 0.75rem 0 2rem;
}

.process-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.process-step__num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.process-step__content h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
  text-transform: none;
  letter-spacing: 0;
}

.process-step__content p {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Sidebar */
.service-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.sidebar-cta {
  background: var(--navy);
  padding: 2rem;
  margin-bottom: 2px;
}

.sidebar-cta h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sidebar-cta .btn {
  width: 100%;
  text-align: center;
  display: block;
  margin-bottom: 0.75rem;
}

.sidebar-cta .btn:last-child {
  margin-bottom: 0;
}

.sidebar-cta a.btn {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-phone {
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  padding: 1.5rem 2rem;
  text-align: center;
}

.sidebar-phone p {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 0.4rem;
}

.section-intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--grey-600);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.sidebar-phone a {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: block;
}

/* ============================================================
   RELATED SERVICES
   ============================================================ */
.related-services {
  padding: 4rem 0;
  background: var(--navy);
}

.related-services h2 {
  color: var(--white);
  margin-bottom: 2rem;
}

.related-services .btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   CASE STUDY CARDS
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
  background: var(--grey-200);
}

.case-card {
  background: var(--white);
  transition: background var(--transition);
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.case-card:hover {
  background: var(--off-white);
}

.case-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 175px;
  background: var(--off-white);
}

.case-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--grey-400);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 1px solid var(--grey-200);
  overflow: hidden;
}

.case-card__img:last-child {
  border-right: none;
}

.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__content {
  padding: 1.5rem 1.75rem 2rem;
}

.case-card__tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--navy-light);
  padding: 0.2rem 0.55rem;
  display: inline-block;
}

.case-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-card p {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
  text-decoration: none;
}

.read-more:hover {
  gap: 0.75rem;
}

/* ============================================================
   FILTER BAR — Our Work
   ============================================================ */
.filter-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-200);
  padding: 1.25rem 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
  white-space: nowrap;
}

.filter-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--grey-600);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}

.chip:hover,
.chip[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--grey-200);
  flex-shrink: 0;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--grey-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--grey-200);
}

.faq-item__question {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.02em;
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-item__question:hover {
  color: var(--accent);
}

.faq-item__icon {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
  font-style: normal;
  font-family: var(--font-body);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  font-size: 1rem;
  color: var(--grey-600);
  line-height: 1.75;
  padding-bottom: 1.5rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-section {
  margin-bottom: 3rem;
}

.form-section__heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 1.5rem;
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row--single {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.1);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #dc2626;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23071E39' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--near-black);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-note {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: 1rem;
  line-height: 1.6;
}

.form-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

/* ============================================================
   TEAM CARDS — About page
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--grey-200);
  margin-bottom: 2px;
}

.team-card {
  background: var(--white);
  padding: 3rem 2.5rem;
}

.team-card__photo {
  width: 88px;
  height: 88px;
  background: var(--off-white);
  margin-bottom: 1.5rem;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--grey-400);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.4;
}

.team-card h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.team-card__role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.team-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.cred-list {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-200);
}

.cred-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  color: var(--near-black);
}

.cred-badge__dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  padding: 5rem 0;
}

.contact-form h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 2rem;
}

.contact-info {
  background: var(--off-white);
  padding: 2.5rem;
  height: fit-content;
}

.contact-info__heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1.5rem;
  display: block;
  font-family: var(--font-body);
}

.contact-info__row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--grey-200);
}

.contact-info__row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-info__value a {
  color: var(--navy);
  text-decoration: none;
}

.contact-info__value a:hover {
  color: var(--accent);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 57, 0.65);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--grey-400);
  background: none;
  border: none;
  line-height: 1;
  padding: 0.25rem;
}

.modal__close:hover {
  color: var(--navy);
}

.modal h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.modal__intro {
  font-size: 0.875rem;
  color: var(--grey-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  background: var(--navy);
}

.thankyou-wrap h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.thankyou-wrap p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .service-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .service-hero::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .stats-strip__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--grey-200);
    padding: 1.25rem;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--grey-200);
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-section .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .cred-bar__inner {
    gap: 1rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
}
