/* ============================================================
   ACCESS | PARTNERS IN PROPERTY — Main Stylesheet
   Brand: #005288 (blue) · #6CB33F (green) · Montserrat
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #005288;
  --blue-dark:  #003d66;
  --green:      #6CB33F;
  --green-dark: #559030;
  --white:      #ffffff;
  --off-white:  #f5f7fa;
  --grey-light: #e8ecf0;
  --grey:       #6b7280;
  --grey-dark:  #374151;
  --black:      #111827;

  --font:       'Montserrat', sans-serif;
  --radius:     4px;
  --shadow:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --max-w:      1240px;
  --section-py: clamp(3rem, 6vw, 5rem);
}

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

/* ── Skip Link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ── Layout Utilities ──────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.section    { padding-block: var(--section-py); }
.section--grey { background: var(--off-white); }
.section--blue { background: var(--blue); color: var(--white); }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--black); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { margin-block-end: 1rem; }
p:last-child { margin-block-end: 0; }

.section-title { text-align: center; margin-block-end: 0.5rem; }
.section-sub   { text-align: center; color: var(--grey); max-width: 640px; margin-inline: auto; margin-block-end: 2.5rem; }

/* ── Inline button groups ──────────────────────────────── */
.btn { display: inline-flex; flex-shrink: 0; white-space: nowrap; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn--primary   { background: var(--blue);  color: var(--white); border-color: var(--blue); }
.btn--primary:hover  { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--green     { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--green:hover    { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn--outline   { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover  { background: var(--blue); color: var(--white); }
.btn--white     { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--white:hover    { background: var(--off-white); }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo img { height: 48px; width: auto; object-fit: contain; }
.site-logo:hover { opacity: 0.85; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--grey-dark);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); background: var(--off-white); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
}
.dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  color: var(--grey-dark);
  border-radius: 0;
}
.dropdown a:hover { background: var(--off-white); color: var(--blue); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--blue);
}
.header-cta { margin-left: 1rem; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero-pattern.svg') no-repeat right center / auto 100%;
  opacity: 0.06;
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 680px; }
.hero__eyebrow {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-block-end: 1.25rem;
}
.hero h1 { color: var(--white); margin-block-end: 1.25rem; }
.hero__sub { font-size: 1.15rem; opacity: 0.9; margin-block-end: 2rem; max-width: 560px; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: nowrap; align-items: stretch; }
.hero__actions .btn { flex: 1; justify-content: center; text-align: center; }

/* ── Logo Wall ─────────────────────────────────────────── */
.logo-wall { background: var(--off-white); padding-block: 2.5rem; }
.logo-wall__label { text-align: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin-block-end: 1.5rem; }
.logo-wall__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}
.logo-wall__grid img { height: 32px; width: auto; filter: grayscale(1); opacity: 0.6; transition: all 0.2s; }
.logo-wall__grid img:hover { filter: grayscale(0); opacity: 1; }

/* ── Cards Grid ────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-block-end: 0.5rem; }
.card__title { font-size: 1.1rem; font-weight: 700; margin-block-end: 0.75rem; color: var(--black); }
.card__excerpt { color: var(--grey); font-size: 0.9rem; flex: 1; margin-block-end: 1.25rem; }
.card__link { font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.card__link:hover { color: var(--blue-dark); }

/* ── Service Grid ──────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.service-tile {
  background: var(--white);
  border: 2px solid var(--grey-light);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.service-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.service-tile__icon { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.service-tile svg { width: 48px; height: 48px; flex-shrink: 0; }
.service-tile__name { font-weight: 700; font-size: 1rem; color: var(--black); }
.service-tile__desc { font-size: 0.875rem; color: var(--grey); flex: 1; }
.service-tile__arrow { font-size: 0.875rem; font-weight: 700; color: var(--blue); }

/* ── Stats Bar ─────────────────────────────────────────── */
.stats-bar { background: var(--blue); color: var(--white); padding-block: 2.5rem; }
.stats-bar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat__number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--green); line-height: 1; }
.stat__label  { font-size: 0.875rem; opacity: 0.85; margin-top: 0.25rem; }

