/* ==========================================================
   AuditorA Home Inspection
   Brand: Blue + White dominant, Orange accent
   ========================================================== */

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

:root {
  --blue:        #1B4F9C;
  --blue-dark:   #143A73;
  --blue-deep:   #0E2A54;
  --blue-light:  #E8F0FA;
  --blue-tint:   #F2F7FD;

  --orange:      #F26522;
  --orange-dark: #D9531A;
  --orange-link: #B8420C;   /* darker orange for inline text links, 5.49:1 on white */
  --orange-light:#FFF1E9;

  --ink:         #14181F;
  --white:       #FFFFFF;
  --off-white:   #F7F9FC;
  --grey-100:    #EDF1F7;
  --grey-200:    #DCE3ED;

  --text:        #1A2332;
  --text-mid:    #46536A;
  --muted:       #6D7B90;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 12px rgba(27,79,156,0.07);
  --shadow-md:   0 8px 30px rgba(27,79,156,0.10);
  --shadow-lg:   0 20px 60px rgba(27,79,156,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-link); }
a:visited { color: var(--orange-link); }

/* ==========================================================
   WORDMARK
   Both A's orange. Other letters near-black on light,
   white on dark. Colours are locked with high specificity so
   the wordmark can never inherit a link or visited-link colour.
   ========================================================== */
.nav-logo,
.nav-logo:link,
.nav-logo:visited,
.nav-logo:hover,
.nav-logo:active,
a .wordmark,
a:visited .wordmark { color: var(--ink); text-decoration: none; }

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}

.wordmark .wm-name,
a .wordmark .wm-name,
a:visited .wordmark .wm-name {
  font-size: 27px;
  letter-spacing: -0.7px;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 700;
}

.wordmark .wm-a,
a .wordmark .wm-a,
a:visited .wordmark .wm-a { color: var(--orange-link); }
a:visited { color: var(--orange-link); }

.wordmark .wm-tld,
a .wordmark .wm-tld,
a:visited .wordmark .wm-tld {
  color: var(--orange);
  font-size: 19px;
  font-weight: 700;
}

.wordmark .wm-sub,
a .wordmark .wm-sub,
a:visited .wordmark .wm-sub {
  font-size: 8.5px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  border-top: 1.5px solid var(--orange);
  padding-top: 5px;
  white-space: nowrap;
}

/* Light variant, used on dark backgrounds */
.wordmark.light,
a .wordmark.light,
a:visited .wordmark.light { color: var(--white); }

.wordmark.light .wm-name,
a .wordmark.light .wm-name,
a:visited .wordmark.light .wm-name { color: var(--white); }

.wordmark.light .wm-sub,
a .wordmark.light .wm-sub,
a:visited .wordmark.light .wm-sub { color: rgba(255,255,255,0.88); }

.wordmark.light .wm-a,
.wordmark.light .wm-tld,
a .wordmark.light .wm-a,
a .wordmark.light .wm-tld { color: var(--orange); }

.wordmark-lg .wm-name { font-size: 40px; }
.wordmark-lg .wm-tld { font-size: 29px; }
.wordmark-lg .wm-sub { font-size: 11px; letter-spacing: 5px; padding-top: 6px; }

/* ==========================================================
   NAVIGATION
   ========================================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(27,79,156,0.10);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  transition: box-shadow 0.3s, height 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(27,79,156,0.09); height: 70px; }
.nav-logo { text-decoration: none; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links > li > a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.nav-links > li > a:hover { color: var(--blue); }
.nav-links > li > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links > li > a.active { color: var(--blue); font-weight: 600; }
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links > li > a.btn-nav::after { display: none; }

/* Buttons keep their own colour regardless of surrounding link rules */
.nav-links > li > a.btn-primary,
.mobile-menu a.btn-primary,
a.btn-primary { color: var(--white); }
.nav-links > li > a.btn-blue,
.mobile-menu a.btn-blue,
a.btn-blue { color: var(--white); }
.nav-links > li > a.btn-glass,
.mobile-menu a.btn-glass,
a.btn-glass { color: var(--white); }
.nav-links > li > a.btn-ghost,
.mobile-menu a.btn-ghost,
a.btn-ghost { color: var(--blue); }
.nav-links > li > a.btn:hover { color: inherit; }
.nav-links > li > a.btn-primary:hover,
.nav-links > li > a.btn-blue:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 501;
}
.hamburger span {
  display: block; width: 25px; height: 2.5px;
  background: var(--blue-deep); border-radius: 3px;
  transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 78px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 499;
  padding: 22px 5% 30px;
  flex-direction: column;
  border-bottom: 1px solid rgba(27,79,156,0.10);
  box-shadow: 0 12px 40px rgba(27,79,156,0.10);
  display: none;
  max-height: calc(100vh - 78px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity:0; transform: translateY(-12px);} to {opacity:1;transform:translateY(0);} }
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid var(--grey-100);
}
.mobile-menu a.btn { margin-top: 16px; border-bottom: none; }

