/* ============================================================
   MARZ MEDICAL — stylesheet
   A single, plain CSS file. Colours and fonts are defined once
   at the top (in ":root") so they are easy to change in one place.
   ============================================================ */

/* ---------- Self-hosted fonts (no external requests) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Brand palette & settings ---------- */
:root {
  --green:    #2b3f3f;   /* deep green — header, cards, accents, icons */
  --gold:     #c4a265;   /* gold — the word "MEDICAL" & "Our Services"  */
  --ink:      #1e293b;   /* dark slate — main headings                 */
  --accent:   #2b3f3f;   /* green — highlighted words inside headings   */
  --text:     #334155;   /* body text on the cream background           */
  --cream:    #f4ede5;   /* page background                             */
  --offwhite: #fffcf6;   /* body text on the dark green cards           */
  --white:    #ffffff;
  --dark:     #131417;   /* footer background                           */
  --card-border: rgba(138, 135, 128, 0.3);
  --rule: rgba(196, 162, 101, 0.55);   /* gold hairline next to eyebrow labels */
  --hairline: rgba(51, 65, 85, 0.14);  /* neutral hairline for list dividers  */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Poppins", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1260px;
  --pad: 24px;
  --section-pad: 90px;
}

/* ---------- Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-pad); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Eyebrow labels ---------- */
/* Default: small green label with a hairline (About, Approach, Global, Enquiries) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--green);
}
.eyebrow::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule); max-width: 360px; }

/* "Our Services": larger gold serif label */
.eyebrow-gold {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--gold);
}

/* Centered variant (Enquiries) — line flourish on the right side only */
.eyebrow-center { justify-content: center; }
.eyebrow-center::before { content: none; }
.eyebrow-center::after { flex: 0 0 110px; max-width: 110px; }

/* ---------- Body copy ---------- */
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem;
  padding: 13px 30px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
/* "Get in Touch" — white on the green header */
.btn-outline { background: var(--white); color: var(--green); }
.btn-outline:hover { background: var(--cream); }

.btn-send { background: var(--white); color: var(--dark); width: 100%; padding: 15px 30px; font-size: 1rem; }
.btn-send:hover { color: var(--text); }

/* ============================================================
   HEADER (dark green bar)
   ============================================================ */
.site-header { background: var(--green); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 86px;
}
.brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--gold); }

.primary-nav { margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  font-family: var(--sans); font-size: 16px; line-height: 20px; padding: 13px 20px;
  color: var(--white); text-decoration: none; transition: color .2s ease;
}
.nav-menu a:hover { color: var(--gold); }
.nav-cta-mobile { display: none; }
.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  padding: 6px; cursor: pointer; line-height: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: 110px; }
.hero-content { max-width: 640px; }
.hero-wordmark { font-size: 65px; line-height: 1.4; margin: 0; }
.hero-wordmark span { color: var(--accent); }
.hero-subhead {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 25px; line-height: 1.3; color: var(--ink); margin: 6px 0 0;
}
.hero .prose { font-size: 16px; max-width: 600px; margin: 13px 0 0; }
.hero .prose p { line-height: 1.65; margin: 0 0 28px; }
.hero .prose p:last-child { margin-bottom: 0; }
.rule { border: 0; border-top: 1px solid var(--rule); width: 78px; margin: 52px 0 0; }

/* ============================================================
   ABOUT  (heading left, copy right)
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-head h2 { font-size: 37px; }
.about-body { font-size: 1rem; }

/* Thin rules at the top & bottom of the About and Global Reach sections */
.about.section, .global.section { position: relative; }
.about.section::before, .about.section::after,
.global.section::before, .global.section::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: min(var(--container), calc(100% - 2 * var(--pad)));
  height: 1px; background: rgba(122, 122, 122, 0.33);
}
.about.section::before, .global.section::before { top: 0; }
.about.section::after,  .global.section::after  { bottom: 0; }

/* ============================================================
   SERVICES  (3-up grid of dark cards)
   ============================================================ */
.services-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; }
.service-card {
  flex: 1 1 calc((100% - 40px) / 3);
  background: var(--green); color: var(--offwhite);
  border: 1px solid var(--card-border); box-shadow: 0 0 10px rgba(0, 0, 0, 0.22);
  padding: 34px 30px;
}
.service-icon { width: 62px; height: 62px; margin-bottom: 20px; }
.service-card h3 { color: var(--white); font-size: 25px; margin-bottom: 12px; }
.service-card p { margin: 0; font-size: 0.94rem; line-height: 1.6; }
.service-card a { color: var(--gold); }

