:root {
  --color-bg: #f4f9fc;
  --color-ink: #12263a;
  --color-accent: #6ec3e8;
  --color-accent-deep: #1a7bb8;
  --color-accent-soft: #e3f4fb;
  --color-muted: #5a7188;
  --color-surface: #ffffff;
  --font-display: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 68rem;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-ink);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--color-surface);
  padding: 0.5rem 1rem;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Brand stripe */
.brand-stripe {
  display: flex;
  height: 6px;
}

.brand-stripe span:first-child {
  flex: 3;
  background: var(--color-accent);
}

.brand-stripe span:last-child {
  flex: 1;
  background: var(--color-accent-deep);
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: block;
  width: min(240px, 62vw);
}

.logo img {
  width: 100%;
  height: auto;
}

.nav {
  display: none;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(18, 38, 58, 0.88) 0%, rgba(18, 38, 58, 0.55) 48%, rgba(26, 111, 168, 0.35) 100%),
    linear-gradient(to top, rgba(18, 38, 58, 0.75) 0%, transparent 42%);
}

.hero__content {
  padding: clamp(7rem, 18vh, 10rem) 0 clamp(2.5rem, 6vh, 4rem);
  max-width: 36rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn--primary {
  background: var(--color-accent);
  color: var(--color-ink);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: #7dcef0;
  color: var(--color-ink);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__head {
  max-width: 36rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section__intro {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Services */
.services {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .services {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }
}

@media (min-width: 960px) {
  .services {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.service {
  padding-top: 1rem;
  border-top: 3px solid var(--color-accent-soft);
}

.service:hover {
  border-top-color: var(--color-accent);
}

.service h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.service p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Gallery */
.gallery {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery li {
  overflow: hidden;
  background: var(--color-accent-soft);
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery li:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* About strip */
.about {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .about {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.about__panel {
  background: linear-gradient(145deg, var(--color-accent-deep), #0e4f7c);
  color: #fff;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.about__panel::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -40%;
  width: 70%;
  height: 90%;
  border-radius: 50%;
  background: rgba(91, 192, 235, 0.25);
  pointer-events: none;
}

.about__panel h2,
.about__panel p {
  position: relative;
  z-index: 1;
}

.about__panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.about__panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--color-surface);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 12px 40px rgba(18, 38, 58, 0.06);
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 0.85rem;
}

.contact-list dt,
.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}

.contact-list a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent-deep);
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-note {
  margin: 0;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--color-accent);
}

.site-footer a:hover {
  color: #fff;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 650;
  color: #fff;
  font-size: 1.1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.credits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.credits a {
  color: rgba(255, 255, 255, 0.7);
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-accent-soft);
  padding: 1.25rem 0;
}

.legal-header .logo {
  width: min(200px, 55vw);
}

.legal-main {
  flex: 1;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.legal-main h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.legal-content {
  max-width: 42rem;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.placeholder {
  background: #fff3cd;
  color: #664d03;
  padding: 0.05em 0.35em;
  font-weight: 600;
  font-size: 0.95em;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: rise 0.7s ease-out both;
  }

  .service {
    animation: rise 0.55s ease-out both;
  }

  .service:nth-child(2) { animation-delay: 0.06s; }
  .service:nth-child(3) { animation-delay: 0.12s; }
  .service:nth-child(4) { animation-delay: 0.18s; }
  .service:nth-child(5) { animation-delay: 0.24s; }
  .service:nth-child(6) { animation-delay: 0.3s; }

  .gallery li {
    animation: fade-in 0.6s ease-out both;
  }

  .gallery li:nth-child(2) { animation-delay: 0.08s; }
  .gallery li:nth-child(3) { animation-delay: 0.16s; }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
