/* =========================================================
   Habit 2 Mindset — site styles
   ========================================================= */

:root {
  --olive:      #757263;   /* hero band */
  --olive-dark: #5f5c50;
  --sand:       #eeedeb;   /* light section background */
  --tan:        #e1ccbe;   /* accent panel */
  --green:      #86997a;   /* brand green */
  --green-pale: #d3dbce;
  --ink:        #1f1f1f;
  --body:       #3f3f3d;
  --muted:      #6f6d68;
  --line:       #e3e1dd;
  --white:      #ffffff;

  --wrap: 1140px;
  /* shared display size: about lede, resume note, products panel heading */
  --size-display: clamp(1.5rem, 2.6vw, 2rem);
  --font-head: "Josefin Slab", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.15em; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header {
  background: var(--white);
  padding: 1.75rem 0 .25rem;
}
.logo { display: block; }
.logo img { width: 100%; height: auto; }
.site-header .logo { margin: 0 auto; width: 128px; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  margin: 1.5rem 0 0;
  padding: 0 0 1.4rem;
}
.site-nav a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover { border-bottom-color: var(--green); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .85rem 2.1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--white); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  background: var(--olive);
  color: var(--white);
  padding: 3.5rem 0 0;
  overflow: hidden;
}
.hero h1 { color: var(--white); margin-bottom: 1.6rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: end;
}
.hero-copy { padding-bottom: 4rem; max-width: 34rem; }
.hero-copy p { color: #f2f0eb; }
.hero-copy strong { color: var(--white); font-weight: 600; }

.trivia {
  margin-top: 2.5rem;
  padding-left: 1.6rem;
  border-left: 2px solid rgba(255, 255, 255, .35);
}
.trivia h2 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .8rem;
}
.trivia p { font-size: .92rem; line-height: 1.8; margin: 0; }
.trivia em { font-style: italic; }

.hero-media {
  align-self: stretch;
  min-height: 420px;
  margin-bottom: -1px;
  background: url("../images/hero-medical.jpg") center/cover no-repeat;
  border-top-left-radius: 42%;
}

/* ---------- generic section ---------- */
.section { padding: 5rem 0; }
.section--sand { background: var(--sand); }
.section-title { text-align: center; margin-bottom: 3.2rem; }

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, .07); }
.card img { width: 108px; height: auto; margin: 0 auto 1.4rem; }
.card h3 { color: var(--green); margin-bottom: 1rem; }
.card p { font-size: .84rem; line-height: 1.7; color: var(--body); margin: 0; }

.card--cta {
  justify-content: center;
  background: var(--tan);
  border-color: var(--tan);
}
.card--cta h3 { color: var(--ink); font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.card--cta p { margin-bottom: 1.4rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}
.about-copy h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); margin-bottom: 1.4rem; }
.about-copy p { font-size: .95rem; }

/* These two must out-specify `.about-copy p` above, hence the double class. */
.about-copy .about-lede,
.about-copy .resume-note {
  font-family: var(--font-head);
  font-size: var(--size-display);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.about-copy .about-lede { margin-bottom: 1.8rem; }
.about-copy .resume-note { margin-top: 2.2rem; margin-bottom: 0; }
.resume-note a { color: var(--ink); }

.panel-tan {
  background: var(--tan);
  border-top-left-radius: 45%;
  padding: 3.2rem 2.4rem 2.6rem;
  text-align: center;
}
.panel-tan h2 { font-size: var(--size-display); font-weight: 600; margin-bottom: 1.2rem; }
.panel-tan p { font-size: .92rem; margin-bottom: .6rem; }
.panel-tan p:last-child { margin-bottom: 0; }

.products {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  place-items: center;
}
.products img { width: 100%; max-width: 260px; }
.products img:first-child { grid-column: 1 / -1; max-width: 300px; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
}
.contact-details h2 { margin-bottom: 1.6rem; }
.contact-details .name { font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.contact-details a { color: var(--body); }
.contact-details a:hover { color: var(--green); }

.field { margin-bottom: 1.4rem; }
.field label,
.legend {
  display: block;
  font-size: .9rem;
  color: var(--body);
  margin-bottom: .45rem;
}
.field .req { color: var(--muted); font-size: .8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .8rem 1.2rem;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
textarea { border-radius: 18px; min-height: 130px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--green); background: var(--white); }

.form-status { margin-top: 1rem; font-size: .9rem; color: var(--green); }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--sand);
  padding: 2.2rem 0;
  margin-top: 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer .logo { width: 112px; flex: 0 0 auto; }
.site-footer a { color: var(--body); font-size: .9rem; }
.site-footer a:hover { color: var(--green); }
.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding-top: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { padding-bottom: 1rem; }
  .hero-media { min-height: 300px; border-top-left-radius: 30%; margin-inline: -1.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .panel-tan { border-top-left-radius: 28%; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .products img:first-child { grid-column: auto; }
  .footer-grid { justify-content: center; text-align: center; }
}