/* ============================================================
   OUR APPROACH  ("Medicine, done properly")
   ============================================================ */
.approach-head { margin-bottom: 42px; }
.approach-head h2 { font-size: 37px; }
.approach-head h2 span { color: var(--accent); }
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.approach-card {
  background: var(--green); color: var(--offwhite);
  padding: 26px 24px; min-height: 180px; display: flex; flex-direction: column;
  transition: transform .3s ease, background-color .3s ease;
}
/* On hover the card lifts and its background turns black (matches the original). */
.approach-card:hover { transform: translateY(-12px); background-color: #000; }
.approach-icon { color: var(--white); margin-bottom: 14px; }
.approach-icon svg { width: 34px; height: 34px; display: block; }
.approach-card h3 { color: var(--white); font-size: 23px; line-height: 1.15; margin-bottom: 10px; }
.approach-card p { margin: 0; font-size: 0.875rem; line-height: 1.5; }

/* ============================================================
   GLOBAL REACH  (heading left, list right)
   ============================================================ */
.global-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.global-head h2 { font-size: 37px; }
.global-list { list-style: none; margin: 0; padding: 0; }
.global-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; }
.global-list li:first-child { padding-top: 0; }
.check { color: var(--green); flex: 0 0 auto; line-height: 0; margin-top: 3px; }
.check svg { width: 20px; height: 20px; }
/* Location names use the display serif */
.global-list h3 { font-family: var(--serif); font-size: 25px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.global-list p { margin: 0; font-size: 0.96rem; }

/* ============================================================
   ENQUIRIES  (centered heading + dark form box)
   ============================================================ */
/* 744px form box + 24px container padding on each side = 792px */
.enquiries-inner { max-width: 792px; margin-inline: auto; }
.enquiries h2 { font-size: 37px; margin-bottom: 18px; }
.enquiries-intro { font-size: 1rem; margin: 0 auto 26px; }
.enquiries-email {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--serif); font-size: 26px; margin: 0 0 38px;
}
.enquiries-email a { color: var(--ink); text-decoration: none; }
.enquiries-email a:hover { color: var(--green); }
.env { color: var(--green); line-height: 0; }
.env svg { width: 26px; height: 21px; }

.form-box { background: var(--green); padding: 40px; }
.form-field { margin-bottom: 25px; }
.form-field label {
  display: block; color: var(--white); font-size: 14px; font-weight: 500; margin-bottom: 8px;
}
.req { color: #e04646; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--white); border: 0; padding: 6px 16px;
  font-family: var(--sans); font-size: 16px; color: var(--dark);
}
.contact-form input { min-height: 47px; }
.contact-form textarea { resize: vertical; min-height: 120px; padding-block: 12px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }  /* spam honeypot */
.form-status:empty { display: none; }
.form-status { margin: 16px 0 0; color: var(--offwhite); font-size: 0.95rem; }

/* ============================================================
   FOOTER (near-black bar)
   ============================================================ */
.site-footer { background: var(--dark); padding-block: 38px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand {
  font-family: var(--serif); font-size: 20px; letter-spacing: 0.08em;
  color: #8a8780; margin: 0;
}
.copyright { margin: 0; font-size: 14px; color: rgba(138, 135, 128, 0.85); }

/* ============================================================
   BACK-TO-TOP BUTTON (appears after scrolling; click scrolls to top)
   ============================================================ */
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 70;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--green); color: var(--white); border: 0; border-radius: 4px;
  cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, background-color .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: #233331; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* ============================================================
   MOTION: respect visitors who prefer reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .approach-card:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 64px; }
  .service-card { flex-basis: calc((100% - 20px) / 2); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-wordmark { font-size: 44px; }
  .about-head h2, .approach-head h2, .global-head h2, .enquiries h2 { font-size: 30px; }
}

@media (max-width: 760px) {
  :root { --section-pad: 52px; }

  /* Mobile navigation: hamburger reveals a dropdown.
     The script adds/removes ".open" on <ul id="nav-menu">. */
  .site-header { position: relative; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; z-index: 50; }
  .nav-menu {
    display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
    background: var(--green); border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 13px var(--pad); width: 100%; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { color: var(--gold); font-weight: 600; }

  .hero { padding-block: 60px; }
  .hero-wordmark { font-size: 32px; }
  .hero-subhead { font-size: 20px; }
  .about-head h2, .approach-head h2, .global-head h2, .enquiries h2 { font-size: 27px; }
  .about-grid, .global-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-card { flex-basis: 100%; }
  .approach-grid { grid-template-columns: 1fr; }
  .form-box { padding: 28px 22px; }
  .enquiries-email { font-size: 22px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
}
