/* Norton Griffin Properties — Brand System */
:root {
  --navy-950: #06101c;
  --navy-900: #0a1628;
  --navy-800: #0f2240;
  --navy-700: #163056;
  --navy-600: #1e4270;
  --navy-100: #e8eef6;
  --navy-50: #f4f7fb;
  --gold-400: #e0c36a;
  --gold-500: #c9a227;
  --gold-600: #a8841a;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --silver: #c8d0dc;
  --white: #ffffff;
  --ink: #121a26;
  --muted: #5a6a7e;
  --line: rgba(15, 34, 64, 0.12);
  --line-light: rgba(255, 255, 255, 0.12);
  --radius: 2px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(6, 16, 28, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-50);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-400);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.2rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950) !important;
  font-weight: 600 !important;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.28);
}

.btn-gold:hover {
  box-shadow: 0 14px 36px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

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

.btn-navy:hover {
  background: var(--navy-700);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 5.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 16, 28, 0.92) 0%, rgba(10, 22, 40, 0.72) 48%, rgba(10, 22, 40, 0.45) 100%),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201, 162, 39, 0.12), transparent 45%),
    linear-gradient(to top, rgba(6, 16, 28, 0.55), transparent 40%);
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
}

.hero-brand-name em {
  display: block;
  font-style: normal;
  font-size: 0.55em;
  letter-spacing: 0.28em;
  color: var(--gold-400);
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero h1 span {
  color: var(--gold-400);
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero .btn-group {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

.hero-tagline {
  margin-top: 2.25rem;
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--gold-400);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.75s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Sections ——— */
.section {
  padding: 6.5rem 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 3.25rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.85rem;
}

.section-head h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 550;
  line-height: 1.15;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.section-head p,
.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.section-dark .section-head h2 {
  color: var(--white);
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.section-dark .eyebrow {
  color: var(--gold-400);
}

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

/* ——— About split ——— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.split-visual {
  position: relative;
  min-height: 480px;
}

.split-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-visual::before {
  content: "";
  position: absolute;
  inset: auto -1.25rem -1.25rem auto;
  width: 55%;
  height: 55%;
  border: 1px solid var(--gold-500);
  z-index: -1;
  opacity: 0.55;
}

.split-copy .mission {
  margin: 1.5rem 0 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold-500);
  color: var(--navy-800);
  font-size: 1.12rem;
  font-weight: 450;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Divisions ——— */
.divisions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.division {
  position: relative;
  padding: 2.25rem 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}

.division:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.06);
  transform: translateY(-4px);
}

.division-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(201, 162, 39, 0.35);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.division h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 550;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.division p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.division ul li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.division .btn {
  margin-top: 1.25rem;
}

.divisions.app-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 880px);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  justify-items: stretch;
}

.division ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 1px;
  background: var(--gold-400);
}

/* ——— Services grid (detail pages) ——— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-block {
  padding: 2rem;
  background: var(--white);
  border-bottom: 2px solid var(--gold-500);
  box-shadow: 0 12px 40px rgba(6, 16, 28, 0.06);
}

.service-block h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy-900);
  margin-bottom: 0.65rem;
}

.service-block p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.service-block ul li {
  padding: 0.4rem 0;
  padding-left: 1rem;
  position: relative;
  color: var(--ink);
  font-size: 0.95rem;
}

.service-block ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold-600);
}

/* ——— Tech highlight ——— */
.tech-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.tech-band img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.feature-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.feature-list .icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.feature-list strong {
  display: block;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ——— Contact ——— */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-info {
  padding: 3rem 2.5rem;
  background:
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.35rem;
}

.contact-item a,
.contact-item address {
  font-style: normal;
  color: var(--white);
  font-size: 1.05rem;
}

.contact-item a:hover {
  color: var(--gold-400);
}

.hours {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  padding: 3rem 2.5rem;
}

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

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--navy-50);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: rgba(30, 100, 60, 0.08);
  border-left: 3px solid #2d7a4f;
  color: #1f5a3a;
  font-size: 0.95rem;
}

.form-success.is-visible {
  display: block;
}

/* ——— Page hero ——— */
.page-hero {
  padding: 9rem 0 4rem;
  background:
    linear-gradient(135deg, var(--navy-950), var(--navy-700)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=70") center / cover;
  background-blend-mode: multiply;
  color: var(--white);
}

.page-hero .eyebrow {
  color: var(--gold-400);
}

.page-hero h1 {
  color: var(--white);
  max-width: 16ch;
}

.page-hero p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  margin-top: 0.75rem;
}

/* ——— Legal ——— */
.legal {
  max-width: 760px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--navy-900);
  margin: 2.25rem 0 0.85rem;
}

.legal h3 {
  font-size: 1.05rem;
  color: var(--navy-800);
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.legal ul {
  margin: 0.5rem 0 1rem 1.25rem;
  list-style: disc;
}

.legal a {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.updated {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ——— CTA band ——— */
.cta-band {
  padding: 5rem 0;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(6, 16, 28, 0.94), rgba(22, 48, 86, 0.9)),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: var(--white);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.footer-brand .script {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--gold-400);
  margin: 0.75rem 0 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.15rem;
}

.footer-col a,
.footer-col li {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  margin-left: 1rem;
}

.footer-bottom a:hover {
  color: var(--gold-400);
}

/* ——— Reveal ——— */
/* Visible by default; only hide for scroll animation when JS is active */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-visible),
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Mobile ——— */
@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(300px, 86vw);
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .split,
  .tech-band,
  .contact-panel,
  .divisions,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-visual {
    min-height: auto;
  }

  .split-visual img,
  .tech-band img {
    height: 320px;
  }

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

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

  .logo-text {
    display: none;
  }

  .hero {
    align-items: center;
    padding-top: 7rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .section {
    padding: 4.5rem 0;
  }

  .contact-info,
  .contact-form {
    padding: 2rem 1.35rem;
  }

  .hero-brand img {
    width: 56px;
    height: 56px;
  }
}
