/* ——— Reset ——— */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

body {
  font: 400 1rem/1.7 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ——— Color tokens ——— */
:root {
  --accent: #0b3d91;
  --bg: #fff;
  --text: #161616;
  --border: #e5e5e5;
  --surface: #f9f9f9;
  --shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

@media(prefers-color-scheme:dark) {
  :root {
    --bg: #101216;
    --text: #ececec;
    --border: #2b2f36;
    --surface: #1a1d22;
    --shadow: 0 2px 6px rgba(0, 0, 0, .6);
  }

  .social img {
    filter: invert(1) brightness(1.6);
  }
  
  .logos img {
    filter: brightness(0) invert(1);
  }
}

body {
  background: var(--bg);
  color: var(--text);
}

/* Use default cursor everywhere except links */
* {
  cursor: default;
}

/* Use pointer cursor for links */
a {
  cursor: pointer !important;
}

/* Ensure consistent cursor on logo elements */
.brand-wrap,
.brand-wrap * {
  cursor: pointer !important;
}

/* ——— Skip Navigation Link ——— */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
}

.skip-nav:focus {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
  overflow: visible;
}

/* ——— Focus Styles ——— */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Use focus-visible for keyboard navigation only */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1 {
  font: 400 2.5rem/1.2 "DM Serif Display", serif;
}

h2,
h3 {
  font: 600 1.4rem/1.2 "Space Grotesk", sans-serif;
}

.brand {
  font: 700 1.2rem/1 "Space Grotesk", sans-serif;
  letter-spacing: -.25px;
  white-space: nowrap;
  color: var(--text);
  transition: color 0.2s;
}

nav a {
  font: 500 .85rem/1 "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
  text-decoration: none;
}

/* ——— Layout helpers ——— */
:root {
  --max-w: 1180px;
  --section: 5rem;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

section {
  padding-block: var(--section);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: 2.5rem;
}

/* ——— Navbar ——— */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}

.brand-wrap img {
  height: 34px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

nav a:hover {
  color: var(--accent);
}

/* Ensure brand text changes color on brand-wrap hover */
.brand-wrap:hover .brand {
  color: var(--accent);
}

/* ——— Hero ——— */
.hero {
  padding-block: 6rem 7rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
}

.hero p {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  max-width: 680px;
  margin-inline: auto;
}

/* keep sub-line tidy */
.hero p br {
  display: block;
}

.hero p .nowrap {
  white-space: nowrap;
}

/* ——— Services ——— */
#services h2 {
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: .9rem;
}

/* ——— Clients ——— */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.logos img {
  height: 60px;
  width: auto;
  max-width: 250px;
  opacity: .85;
  transition: opacity .25s;
}

.logos img:hover {
  opacity: 1;
}

/* ——— Contact ——— */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: 1rem;
}

.contact-block a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-block a:hover {
  text-decoration: underline;
}

.social {
  color: var(--accent);
}

.social img {
  height: 18px;
  width: auto;
  vertical-align: middle;
  transition: opacity .2s;
}

.social:hover img {
  opacity: .8;
}

/* ——— Footer ——— */
footer {
  padding: 2rem 1rem;
  font-size: .85rem;
  text-align: center;
  color: var(--text);
  border-top: 1px solid var(--border);
}

footer a {
  color: inherit;
}

/* ——— 404 Error Page ——— */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-page p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.error-page a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.error-page a:hover {
  text-decoration: underline;
}

/* ——— Privacy Policy Page ——— */
.privacy-content {
  padding-block: 4rem 6rem;
  max-width: 720px;
  margin-inline: auto;
}

.privacy-content .container {
  max-width: 100%;
}

.privacy-content header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.privacy-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.last-updated {
  color: var(--text);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Unified document approach */
.privacy-document {
  font-size: 1.05rem;
  line-height: 1.75;
}

.privacy-document h2 {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.privacy-document h2:first-child {
  margin-top: 0;
}

.privacy-document h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.privacy-document p {
  margin-bottom: 1.25rem;
  color: var(--text);
  opacity: 0.9;
}

.privacy-document p.intro {
  font-size: 1.15rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.privacy-document p.note {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

.privacy-document ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-document li {
  margin-bottom: 0.5rem;
  color: var(--text);
  opacity: 0.9;
}

/* Blockquote for emphasis */
.privacy-promise {
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
}

.privacy-promise strong {
  color: var(--accent);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3.5rem 0;
  opacity: 0.5;
}

/* Simplified contact section */
.contact-simple {
  margin-top: 1.5rem;
}

.email-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.email-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 61, 145, 0.25);
  background: #0a356d;
}

.email-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
}

.privacy-section strong {
  font-weight: 600;
  color: var(--text);
  opacity: 1;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .privacy-promise {
    background: var(--surface);
    border-left-color: var(--accent);
  }
  
  .email-button:hover {
    background: #1a4a8f;
    box-shadow: 0 4px 12px rgba(26, 74, 143, 0.4);
  }
}

/* ——— Medium (≤600px) ——— */
@media (max-width:600px) {
  .nav-inner {
    padding: 1rem;
  }
  
  nav ul {
    gap: 0.6rem;
  }
  
  nav ul a {
    font-size: .65rem;
  }

  .brand-wrap img {
    height: 28px;
  }

  .brand {
    font-size: 1rem;
  }

  :root {
    --section: 3.75rem;
  }
  
  /* Privacy page mobile adjustments */
  .privacy-content {
    padding-block: 3rem 4rem;
  }
  
  .privacy-content header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
  }
  
  .privacy-document h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
  }
  
  .privacy-document h3 {
    font-size: 1.15rem;
    margin-top: 2rem;
  }
  
  .privacy-promise {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
  }
  
  .section-divider {
    margin: 2.5rem 0;
  }
}

/* ——— Very small screens (≤380px) ——— */
@media (max-width:380px) {
  .nav-inner {
    padding: 0.75rem 0.5rem;
  }
  
  nav ul {
    gap: 0.5rem;
  }
  
  nav ul a {
    font-size: .7rem;
    letter-spacing: 0.3px;
  }
  
  .brand-wrap {
    gap: 0.4rem;
  }

  .brand-wrap img {
    height: 26px;
  }

  .brand {
    font-size: 0.95rem;
    letter-spacing: -0.3px;
  }
}