:root {
  --ocean-teal: #5E9FA3;
  --deep-teal: #4C878B;
  --seafoam: #DCEBE8;

  --warm-sand: #C89A6B;
  --light-sand: #F3E7D8;
  --cream: #FAF7F2;

  --text-dark: #2F2F2F;
  --text-muted: #6B6B6B;

  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: var(--cream);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
}

a {
  text-decoration: none;
  color: inherit;
}
/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 6%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.logo img,
.footer-logo img {
  width: 190px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--ocean-teal);
}

.portal-btn,
.primary-btn {
  background: var(--ocean-teal);
  color: white;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: 0.3s ease;
}

.portal-btn:hover,
.primary-btn:hover {
  background: var(--deep-teal);
}

/* HERO */

.hero {
  position: relative;
  min-height: 720px;

  background:
    linear-gradient(
      to right,
      rgba(250, 247, 242, 0.95) 0%,
      rgba(250, 247, 242, 0.65) 40%,
      rgba(250, 247, 242, 0.1) 100%
    ),
    url("hero_background.png");

  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-content {
  padding: 190px 8% 120px;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 1;
  margin: 0 0 24px;
}

.hero h1 span {
  display: block;
  color: var(--warm-sand);
  font-style: italic;
}

.hero p {
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.secondary-btn {
  border: 2px solid var(--ocean-teal);
  color: var(--ocean-teal);
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.secondary-btn:hover {
  background: var(--ocean-teal);
  color: white;
}

.tagline {
  margin-top: 28px;
  color: var(--deep-teal);
  font-style: italic;
}

.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 115px;
}

.wave path {
  fill: var(--cream);
}

/* SERVICES */

.services {
  position: relative;
  padding: 80px 8% 100px;
  text-align: center;
  background:
    radial-gradient(circle at left bottom, var(--seafoam), transparent 30%),
    var(--cream);
}

.eyebrow {
  color: var(--ocean-teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.85rem;
}

.services h2,
.providers h2,
.story-text h2,
.cta h2 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin: 10px 0 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  padding: 42px 28px;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.card .icon {
  color: var(--ocean-teal);
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.7rem;
  margin: 0 0 14px;
}

.card p {
  line-height: 1.7;
}

/* STORY */

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}

.story-image {
  min-height: 400px;
  background:
    linear-gradient(to right, transparent, rgba(255,255,255,0.4)),
    url("officeOurStory.jpg");
  background-size: cover;
  background-position: center;
  border-top-right-radius: 90px;
  border-bottom-right-radius: 90px;
}

.story-text {
  padding: 80px 10%;
}

.story-text p {
  color: var(--text-muted);
  line-height: 1.8;
}

.story-text h2 {
  color: var(--warm-sand);
}

.small-btn {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.75rem;
}

/* PROVIDERS */

.providers {
  background: var(--cream);
  padding: 80px 8%;
  text-align: center;
}

.provider-row {
  display: grid;
  grid-template-columns: 180px 1.5fr repeat(4, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  text-align: left;
}

.provider-photo {
  height: 180px;
  border-radius: 18px;
  background: url("drFordhamHeadshot.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 35px rgba(0,0,0,0.1);
}

.provider-info h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.specialty {
  color: var(--ocean-teal);
  font-style: italic;
  font-weight: 600;
}

.feature {
  text-align: center;
  padding: 28px 18px;
  border-left: 1px solid #ddd;
  color: var(--text-dark);
}

/* CTA */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  padding: 52px 12%;
  background:
    linear-gradient(rgba(94,159,163,0.5), rgba(94,159,163,0.5)),
    url("starfish_decal.png");
  background-size: cover;
  background-position: center;
}

.cta h2 {
  color: white;
  margin: 0;
}

.cta p {
  color: white;
}

/* FOOTER */

.footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 45px;
  padding: 70px 8%;
  background:
    linear-gradient(to right, rgba(250,247,242,0.96), rgba(250,247,242,0.88)),
    url("shells-white.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
}

.footer h4 {
  color: var(--ocean-teal);
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin: 10px 0;
  color: var(--text-dark);
}

.footer p {
  color: var(--deep-teal);
  line-height: 1.7;
}

.copyright {
  text-align: center;
  padding: 20px;
  background: var(--deep-teal);
  color: white;
  font-size: 0.85rem;
}
  .portal-page .portal-hero {
  padding-top: 150px;
}
/* MOBILE */

@media (max-width: 950px) {
  .navbar {
    flex-direction: column;
    gap: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero-content {
    padding-top: 240px;
  }

  .service-grid,
  .story-section,
  .provider-row,
  .footer {
    grid-template-columns: 1fr;
  }

  .provider-row {
    text-align: center;
  }

  .feature {
    border-left: none;
    border-top: 1px solid #ddd;
  }

  .cta {
    flex-direction: column;
    text-align: center;
  }

}
/* DOCS POPUP */

.docs-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(47, 47, 47, 0.45);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.docs-popup-overlay.show {
  display: flex;
}

.docs-popup-box {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: var(--cream);
  border-radius: 22px;
  padding: 42px 34px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  border-top: 7px solid var(--ocean-teal);
}

.docs-popup-box h2 {
  color: var(--warm-sand);
  margin: 12px 0;
  font-size: 2.4rem;
}

.docs-popup-box p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

.docs-popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ocean-teal);
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
}