/* ==========================================================
   GLASS GLOW BUTTONS
   ========================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.45) 45%,
    rgba(255,255,255,0.65) 50%, rgba(255,255,255,0.45) 55%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(130%); }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.25) 45%, transparent 70%);
  transform: scale(0);
  animation: rippleBurst 0.65s cubic-bezier(0.2,0.8,0.3,1) forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes rippleBurst { to { transform: scale(3.2); opacity: 0; } }
.btn > * { position: relative; z-index: 3; }
.btn:active { transform: scale(0.965); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #FF7A3D 100%);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(242,101,34,0.32),
              0 0 0 1px rgba(255,255,255,0.16) inset,
              0 1px 0 rgba(255,255,255,0.28) inset;
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(242,101,34,0.48), 0 0 26px rgba(242,101,34,0.30),
              0 0 0 1px rgba(255,255,255,0.22) inset, 0 1px 0 rgba(255,255,255,0.35) inset;
  transform: translateY(-2px);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, #2E6BC4 100%);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(27,79,156,0.30),
              0 0 0 1px rgba(255,255,255,0.14) inset,
              0 1px 0 rgba(255,255,255,0.26) inset;
}
.btn-blue:hover {
  box-shadow: 0 8px 32px rgba(27,79,156,0.45), 0 0 26px rgba(27,79,156,0.28),
              0 0 0 1px rgba(255,255,255,0.2) inset, 0 1px 0 rgba(255,255,255,0.32) inset;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow: 0 4px 22px rgba(0,0,0,0.16), 0 1px 0 rgba(255,255,255,0.24) inset;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 8px 34px rgba(0,0,0,0.22), 0 0 26px rgba(255,255,255,0.22),
              0 1px 0 rgba(255,255,255,0.34) inset;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(27,79,156,0.05);
  backdrop-filter: blur(10px);
  color: var(--blue);
  border: 1.5px solid rgba(27,79,156,0.25);
  box-shadow: 0 2px 12px rgba(27,79,156,0.07);
}
.btn-ghost:hover {
  background: rgba(27,79,156,0.10);
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(27,79,156,0.20), 0 0 20px rgba(27,79,156,0.13);
  transform: translateY(-2px);
}

.btn-nav { padding: 11px 22px; font-size: 14px; border-radius: 10px; }
.btn-sm { padding: 12px 24px; font-size: 14px; }
.btn-lg { padding: 18px 38px; font-size: 16.5px; }
.btn-full { width: 100%; }

.contact-btn-row { display: flex; gap: 13px; flex-wrap: wrap; }

/* ==========================================================
   LAYOUT AND TYPE
   ========================================================== */
section { padding: 90px 5%; }
.container { max-width: 1180px; margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 14px;
}

h1, h2, h3, h4 { letter-spacing: -0.7px; line-height: 1.16; }
.h-section { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; color: var(--blue-deep); margin-bottom: 16px; }
.h-card { font-size: 20px; font-weight: 700; color: var(--blue-deep); margin-bottom: 10px; letter-spacing: -0.4px; }
.lead { font-size: 17px; color: var(--text-mid); line-height: 1.74; }
.center { text-align: center; }
.center .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 54px; }

/* ==========================================================
   PAGE HERO
   ========================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  padding: 148px 5% 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(242,101,34,0.20) 0%, transparent 65%);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 740px; }
.page-hero h1 { font-size: clamp(31px, 4.4vw, 50px); font-weight: 700; color: var(--white); margin-bottom: 18px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.80); line-height: 1.72; max-width: 620px; }
.crumb { font-size: 13.5px; color: rgba(255,255,255,0.52); margin-bottom: 18px; }
.crumb a { color: var(--orange); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ==========================================================
   TRUST STRIP
   ========================================================== */
