/* ===================================================================
   Terryden Agencies (TDA) — Design System
   Palette:
     --navy-950  #08192B  (utility bar, darkest ink)
     --navy-800  #0F2A4A  (primary brand navy — headings, buttons)
     --navy-700  #17395E  (secondary navy — gradients, hovers)
     --teal-500  #1FA9BD  (accent — echoes the window in the TDA mark)
     --teal-600  #16879A  (accent hover/active)
     --mist-50   #F4F7F8  (section backgrounds)
     --ink-900   #16202B  (body copy)
     --line-200  #E1E7EB  (hairlines / borders)
     --whatsapp  #25D366  (WhatsApp brand green, contact page only)
   Type:
     Display — 'Fraunces' (a sturdy slab-serif with the gravity of the
       engraved wordmark, without imitating it outright)
     Body/UI — 'Inter'
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy-950: #08192B;
  --navy-800: #0F2A4A;
  --navy-700: #17395E;
  --teal-500: #1FA9BD;
  --teal-600: #16879A;
  --mist-50: #F4F7F8;
  --mist-100: #EAF0F2;
  --ink-900: #16202B;
  --ink-600: #4A5A68;
  --line-200: #E1E7EB;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-800);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-600); max-width: 62ch; }

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

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--teal-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); }

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

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.btn-whatsapp svg { flex-shrink: 0; }

/* ---------- Utility top bar ---------- */
.utility-bar {
  background: var(--navy-950);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.utility-bar .contact-items {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.utility-bar a:hover { color: var(--teal-500); }
.utility-bar .hours { color: rgba(255,255,255,0.6); }

/* ---------- Main nav ---------- */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
.brand img {
  height: 54px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--navy-800);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--teal-500);
  color: var(--teal-600);
}
.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  margin: 5px 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line-200);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-right .btn-primary { padding: 10px 18px; font-size: 0.88rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art svg { width: 100%; height: 100%; display: block; }

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,25,43,0.92) 0%, rgba(8,25,43,0.78) 38%, rgba(8,25,43,0.35) 75%);
}
.hero-content {
  position: relative;
  padding: 108px 0 128px;
  max-width: 640px;
}
.hero-eyebrow {
  color: var(--teal-500);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lede {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 52ch;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.page-hero {
  padding: 64px 0 56px;
}
.page-hero .container { max-width: 760px; }
.page-hero p.lede { color: rgba(255,255,255,0.82); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--mist-50); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 1.05rem; }

/* ---------- Overview / stats row ---------- */
.specialisms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-200);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 40px;
}
.specialism {
  background: var(--white);
  padding: 30px 26px;
}
.specialism .mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal-500);
  margin-bottom: 10px;
}
.specialism h3 { font-size: 1.02rem; margin-bottom: 6px; }
.specialism p { font-size: 0.92rem; margin: 0; }

@media (max-width: 860px) {
  .specialisms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .specialisms { grid-template-columns: 1fr; }
}

/* ---------- Service cards (homepage preview) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.service-card {
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  border-color: var(--teal-500);
  box-shadow: 0 10px 30px -18px rgba(15,42,74,0.35);
}
.service-card .num {
  font-family: var(--font-display);
  color: var(--line-200);
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.93rem; margin-bottom: 14px; }
.service-card .card-link { color: var(--teal-600); font-weight: 600; font-size: 0.9rem; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.why-list li { display: flex; gap: 16px; }
.why-list .bullet {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}
.why-list h3 { font-size: 1rem; margin-bottom: 4px; }
.why-list p { font-size: 0.93rem; margin: 0; }

.why-panel {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
}
.why-panel h3 { color: var(--white); }
.why-panel p { color: rgba(255,255,255,0.78); }
.why-panel .clients {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; gap: 12px;
}
.why-panel .clients li {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 12px;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.85);
}

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  padding: 64px 0;
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

/* ---------- About page ---------- */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.value-list li { border-bottom: 1px solid var(--line-200); padding-bottom: 26px; }
.value-list li:last-child { border-bottom: none; }
.value-list h3 { margin-bottom: 6px; }
.value-list p { margin: 0; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pillar-card {
  background: var(--mist-50);
  border-radius: var(--radius-md);
  padding: 32px;
}
.pillar-card h3 { margin-bottom: 10px; }
.pillar-card p { margin: 0; font-size: 0.95rem; }

@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Services page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line-200);
}
.service-block:last-child { border-bottom: none; }
.service-block .label {
  color: var(--teal-600);
  font-weight: 600;
  font-size: 0.85rem;
}
.service-block h2 { margin-top: 6px; }
.service-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.service-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--ink-900);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
}
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; gap: 18px; }
  .service-list { grid-template-columns: 1fr; }
}

/* ---------- Leadership page ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.team-photo {
  aspect-ratio: 4 / 4.3;
  overflow: hidden;
  background: var(--navy-950);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.team-photo img.fit-top { object-position: center 8%; }
.team-info { padding: 28px 30px 32px; }
.team-info .role {
  color: var(--teal-600);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.team-info h3 { font-size: 1.35rem; margin-bottom: 12px; }
.team-info p { font-size: 0.95rem; }

@media (max-width: 780px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
}
.contact-info-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-info-list li { display: flex; gap: 14px; }
.contact-info-list .ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mist-100);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-info-list strong { display: block; color: var(--navy-800); font-size: 0.92rem; }
.contact-info-list span, .contact-info-list a { font-size: 0.94rem; color: var(--ink-600); }
.contact-info-list a:hover { color: var(--teal-600); }

.contact-form {
  background: var(--mist-50);
  border-radius: var(--radius-md);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink-900);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal-500);
  outline-offset: 1px;
  border-color: var(--teal-500);
}
.form-note { font-size: 0.85rem; color: var(--ink-600); margin-top: 10px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; justify-content: center; min-width: 180px; }

.map-wrap {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-200);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions .btn { min-width: 100%; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.footer-about p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--teal-500); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}
