/* ============================================================
   Gold Coast Respiratory & Sleep Clinic — Dr David Deller
   styles.css
   ============================================================ */

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

:root {
  --navy:     #162032;
  --navy2:    #1e2e46;
  --blue:     #1d6fa4;
  --blue2:    #2589c8;
  --sky:      #5cb3dc;
  --ice:      #d6ecf7;
  --ice2:     #eef7fc;
  --slate:    #475569;
  --mid:      #64748b;
  --silver:   #e2eaf2;
  --offwhite: #f5f8fb;
  --white:    #ffffff;
  --text:     #1a2535;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── UTILITY ── */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.label::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.01em;
}
h2 em { font-style: italic; color: var(--blue); }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  padding: 9px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left { display: flex; gap: 28px; flex-wrap: wrap; }
.tbi {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.65);
  font-size: 12.5px;
  text-decoration: none;
  transition: color .2s;
}
.tbi:hover { color: var(--sky); }
.tbi svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .55; }
.tbi-sep { width: 1px; height: 14px; background: rgba(255,255,255,.12); }
.topbar-pill {
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--silver);
  padding: 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 16px rgba(22,32,50,.06);
}
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-btn {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 5px;
  transition: background .2s !important;
}
.nav-btn:hover { background: var(--navy) !important; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.hero-bg-lines {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image:
    repeating-linear-gradient(90deg, #fff 0, #fff 1px, transparent 0, transparent 60px),
    repeating-linear-gradient(180deg, #fff 0, #fff 1px, transparent 0, transparent 60px);
}
.hero-left {
  padding: 64px 56px 64px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-pretag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-pretag::before { content: ""; width: 24px; height: 1.5px; background: var(--sky); }
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 500;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 8px;
}
.hero-creds { font-size: 13px; color: rgba(255,255,255,.5); letter-spacing: .04em; margin-bottom: 16px; }
.hero-lead {
  font-size: 15px;
  color: rgba(255,255,255,.58);
  line-height: 1.75;
  font-weight: 300;
  max-width: 430px;
  margin-bottom: 36px;
}

/* enquiry form */
.eq-form {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  padding: 28px 30px;
  max-width: 490px;
  backdrop-filter: blur(6px);
}
.eq-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}
.eq-sub { font-size: 11.5px; color: rgba(255,255,255,.38); margin-bottom: 20px; letter-spacing: .02em; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 11px; }
.ff { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.ff label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.ff input, .ff select, .ff textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: "Outfit", sans-serif;
  font-size: 13.5px;
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.ff input::placeholder, .ff textarea::placeholder { color: rgba(255,255,255,.25); }
.ff select option { background: var(--navy2); color: #fff; }
.ff input:focus, .ff select:focus, .ff textarea:focus {
  border-color: var(--sky);
  background: rgba(255,255,255,.11);
}
.ff textarea { resize: none; height: 66px; }
.eq-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s;
  margin-top: 2px;
}
.textlink {color: var(--blue); font-weight: bold;}
a.textlink:hover {color: var(--slate);}
.eq-btn:hover { background: var(--blue2); }
.eq-btn:disabled { opacity: .7; cursor: not-allowed; }

/* file upload field */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.07);
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 4px;
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.file-upload-label:hover { border-color: var(--sky); background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.file-upload-label svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .6; }
.file-upload-hint { font-size: 10.5px; color: rgba(255,255,255,.25); margin-top: 4px; letter-spacing: .03em; }

/* enquiry form — success state */
.eq-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 8px 8px;
  gap: 12px;
  animation: fadeUp .5s ease both;
}
.eq-success-icon {
  width: 52px;
  height: 52px;
  background: rgba(92,179,220,.15);
  border: 1.5px solid rgba(92,179,220,.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eq-success-icon svg {
  width: 24px;
  height: 24px;
  color: var(--sky);
  stroke: var(--sky);
}
.eq-success-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.eq-success-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
  font-weight: 300;
  line-height: 1.6;
  max-width: 320px;
}

/* enquiry form — error messages */
.eq-errors {
  background: rgba(220,53,69,.12);
  border: 1px solid rgba(220,53,69,.3);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.eq-errors p {
  font-size: 12.5px;
  color: #f4a0a8;
  margin: 0;
  line-height: 1.5;
}
.eq-errors p + p { margin-top: 4px; }
.ff input.eq-invalid,
.ff select.eq-invalid,
.ff textarea.eq-invalid {
  border-color: rgba(220,53,69,.5) !important;
}

/* hero photo */
.hero-right { position: relative; overflow: hidden; }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.4) 18%, black 38%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.4) 18%, black 38%);
}
.hero-badge {
  position: absolute;
  bottom: 32px;
  left: 0;
  background: var(--blue);
  padding: 14px 24px 14px 28px;
}
.hero-badge-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.hero-badge-role { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 2px; letter-spacing: .04em; }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--offwhite);
  border-bottom: 1px solid var(--silver);
  padding: 0 80px;
  display: flex;
}
.stat {
  flex: 1;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--silver);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .3s ease;
}
.stat:hover::before { width: 60%; }
.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.stat-label { font-size: 11.5px; color: var(--mid); margin-top: 4px; letter-spacing: .03em; }

/* ── ABOUT ── */
.about {
  padding: 88px 80px;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}
