/*
  built for redesigned homepage

  Homepage-only stylesheet for the redesigned Dr. Duru homepage.
  This file is intentionally separate from legacy stylesheets used by
  other pages on the site.
*/

/* =========================================================
   1. Root variables
   ========================================================= */
:root {
  --bg: #eef2f6;
  --bg-soft: #f7f9fc;

  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --surface-3: #e9eef5;

  --text: #132238;
  --text-soft: #4b5c70;
  --text-inverse: #ffffff;

  --nav-bg: #1f2937;
  --nav-hover: #2f3d4f;

  --border: #cfd9e6;
  --border-strong: #b3c2d6;

  --brand: #0d4d83;
  --brand-dark: #08385f;
  --brand-soft: #d9e9f7;

  --gold: #8a6423;
  --gold-soft: #f6ebd6;

  --slate: #4f6480;
  --slate-soft: #e5ebf3;

  --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 16px 42px rgba(16, 24, 40, 0.12);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --site-width: 1240px;
  --transition: 180ms ease;
}

/* =========================================================
   2. Reset and base elements
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(13, 77, 131, 0.05), transparent 28%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 28%, #edf2f7 100%);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--brand-dark);
  border: 2px solid var(--brand);
  border-radius: 10px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* =========================================================
   3. Shared layout helpers
   ========================================================= */
.site-shell {
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
}

.section-block {
  margin-bottom: 42px;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-intro h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   4. Header and hero
   ========================================================= */
.site-header {
  padding: 18px 0 0;
}

.banner-frame {
  position: relative;
  margin-bottom: 18px;
}

.banner-frame::after {
  content: "";
  position: absolute;
  inset: auto 18px -16px 18px;
  height: 28px;
  background: rgba(8, 56, 95, 0.12);
  filter: blur(22px);
  z-index: 0;
}

.banner-link {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.banner-link img {
  width: 100%;
  height: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 24px 0 26px;
}

.hero-copy {
  padding: 14px 0 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-intro {
  max-width: 40rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(13, 77, 131, 0.04), rgba(138, 100, 35, 0.08)),
    #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: rgba(13, 77, 131, 0.08);
}

.hero-panel h2 {
  position: relative;
  margin: 0 0 18px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.hero-panel-text {
  position: relative;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* =========================================================
   5. Navigation
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 6px;
  background: linear-gradient(180deg, #27313e 0%, var(--nav-bg) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 10px 14px;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  background: var(--nav-hover);
  color: #ffffff;
}

/* =========================================================
   6. Buttons and action elements
   ========================================================= */
.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--text-inverse);
  box-shadow: 0 10px 22px rgba(13, 77, 131, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--text-inverse);
  box-shadow: 0 14px 28px rgba(13, 77, 131, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-dark);
  border-color: rgba(13, 77, 131, 0.55);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #ffffff;
  color: var(--brand-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  font-size: 1rem;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

/* =========================================================
   7. Featured section and cards
   ========================================================= */
.featured-section {
  margin-top: 52px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
}

.feature-card__inner {
  position: relative;
  height: 100%;
  padding: 26px 24px 24px;
}

.feature-card--blue {
  background: linear-gradient(180deg, #f5faff 0%, #eaf3fc 100%);
}

.feature-card--blue::before {
  background: linear-gradient(90deg, #0d4d83, #4d8dc7);
}

.feature-card--gold {
  background: linear-gradient(180deg, #fdf8ef 0%, #f6ebd6 100%);
}

.feature-card--gold::before {
  background: linear-gradient(90deg, #8a6423, #d2a74e);
}

.feature-card--slate {
  background: linear-gradient(180deg, #f5f8fb 0%, #e7eef6 100%);
}

.feature-card--slate::before {
  background: linear-gradient(90deg, #4f6480, #7e93ab);
}

.feature-label {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  line-height: 1.16;
}

.feature-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

/* =========================================================
   8. Secondary section and custom row layout
   ========================================================= */
.secondary-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.secondary-row {
  display: grid;
  gap: 22px;
}

.secondary-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.secondary-row--center {
  grid-template-columns: 1fr;
  justify-items: center;
}

.content-card {
  padding: 24px 24px 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.content-card--muted {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%);
}

.content-card--center {
  width: min(760px, 100%);
}

.content-card h3 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  line-height: 1.15;
}

.content-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.content-card h3 a:hover,
.content-card h3 a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

.content-card ul {
  margin: 0;
  padding-left: 20px;
}

.content-card li {
  margin-bottom: 10px;
  color: var(--text-soft);
}

.content-card li:last-child {
  margin-bottom: 0;
}

.content-card li a {
  font-weight: 500;
}

/* =========================================================
   9. Footer
   ========================================================= */
.site-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-history {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-copyright a {
  color: var(--text-soft);
  font-weight: 600;
  text-decoration: none;
}

.footer-copyright a:hover,
.footer-copyright a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* =========================================================
   10. Responsive rules
   ========================================================= */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .featured-grid,
  .secondary-row--two {
    grid-template-columns: 1fr;
  }

  .featured-section {
    margin-top: 44px;
  }

  .content-card--center {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--site-width));
  }

  .site-header {
    padding-top: 10px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .nav-list a {
    white-space: nowrap;
  }

  .content-card,
  .feature-card__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .content-card h3 {
    font-size: 1.4rem;
  }

  .featured-section {
    margin-top: 36px;
  }

  .secondary-layout {
    gap: 18px;
  }

  .secondary-row {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .section-intro h2 {
    font-size: 1.75rem;
  }

  .feature-card h3 {
    font-size: 1.4rem;
  }

  .btn {
    min-height: 52px;
    font-size: 0.94rem;
  }
}