/* ===================================================================
   Grange Hall Property Solutions — Design tokens
   Primary: logo sky blue (#6A9ADB)  |  Accent: paperwork navy (#14213D)
   Neutral base leans toward cool "blueprint paper" rather than warm cream.
   =================================================================== */

:root {
  --navy: #14213D;
  --navy-soft: #1D3059;
  --blue: #6A9ADB;
  --blue-deep: #4A79BE;
  --paper: #F3F5F7;
  --paper-alt: #EAEEF2;
  --concrete: #8D8B85;
  --charcoal: #20242B;
  --line: #D8DCE1;
  --white: #FFFFFF;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 0.5em; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--charcoal); }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white);
  padding: 0.75em 1.25em; z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-accent {
  background: var(--blue);
  color: var(--navy);
}
.btn-accent:hover { background: var(--blue-deep); color: var(--white); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.text-link:hover { color: var(--blue-deep); border-color: var(--blue-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark { display: block; }
.brand-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.88;
  transition: opacity 0.15s ease;
}
.primary-nav a:hover { opacity: 1; }
.nav-cta { opacity: 1 !important; padding: 0.6em 1.3em; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  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(20,33,61,0.55) 0%, rgba(20,33,61,0.55) 40%, rgba(20,33,61,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: 120px;
  padding-bottom: 88px;
  max-width: 760px;
  opacity: 0;
  transform: translateY(16px);
}
.hero-content.is-visible {
  animation: hero-in 0.7s ease forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(2.25rem, 4.4vw + 1rem, 3.6rem);
  font-weight: 800;
  margin-bottom: 0.45em;
}
.hero-sub {
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.2rem);
  color: rgba(255,255,255,0.86);
  max-width: 56ch;
  margin-bottom: 1.6em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Services ---------- */
.services { padding: 110px 0; }
.services h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.9em;
}

.service-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: none; }
.service-row.reverse .service-media { order: 2; }
.service-row.reverse .service-text { order: 1; }

.service-media img {
  width: 100%;
  border-radius: 2px;
}
.service-media.gallery-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.placeholder-media {
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  border-radius: 2px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--concrete);
}
.placeholder-media .service-icon.large {
  width: 64px;
  height: 64px;
  color: var(--concrete);
}
.placeholder-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--concrete);
}

.social-media-shot {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 24px;
}
.social-media-shot img {
  width: auto;
  max-width: 100%;
  max-height: 460px;
}

.service-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-text h3 {
  font-size: 1.5rem;
  color: var(--navy);
}
.service-text p { color: var(--charcoal); max-width: 46ch; }

/* ---------- About ---------- */
.about { padding: 100px 0; background: var(--paper-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-media img { border-radius: 2px; }
.about-text h2 { color: var(--navy); font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); }
.about-text p { max-width: 54ch; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--navy); color: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact h2 { color: var(--white); font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); }
.contact-intro p { color: rgba(255,255,255,0.8); max-width: 42ch; }

.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-details .label {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
}
.contact-details a { color: var(--white); text-decoration: none; font-size: 1.05rem; }
.contact-details a:hover { color: var(--blue); }
.contact-details span:not(.label) { font-size: 1.05rem; }

.contact-form {
  background: var(--white);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 12px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65em 0.8em;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--charcoal);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.contact-form button { margin-top: 20px; align-self: flex-start; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 36px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner .brand-word { font-size: 1rem; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--white); }
.copyright { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-row,
  .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-media,
  .service-row.reverse .service-text { order: initial; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { min-height: 92vh; }
  .hero-content { padding-top: 90px; padding-bottom: 56px; }

  .services, .about, .contact { padding: 64px 0; }
  .service-row { padding: 40px 0; gap: 28px; }
  .gallery-media { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content { opacity: 1; transform: none; animation: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
