/* ============================================================
   Dr. Dilpreet Gurudatta — website styles
   Palette: deep teal + warm gold on warm off-white
   ============================================================ */

:root {
  --teal-900: #08333f;
  --teal-800: #0b4354;
  --teal-700: #0f5468;
  --teal-100: #e3eef1;
  --gold: #c9a227;
  --gold-soft: #f3e9c8;
  --ink: #1e2a2e;
  --ink-soft: #4c5e63;
  --paper: #faf8f4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 51, 63, 0.10);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); color: var(--teal-900); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

a { color: var(--teal-700); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--teal-800);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--teal-700); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--teal-800);
  border: 2px solid var(--teal-800);
}
.btn-outline:hover { background: var(--teal-100); }
.btn-small { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(8, 51, 63, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--teal-900);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-800);
  color: var(--gold-soft);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; }
.brand-text small { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--teal-700); }
.nav-links .btn { color: var(--white); }
.nav-links .btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--teal-900);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(201, 162, 39, 0.10), transparent 55%),
    linear-gradient(160deg, #f3efe6 0%, var(--paper) 60%);
  padding: 84px 0 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.lead { font-size: 1.08rem; color: var(--ink-soft); margin: 22px 0 30px; max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero-badges li {
  background: var(--white);
  border: 1px solid rgba(8, 51, 63, 0.12);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-800);
}

/* ---------- Photo frames ---------- */
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--teal-100);
  margin: 0 auto;
  outline: 6px solid var(--white);
}
.photo-frame.square { aspect-ratio: 1 / 1; }
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--teal-700);
  z-index: 1;
  padding: 20px;
  text-align: center;
}
.photo-fallback svg { width: 45%; }
.photo-fallback span { font-size: 0.85rem; font-weight: 600; opacity: 0.75; }

/* ---------- Stats ---------- */
.stats { background: var(--teal-900); color: var(--white); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--gold);
}
.stat span { font-size: 0.85rem; opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: #f1ece1; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-sub { color: var(--ink-soft); margin-top: 12px; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; color: var(--ink-soft); }
.about-text strong { color: var(--ink); }
.checklist { list-style: none; margin-top: 20px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--teal-800);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 3px;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(8, 51, 63, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 32px; height: 32px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Credentials ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cred {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  box-shadow: 0 3px 12px rgba(8, 51, 63, 0.05);
}
.cred h3 { margin-bottom: 6px; font-size: 1.05rem; }
.cred p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(8, 51, 63, 0.15);
}
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal-700);
}
.tl-item.current .tl-dot { background: var(--gold); border-color: var(--gold); }
.tl-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}
.tl-body h3 { margin-bottom: 6px; }
.tl-body p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Research ---------- */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.research-col h3 {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-soft);
}
.pub-list { list-style: none; }
.pub-list li {
  padding: 12px 0 12px 26px;
  position: relative;
  border-bottom: 1px solid rgba(8, 51, 63, 0.08);
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.pub-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.pub-list em { color: var(--teal-800); font-style: italic; }

/* ---------- Gallery ---------- */
/* Masonry-style columns so tall Canva posters are shown in full, uncropped */
.gallery {
  columns: 3 260px;
  column-gap: 16px;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(8, 51, 63, 0.10);
  break-inside: avoid;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse at 15% 80%, rgba(201, 162, 39, 0.08), transparent 50%),
    var(--teal-900);
}
.contact .section-head h2, .contact .eyebrow { color: var(--white); }
.contact .eyebrow { color: var(--gold); }
.contact .section-sub { color: rgba(255, 255, 255, 0.75); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: start;
}
.contact-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-item h3 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.contact-item p { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.contact-item a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.contact-item a:hover { border-color: var(--gold); }
.contact-map iframe {
  width: 100%;
  height: calc(100% - 38px);
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}
.map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #062731; color: rgba(255, 255, 255, 0.8); }
.footer-inner { text-align: center; padding: 36px 24px; font-size: 0.88rem; }
.footer-inner p { margin-bottom: 4px; }
.footer-fine { opacity: 0.55; margin-top: 10px; font-size: 0.8rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
}

/* Collapse the nav into a hamburger menu before the links run out of room */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid rgba(8, 51, 63, 0.1);
    box-shadow: 0 12px 24px rgba(8, 51, 63, 0.12);
  }
  .nav-links.open { display: flex; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .brand-text small { display: none; }
}
