/* styles.css - Shared stylesheet for Diego Ferrão Cardiologista website */
/* Color palette: --ink:#2A2220; --wine:#7A2E2E; --wine-dark:#521D1D; --sand:#F2ECE4; --panel:#FFFFFF; --line:#E6DCCF; */

:root {
  --ink: #2A2220;
  --wine: #B62430;
  --wine-dark: #7D3238;
  --sand: #F2ECE4;
  --panel: #FFFFFF;
  --line: #E6DCCF;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2 {
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0 0 .35em;
}

p {
  margin: 0;
}

/* Header */
header.top {
  padding: 18px 0;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  column-gap: 14px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: .7rem;
  color: #6B5D54;
}

.nav-cta {
  background: var(--wine);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 34px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .accent {
  color: var(--wine);
}

.hero p.lede {
  font-size: 1.08rem;
  max-width: 40ch;
  margin: 16px auto 26px;
  color: #4A3E38;
}

.btn-primary {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  padding: 15px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
}

.divider-line {
  width: 64px;
  height: 3px;
  background: var(--wine);
  margin: 34px auto 0;
  border-radius: 2px;
}

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.card.wide {
  grid-column: 1 / -1;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  color: #4A3E38;
  font-size: .95rem;
  margin-bottom: 12px;
}

.card a {
  color: var(--wine);
  font-weight: 700;
  text-decoration: none;
}

/* Sections */
section {
  padding: 46px 0;
}

.kicker {
  color: var(--wine);
  font-weight: 800;
  font-size: .78rem;
  text-transform: none;
  margin-bottom: 6px;
}

/* Quote */
.quote {
  background: var(--panel);
  border-left: 4px solid var(--wine);
  border-radius: 0 14px 14px 0;
  padding: 22px 24px;
  font-size: 1.02rem;
  color: #3A2F2A;
}

/* CTA Band */
.cta-band {
  background: var(--wine);
  color: #fff;
  border-radius: 22px;
  padding: 40px 28px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #F2DADA;
  max-width: 42ch;
  margin: 10px auto 20px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--wine);
}

/* Footer */
footer {
  padding: 30px 0 40px;
  text-align: center;
  font-size: .85rem;
  color: #6B5D54;
}

footer a {
  color: var(--wine);
  font-weight: 700;
  text-decoration: none;
}

/* WhatsApp Float Button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: #1F7A5C;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  font-size: 1.5rem;
  z-index: 20;
}
/* Contact Form */
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .9rem;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(122, 46, 46, .15);
}

.contact-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-form .checkbox-group input {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-form .checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: .85rem;
  color: #4A3E38;
  line-height: 1.4;
}

.contact-form .checkbox-group a {
  color: var(--wine);
  text-decoration: underline;
}

.contact-form .form-submit {
  width: 100%;
  margin-top: 8px;
}

/* Service Page Specific */
.service-hero {
  padding: 40px 0 20px;
  text-align: center;
}

.service-hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.service-hero .kicker {
  text-align: center;
}

.service-content {
  padding: 20px 0 60px;
}

.service-section {
  margin-bottom: 40px;
}

.service-section h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-section p {
  color: #4A3E38;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.service-section ul {
  margin: 0;
  padding-left: 20px;
  color: #4A3E38;
}

.service-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.service-cta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 24px;
}

.service-cta h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.service-cta p {
  color: #4A3E38;
  margin-bottom: 20px;
}

/* Office Hours */
.office-hours {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  max-width: 480px;
  margin: 24px auto 0;
  text-align: center;
}

.office-hours .kicker {
  margin-bottom: 8px;
}

.office-hours p {
  color: #4A3E38;
  font-size: .95rem;
}

/* Responsive */
@media (min-width: 760px) {
  .hero h1 {
    font-size: 3.1rem;
  }

  .bento {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card.wide {
    grid-column: 1 / 3;
  }

  .service-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 320px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .btn-primary {
    padding: 14px 20px;
    font-size: .95rem;
  }

  .card {
    padding: 20px;
  }

  .cta-band {
    padding: 32px 20px;
    margin: 0 16px;
  }

  .contact-form {
    padding: 20px;
  }
}