.about-meta { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}
.meta-row svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: var(--blue); }
.about-right p {
  font-size: 15.5px;
  color: var(--slate);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 18px;
}
.about-right p:last-child { margin-bottom: 0; }
.about-right strong { font-weight: 600; color: var(--navy); }

/* ── SERVICES ── */
.services {
  background: var(--offwhite);
  padding: 88px 80px;
  border-top: 1px solid var(--silver);
}
.services-head { text-align: center; max-width: 580px; margin: 0 auto 56px; }
.services-head .label { justify-content: center; }
.services-head .label::before { display: none; }
.services-head p { font-size: 15px; color: var(--mid); line-height: 1.75; font-weight: 300; margin-top: 14px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scard {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 8px;
  padding: 34px 28px;
  transition: box-shadow .25s, transform .2s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.scard::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.scard:hover { box-shadow: 0 10px 40px rgba(22,32,50,.09); transform: translateY(-3px); border-color: var(--ice); }
.scard:hover::after { transform: scaleX(1); }
.scard-icon {
  width: 46px; height: 46px;
  background: var(--ice2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.scard-icon svg { width: 22px; height: 22px; color: var(--blue); }
.scard h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.scard p { font-size: 13px; color: var(--mid); line-height: 1.7; font-weight: 300; margin-bottom: 14px; }
.scard ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.scard ul li {
  font-size: 12.5px;
  color: var(--slate);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.scard ul li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sky);
  margin-top: 5px;
  flex-shrink: 0;
}

/* ── MDT BAND ── */
.mdt-band {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 36px 80px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 3px solid var(--blue);
}
.mdt-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.mdt-item:first-child { padding-left: 0; }
.mdt-item:last-child { border-right: none; }
.mdt-ico {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mdt-ico svg { width: 16px; height: 16px; color: var(--sky); }
.mdt-lbl { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 3px; }
.mdt-val { font-family: "Cormorant Garamond", serif; font-size: 15px; font-style: italic; color: #fff; }

/* ── REFERRALS ── */
.referrals {
  padding: 88px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}
.referrals-left p { font-size: 15px; color: var(--slate); line-height: 1.8; font-weight: 300; margin-bottom: 16px; }
.referrals-left p strong { font-weight: 600; color: var(--navy); }
.ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 13px 26px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-top: 8px;
}
.ref-btn:hover { background: var(--navy); transform: translateY(-1px); }
.ref-btn svg { width: 15px; height: 15px; }

.contact-card {
  background: var(--offwhite);
  border: 1px solid var(--silver);
  border-radius: 8px;
  padding: 36px;
  overflow: hidden;
}
.contact-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 28px;
}
.ci { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.ci:last-of-type { margin-bottom: 0; }
.ci-icon {
  width: 36px; height: 36px;
  background: var(--ice2);
  border: 1px solid var(--ice);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 15px; height: 15px; color: var(--blue); }
.ci-lbl { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 3px; }
.ci-val { font-size: 14px; font-weight: 500; color: var(--navy); }
.ci-sub { font-size: 12px; color: var(--mid); margin-top: 1px; }

/* Google Map */
.map-container {
  margin-top: 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ice);
  height: 220px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 36px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 3px solid var(--blue);
}
.foot-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .8; }
.foot-right { text-align: right; }
.foot-nav { display: flex; gap: 20px; justify-content: flex-end; margin-bottom: 6px; }
.foot-nav a { font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.foot-nav a:hover { color: #fff; }
.foot-copy { font-size: 11.5px; color: rgba(255,255,255,.25); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * { animation: fadeUp .7s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .05s; }
.hero-left > *:nth-child(2) { animation-delay: .15s; }
.hero-left > *:nth-child(3) { animation-delay: .22s; }
.hero-left > *:nth-child(4) { animation-delay: .30s; }
.hero-left > *:nth-child(5) { animation-delay: .42s; }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .topbar, .hero-left { padding-left: 40px; padding-right: 40px; }
  nav, .about, .services, .referrals, .mdt-band, footer { padding-left: 40px; padding-right: 40px; }
  .stats-strip { padding: 0 40px; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: block; height: 360px; min-height: 360px; }
  .hero-photo {
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.35) 18%, black 40%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.35) 18%, black 40%);
  }
  .hero-badge { bottom: auto; top: 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .referrals { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .topbar { padding: 8px 20px; }
  .topbar-left { gap: 14px; }
  .topbar-pill { display: none; }
  .tbi { font-size: 16px; }
  nav { padding: 0 20px; height: 100px; }
  .nav-logo img { height: 60px; }
  .nav-links { display: none; }
  .hero-right { height: 500px; min-height: 500px; }
  .hero-photo { height: 120%; }
  .hero-left { padding: 52px 24px; }
  .frow { grid-template-columns: 1fr; }
  .about, .services, .referrals { padding: 60px 24px; }
  .mdt-band { padding: 28px 24px; flex-direction: column; gap: 16px; }
  .mdt-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); padding: 8px 0; }
  .stats-strip { padding: 0 24px; flex-wrap: wrap; }
  .stat { min-width: 50%; border-bottom: 1px solid var(--silver); }
  .services-grid { grid-template-columns: 1fr; }
  footer { padding: 28px 24px; flex-direction: column; }
  .foot-right { text-align: left; }
  .foot-nav { justify-content: flex-start; }
}
