:root {
  --bg: #f1f8ff;
  --surface: #ffffff;
  --primary: #0b8ac7;
  --primary-dark: #04608f;
  --text: #111827;
  --muted: #56606f;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(4, 96, 143, 0.15);
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-shell main {
  flex: 1;
}

section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(4, 96, 143, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
}

.logo {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  padding: 0.75rem 1.4rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 138, 199, 0.35);
}

.btn-secondary {
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
}

.hero-content p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 540px;
  width: 100%;
  justify-self: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(11, 138, 199, 0.25), transparent 60%);
}

/* Section headings */
.section-heading {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-heading span {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0.6rem 0 0.4rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}

/* Cards & grids */
.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(4, 96, 143, 0.15);
  transition: transform 200ms ease, border 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 138, 199, 0.45);
}

.card h3 {
  margin: 0.8rem 0 0.4rem;
}

.card p {
  color: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  justify-items: center;
}

.gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(4, 96, 143, 0.2);
  max-width: 320px;
  width: 100%;
}

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem 1.1rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transform: translateY(10px);
  transition: 200ms ease;
}

.gallery figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  position: relative;
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.12;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* CTA */
.cta {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 70%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cta .btn {
  align-self: flex-start;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.contact-info ul {
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.contact-info li {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--muted);
}

.contact-info a {
  color: var(--primary);
  font-weight: 600;
}

.contact-form {
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.75rem 0.95rem;
  font: inherit;
  background: #fff;
  transition: border 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(11, 138, 199, 0.35);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Form Errors */
.form-errors {
  margin: 0 0 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  list-style: none;
  font-weight: 500;
}

.field-error {
  margin: 0.3rem 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form form.was-validated input:invalid,
.contact-form form.was-validated textarea:invalid {
  border-color: #fecaca;
}

.contact-form form.was-validated input:invalid:focus,
.contact-form form.was-validated textarea:invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  color: var(--muted);
  text-align: center;
}

.site-footer .socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--muted);
  transition: color 160ms ease;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(11, 138, 199, 0.18);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.shadow-lg {
  box-shadow: var(--shadow);
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1100px) {
  /* Tighten spacing on tablets */
  section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
  }

  .nav {
    padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  }

  .hero {
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .hero-media {
    max-width: 460px;
  }

  .cta {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  /* Small phones */
  .container {
    width: min(100%, 92vw);
  }

  .card {
    padding: 1.2rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .cta {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
    top: auto;
    box-shadow: none;
  }

  .nav {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }

  .cta {
    text-align: center;
  }

  .message-table__head {
    display: none;
  }

  .message-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .message-actions {
    justify-self: flex-start;
  }
}
