/* =========================
   RESET / PREMIUM BRAND VARIABLES
========================= */

:root {
  --primary: #004A52;
  --primary-dark: #001F24;
  --primary-deep: #001114;
  --primary-gloss: #006D73;
  --primary-soft: #2B7A6D;
  --accent-glow: #8FF5E6;

  --cream: #f7f6f1;
  --cream-soft: #ecebe5;
  --white-gloss: rgba(255,255,255,0.78);

  --text: #06282c;
  --text-light: rgba(6,40,44,0.68);

  --border: rgba(0,74,82,0.12);

  --space-xs: 12px;
  --space-sm: 24px;
  --space-md: 48px;
  --space-lg: 80px;
  --space-xl: 120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;

  background:
    radial-gradient(circle at 50% 0%,
      rgba(0,74,82,0.12),
      transparent 34%),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7f6f1 38%,
      #ecebe5 100%
    );

  color: var(--text);
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background:
    radial-gradient(
      rgba(0,74,82,0.045) 1px,
      transparent 1px
    );

  background-size: 26px 26px;
  opacity: 0.55;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;

  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,0.72),
      transparent 36%,
      rgba(0,74,82,0.04) 100%
    );

  pointer-events: none;
  z-index: -1;
}

/* =========================
   LAYOUT
========================= */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--space-lg) 0;
  position: relative;
}

section:nth-child(even) {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.42),
      rgba(255,255,255,0.18)
    );

  backdrop-filter: blur(18px);
}

/* =========================
   GLOBAL IMAGE FIX
========================= */

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

.card img,
.provider-photo img,
.provider-image img,
.profile-image img,
.team-card img {
  width: 100%;
  max-height: 380px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 26px;

  box-shadow:
    0 24px 46px rgba(0,0,0,0.14);

  filter:
    saturate(1.03)
    contrast(1.03);
}

/* =========================
   NAV
========================= */

nav {
  position: sticky;
  top: 0;
  z-index: 999;

  background:
    rgba(255,255,255,0.64);

  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);

  border-bottom:
    1px solid rgba(0,74,82,0.10);

  box-shadow:
    0 12px 34px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;

  color: var(--primary-dark);

  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.9),
    0 8px 22px rgba(0,74,82,0.10);
}

.logo img {
  width: 52px;
  max-height: 52px;
  object-fit: contain;

  filter:
    drop-shadow(0 0 14px rgba(0,74,82,0.24))
    drop-shadow(0 10px 20px rgba(0,0,0,0.16));
}

.logo span {
  color: var(--primary-gloss);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: rgba(0,31,36,0.72);
  text-decoration: none;
  font-weight: 700;

  transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary-gloss);
  transform: translateY(-1px);

  text-shadow:
    0 0 16px rgba(0,109,115,0.22);
}

/* =========================
   GRID SYSTEM
========================= */

.grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================
   HERO
========================= */

.hero {
  min-height: auto;

  padding:
    110px 0
    80px;

  background:
    radial-gradient(
      circle at 70% 28%,
      rgba(0,74,82,0.10),
      transparent 34%
    );

  overflow: hidden;
}

.hero::before {
  content: "";

  position: absolute;
  top: -220px;
  right: -160px;

  width: 760px;
  height: 760px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(0,74,82,0.14) 0%,
      rgba(143,245,230,0.10) 38%,
      transparent 72%
    );

  filter: blur(26px);

  pointer-events: none;
}

.hero-label {
  display: inline-block;

  margin-bottom: 18px;

  color: var(--primary-gloss);

  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.2em;

  text-transform: uppercase;

  text-shadow:
    0 0 18px rgba(0,109,115,0.18);
}

.hero h1 {
  font-size: clamp(3.2rem, 5vw, 5.4rem);

  line-height: 0.98;

  margin-bottom: 28px;

  letter-spacing: -0.055em;

  font-weight: 900;

  color: var(--primary-dark);

  text-shadow:
    0 1px 0 rgba(255,255,255,0.95),
    0 14px 32px rgba(0,74,82,0.12);
}

.hero p {
  color: var(--text-light);

  font-size: 1.12rem;

  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* =========================
   HERO / PROVIDER IMAGE SYSTEM
========================= */

.logo-hero {
  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  min-height: 360px;
}

.logo-hero::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(0,74,82,0.10) 0%,
      rgba(143,245,230,0.08) 42%,
      transparent 76%
    );

  filter: blur(24px);
}

.logo-hero img {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 280px;
  max-height: 360px;

  aspect-ratio: 4 / 5;

  object-fit: cover;
  object-position: center top;

  border-radius: 32px;

  filter:
    drop-shadow(0 0 20px rgba(0,74,82,0.16))
    drop-shadow(0 24px 48px rgba(0,0,0,0.18))
    contrast(1.04)
    saturate(1.04);

  opacity: 0.99;

  box-shadow:
    0 24px 54px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.75);

  transition:
    transform 0.45s ease,
    filter 0.45s ease,
    box-shadow 0.45s ease;
}