.trust-strip {
  background: var(--blue-deep);
  padding: 17px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 48px);
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 500;
  color: #FFFFFF;
  white-space: nowrap;
}
.ti-check {
  width: 20px; height: 20px; flex-shrink: 0;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; font-weight: 700;
}

/* ==========================================================
   CREDENTIALS
   ========================================================== */
.cred-list { display: flex; flex-direction: column; gap: 15px; }
.cred-row { display: flex; align-items: flex-start; gap: 14px; }
.cred-check {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px;
  background: rgba(242,101,34,0.14);
  border: 1px solid rgba(242,101,34,0.28);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--orange); font-weight: 700;
}
.cred-row strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--blue-deep); margin-bottom: 3px; }
.cred-row > div > span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cred-row span.cred-check { color: var(--orange); font-size: 11px; }
.on-dark .cred-row strong { color: var(--white); }
.on-dark .cred-row span { color: rgba(255,255,255,0.60); }
.on-dark .cred-check { background: rgba(242,101,34,0.20); }

.cred-logos { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.cred-logo {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 13px 18px;
  display: flex; align-items: center; justify-content: center;
  min-height: 62px;
  box-shadow: var(--shadow-sm);
}
.cred-logo img { max-height: 34px; width: auto; object-fit: contain; }

/* ==========================================================
   CARDS AND NOTES
   ========================================================== */
.note-box {
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.72;
}
.note-box.orange { background: var(--orange-light); border-left-color: var(--orange); }
.note-box strong { color: var(--blue-deep); }

.info-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: transform 0.3s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.3s, border-color 0.3s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(242,101,34,0.26); }

/* checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.checklist li { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; color: var(--text-mid); line-height: 1.66; }
.checklist li::before {
  content: "✓";
  flex-shrink: 0; margin-top: 2px;
  width: 21px; height: 21px;
  background: var(--orange); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}

/* photo figure */
.photo-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.photo-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-figure figcaption {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  padding: 14px 20px;
  line-height: 1.55;
}

/* Links on dark backgrounds keep the bright brand orange */
/* Text links on dark panels. Buttons are excluded so they keep their own colour. */
.page-hero a:not(.btn), .cta a:not(.btn), .commit a:not(.btn),
.values a:not(.btn), .note-box a:not(.btn) { color: var(--orange-link); }
.page-hero .crumb a:not(.btn), .cta a:not(.btn), .values a:not(.btn) { color: var(--orange); }

/* Buttons always win on colour, wherever they sit */
a.btn.btn-primary, a.btn.btn-primary:visited,
a.btn.btn-blue, a.btn.btn-blue:visited,
a.btn.btn-glass, a.btn.btn-glass:visited { color: var(--white); }
a.btn.btn-ghost, a.btn.btn-ghost:visited { color: var(--blue); }

/* ==========================================================
   FOOTER
   ========================================================== */
footer { background: var(--blue-deep); padding: 68px 5% 30px; color: rgba(255,255,255,0.62); }
.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1.2fr 1.3fr; gap: 44px; margin-bottom: 46px; }
.footer-brand p { font-size: 14.5px; line-height: 1.75; margin-top: 18px; max-width: 290px; color: rgba(255,255,255,0.55); }
.footer-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.footer-contact a { color: rgba(255,255,255,0.74); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.footer-contact a:hover { color: var(--orange); }
.footer-col h4 {
  font-size: 11.5px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.60); text-decoration: none; font-size: 14px; transition: color 0.2s, padding-left 0.2s; }
.footer-col ul a:hover { color: var(--white); padding-left: 4px; }
.footer-cred { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.footer-cred strong { color: var(--white); font-size: 13.5px; font-weight: 700; }
.footer-cred span { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.5; }
.footer-badges { display: flex; flex-direction: column; gap: 11px; }
.footer-badge {
  background: var(--white);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: center;
}
.footer-badge img { max-height: 30px; width: auto; object-fit: contain; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.42);
  gap: 14px; flex-wrap: wrap;
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn::before { display: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  section { padding: 66px 5%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn { width: 100%; }
  .contact-btn-row .btn { width: 100%; }
  .page-hero { padding: 126px 5% 62px; }
  .wm-name { font-size: 23px; }
  .wm-tld { font-size: 17px; }
}