/* ── Certifications ────────────────────────────────────── */
.certs { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; }
.certs img { height: 56px; width: auto; }

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 { color: var(--white); margin-block-end: 0.75rem; }
.page-hero p  { opacity: 0.9; max-width: 640px; font-size: 1.1rem; }
.breadcrumb { font-size: 0.8rem; opacity: 0.75; margin-block-end: 1rem; }
.breadcrumb a { color: var(--white); }
.breadcrumb span { margin-inline: 0.4rem; }

/* ── Content Layout ────────────────────────────────────── */
.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.content-body h2 { margin-block: 2rem 1rem; }
.content-body h3 { margin-block: 1.5rem 0.75rem; }
.content-body ul, .content-body ol { padding-left: 1.5rem; margin-block-end: 1rem; }
@media (max-width: 480px) { .content-body ul, .content-body ol { padding-left: 1.25rem; } }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { margin-block-end: 0.4rem; }

/* Sidebar */
.sidebar { position: sticky; top: 88px; }
.sidebar-cta {
  background: var(--blue);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin-block-end: 1.5rem;
}
.sidebar-cta h3 { color: var(--white); margin-block-end: 0.75rem; }
.sidebar-cta p  { opacity: 0.9; font-size: 0.9rem; margin-block-end: 1.25rem; }

/* ── CTA Band ───────────────────────────────────────────── */
.cta-band { background: var(--green); color: var(--white); padding-block: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { color: var(--white); margin-block-end: 0.75rem; }
.cta-band p  { opacity: 0.9; max-width: 560px; margin-inline: auto; margin-block-end: 2rem; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,0.8); padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-block-end: 2.5rem; }
.footer-brand img { height: 36px; margin-block-end: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; margin-block-end: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.875rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-block-end: 1.25rem; }
label { display: block; font-weight: 600; font-size: 0.875rem; margin-block-end: 0.4rem; color: var(--grey-dark); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }

/* ── Accordion / FAQ ───────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--grey-light); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  padding-block: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: var(--blue); }
.faq-icon { flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding-block-end: 1.25rem; color: var(--grey-dark); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .contact-wrap { grid-template-columns: 1fr !important; }
  .contact-wrap aside { order: -1; }
  .name-grid { grid-template-columns: 1fr !important; }
  .sectors-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--white);
    padding: 0;
    z-index: 99;
    overflow-y: auto;
    gap: 0;
  }
  /* All top-level links — consistent left-aligned */
  .site-nav.open > a,
  .site-nav.open .nav-item,
  .site-nav.open .nav-item > a {
    display: block;
    width: 100%;
  }
  .site-nav.open > a,
  .site-nav.open .nav-item > a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--grey-light);
    border-radius: 0;
    color: var(--black);
    background: none;
    text-align: left;
  }
  .site-nav.open > a:hover,
  .site-nav.open .nav-item > a:hover { background: var(--off-white); }
  /* Dropdowns — hidden by default, shown when parent has .open */
  .site-nav.open .nav-item .dropdown {
    position: static !important;
    box-shadow: none !important;
    display: none !important;
    background: var(--off-white);
    padding: 0;
    border-radius: 0;
    min-width: unset;
  }
  .site-nav.open .nav-item.open .dropdown {
    display: block !important;
  }
  .site-nav.open .dropdown a {
    padding: 0.85rem 2.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--grey-light);
    color: var(--blue);
    border-radius: 0;
    display: block;
  }
  .site-nav.open .dropdown a:last-child { border-bottom: none; }
  /* Get a Quote button */
  .site-nav.open .header-cta {
    display: flex !important;
    margin: 1.25rem 1.5rem;
    width: calc(100% - 3rem);
    justify-content: center;
    border-radius: 4px;
    background: var(--blue) !important;
    color: white !important;
    border-color: var(--blue) !important;
  }
  .hero__actions { flex-direction: row; flex-wrap: nowrap; }
  .hero__actions .btn { font-size: 0.9rem; padding: 0.75rem 0.75rem; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-bar__grid { grid-template-columns: 1fr; }
}