.logo-hero img:hover {
  transform:
    translateY(-4px)
    scale(1.01);

  filter:
    drop-shadow(0 0 28px rgba(0,109,115,0.22))
    drop-shadow(0 30px 60px rgba(0,0,0,0.22))
    contrast(1.06)
    saturate(1.06);

  box-shadow:
    0 32px 70px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

/* Provider pages: better balance between text and photo */
.hero .grid-2 {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

/* Homepage logo exception */
.home-logo,
.logo-main,
.brand-mark {
  max-width: 340px;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 32px;

  border-radius: 999px;

  font-weight: 800;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.btn-primary {
  background:
    linear-gradient(
      180deg,
      #00727a 0%,
      #004A52 48%,
      #002b31 100%
    );

  color: #f7fffc;

  border:
    1px solid rgba(143,245,230,0.46);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 -2px 0 rgba(0,0,0,0.24),
    0 18px 42px rgba(0,74,82,0.26);
}

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

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.54),
    inset 0 -2px 0 rgba(0,0,0,0.26),
    0 28px 58px rgba(0,74,82,0.32);
}

.btn-secondary {
  background:
    rgba(255,255,255,0.48);

  color: var(--primary-dark);

  border:
    1px solid rgba(0,74,82,0.16);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 12px 28px rgba(0,0,0,0.07);
}

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

  background:
    rgba(255,255,255,0.7);

  border-color:
    rgba(0,74,82,0.24);
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-title.left {
  text-align: left;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 14px;

  letter-spacing: -0.035em;

  color: var(--primary-dark);

  text-shadow:
    0 1px 0 rgba(255,255,255,0.95);
}

.section-title h2::after {
  content: "";

  display: block;

  width: 86px;
  height: 5px;

  margin: 20px auto 0;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--primary-dark),
      var(--primary-gloss),
      var(--accent-glow)
    );

  box-shadow:
    0 0 22px rgba(0,109,115,0.20);
}

.section-title.left h2::after {
  margin-left: 0;
}

.section-title p {
  color: var(--text-light);
}

/* =========================
   PREMIUM CARD SYSTEM
========================= */

.card {
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.88),
      rgba(246,246,241,0.66)
    );

  border:
    1px solid rgba(0,74,82,0.10);

  border-radius: 34px;

  padding: 36px;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow:
    0 24px 60px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);

  position: relative;
  overflow: hidden;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.55),
      transparent 36%,
      rgba(0,74,82,0.04) 100%
    );

  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 34px 82px rgba(0,0,0,0.16);
}

.card h3 {
  margin-bottom: 14px;

  font-size: 1.35rem;

  color: var(--primary-dark);
}

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

/* =========================
   CTA BLOCK
========================= */

.cta-block {
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.86),
      rgba(246,246,241,0.64)
    );

  border:
    1px solid rgba(0,74,82,0.12);

  border-radius: 38px;

  padding:
    var(--space-lg)
    var(--space-md);

  text-align: center;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow:
    0 28px 70px rgba(0,0,0,0.11),
    inset 0 1px 0 rgba(255,255,255,0.9);

  position: relative;
  overflow: hidden;
}

.cta-block h2 {
  color: var(--primary-dark);
}

.cta-block p {
  color: var(--text-light);
  max-width: 700px;
  margin: 20px auto 0;
}

/* =========================
   CONTACT PAGE
========================= */

.hero-compact {
  min-height: auto;
  padding: 100px 0 60px;
}

.contact-layout {
  align-items: start;
}

.contact-note {
  margin-top: 32px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;

  color: var(--primary-dark);

  font-weight: 800;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;

  padding: 15px 16px;

  border-radius: 18px;

  border:
    1px solid rgba(0,74,82,0.14);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.86),
      rgba(246,246,241,0.64)
    );

  color: var(--primary-dark);

  font-family: inherit;
  font-size: 1rem;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 10px 24px rgba(0,0,0,0.05);

  outline: none;
}

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

.contact-form button {
  margin-top: 8px;
  width: fit-content;
}

.provider-card {
  min-height: 300px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.provider-card .btn {
  margin-top: auto;
}

/* =========================
   FOOTER
========================= */

footer {
  border-top:
    1px solid rgba(0,74,82,0.10);

  padding: 42px 24px;

  text-align: center;

  color: rgba(0,31,36,0.66);

  font-size: 0.92rem;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.58),
      rgba(236,235,229,0.92)
    );
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-direction: column;
    gap: 18px;
  }

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

  .hero {
    padding: 76px 0 52px;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .hero .grid-2 {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .logo-hero {
    min-height: auto;
    margin-top: 18px;
  }

  .logo-hero::before {
    width: 320px;
    height: 320px;
  }

  .logo-hero img {
    max-width: 220px;
    max-height: 300px;
    border-radius: 26px;
    margin: 0 auto;
  }

  .card img,
  .provider-photo img,
  .provider-image img,
  .profile-image img,
  .team-card img {
    max-height: 320px;
  }

  section {
    padding: var(--space-md) 0;
  }

  .card {
    padding: 26px;
    border-radius: 28px;
  }

  .section-title.left {
    text-align: center;
  }

  .section-title.left h2::after {
    margin-left: auto;
  }

  .contact-form button {
    width: 100%;
  }
}
