/* =====================================================
   Comfora — Senior Care & Nursing
   Design system + component styles
   ===================================================== */

:root {
  /* Brand palette */
  --teal:        #159c94;
  --teal-dark:   #0e756f;
  --teal-deep:   #0b3d3a;
  --teal-soft:   #e6f5f3;
  --teal-soft-2: #f2faf9;
  --coral:       #ff7a59;
  --coral-dark:  #f2603c;
  --gold:        #f9b234;
  --ink:         #10302e;   /* headings */
  --body:        #5c716f;   /* paragraph text */
  --muted:       #8a9c9a;
  --white:       #ffffff;
  --line:        #e6efee;

  --shadow-sm: 0 8px 24px rgba(16, 48, 46, .06);
  --shadow-md: 0 18px 44px rgba(16, 48, 46, .10);
  --shadow-lg: 0 30px 70px rgba(16, 48, 46, .14);

  --radius:    18px;
  --radius-lg: 28px;
  --container:  1200px;

  --f-head: "Poppins", sans-serif;
  --f-body: "Nunito Sans", sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--teal-deep); }
body {
  font-family: var(--f-body);
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; transition: color .25s ease; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
section { position: relative; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section  { padding: 110px 0; }
.section-sm { padding: 80px 0; }
.text-center { text-align: center; }
.grid { display: grid; gap: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: 40px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 26px rgba(21,156,148,.32); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 12px 26px rgba(255,122,89,.34); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-white { background: #fff; color: var(--teal-dark); }
.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-head); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: 13px; color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; }
.section-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.5px; }
.section-title span { color: var(--teal); }
.section-lead { max-width: 620px; margin: 18px auto 0; }
.head-block { max-width: 640px; }
.head-block.center { margin: 0 auto; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--teal-deep); color: #cfe7e4; font-size: 14px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 26px; }
.topbar-left li { display: flex; align-items: center; gap: 8px; }
.topbar-left svg { width: 15px; height: 15px; color: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); }
.topbar-social svg { width: 13px; height: 13px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header { position: sticky; top: 0; z-index: 95; background: #fff; box-shadow: 0 4px 30px rgba(16,48,46,.06); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; }
.brand-name { font-family: var(--f-head); font-weight: 800; font-size: 26px; color: var(--ink); line-height: 1; }
.brand-name span { color: var(--teal); }
.brand-name small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > li > a {
  font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 30px 0; position: relative; display: inline-block; white-space: nowrap;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--teal); }
.nav > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 24px; width: 0; height: 2px;
  background: var(--teal); border-radius: 2px; transition: width .25s ease;
}
.nav > li > a:hover::after, .nav > li.active > a::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 12px; }
.header-phone .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.header-phone .ico svg { width: 20px; height: 20px; }
.header-phone small { display: block; font-size: 12px; color: var(--muted); }
.header-phone b { font-family: var(--f-head); color: var(--ink); font-size: 15px; white-space: nowrap; }

.nav-toggle { display: none; background: var(--teal); color: #fff; border: none; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--teal-soft-2) 0%, #eaf6f4 100%);
  padding: 70px 0 150px; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 50px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--teal-dark);
  padding: 8px 18px 8px 8px; border-radius: 40px; font-family: var(--f-head); font-weight: 600;
  font-size: 14px; box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-eyebrow i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; }
.hero-eyebrow i svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -1.5px; }
.hero h1 span { color: var(--teal); position: relative; }
.hero h1 span::after {
  content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 12px;
  background: rgba(249,178,52,.35); z-index: -1; border-radius: 6px;
}
.hero p.lead { font-size: 19px; margin: 24px 0 34px; max-width: 540px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-play { display: flex; align-items: center; gap: 14px; font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.hero-play .pbtn {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--teal);
  display: grid; place-items: center; box-shadow: var(--shadow-md); position: relative;
}
.hero-play .pbtn svg { width: 20px; height: 20px; margin-left: 2px; }
.hero-play .pbtn::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--teal);
  opacity: .4; animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.4); opacity: 0; } }

.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 42px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; margin-left: -14px; box-shadow: var(--shadow-sm); }
.hero-trust .avatars img:first-child { margin-left: 0; }
.hero-trust b { font-family: var(--f-head); color: var(--ink); }
.hero-trust .stars { color: var(--gold); font-size: 14px; }

.hero-visual { position: relative; }
.hero-visual .main-img { position: relative; z-index: 2; }
.hero-blob { position: absolute; inset: 0; z-index: 1; }
.hero-badge {
  position: absolute; z-index: 3; background: #fff; border-radius: 18px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.hero-badge .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.hero-badge b { font-family: var(--f-head); font-size: 22px; color: var(--ink); display: block; line-height: 1; }
.hero-badge small { color: var(--muted); font-size: 13px; }
.hero-badge.b1 { top: 16%; left: -20px; animation: float 4s ease-in-out infinite; }
.hero-badge.b1 .ic { background: var(--coral); }
.hero-badge.b2 { bottom: 12%; right: -10px; animation: float 4s ease-in-out infinite 1.6s; }
.hero-badge.b2 .ic { background: var(--teal); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-visual .main-img { animation: floatSlow 7s ease-in-out infinite; }
@keyframes floatSlow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-badge.b1, .hero-badge.b2, .hero-visual .main-img, .exp-badge { animation: none !important; }
}

/* ============================================================
   FEATURE CARDS (overlap hero)
   ============================================================ */
.features { margin-top: -80px; z-index: 5; }
.features .grid { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 38px 32px; box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.feature-card::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--teal-soft); z-index: 0; transition: transform .35s ease;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.feature-card:hover::after { transform: scale(3); }
.feature-card > * { position: relative; z-index: 1; }
.feature-card .ic { width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 22px; }
.feature-card .ic svg { width: 32px; height: 32px; }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { font-size: 15.5px; }
.feature-card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-family: var(--f-head); font-weight: 600; color: var(--teal); font-size: 14px; }
.feature-card .more svg { width: 16px; height: 16px; transition: transform .25s ease; }
.feature-card:hover .more svg { transform: translateX(5px); }
.feature-card:nth-child(1) .ic { background: var(--teal); }
.feature-card:nth-child(2) .ic { background: var(--coral); }
.feature-card:nth-child(3) .ic { background: var(--gold); }

/* ============================================================
   ABOUT
   ============================================================ */
.about .container { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 64px; }
.about-visual { position: relative; }
.about-visual .img-main { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.about-visual .img-sub {
  position: absolute; right: -18px; bottom: -34px; width: 45%; border-radius: 20px;
  border: 8px solid #fff; box-shadow: var(--shadow-md); overflow: hidden;
}
.exp-badge {
  position: absolute; top: 28px; left: -26px; background: var(--coral); color: #fff;
  border-radius: 20px; padding: 22px 26px; text-align: center; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.exp-badge b { font-family: var(--f-head); font-size: 40px; line-height: 1; display: block; }
.exp-badge span { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.about-list { display: grid; gap: 16px; margin: 28px 0 34px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-top: 3px; }
.about-list .tick svg { width: 15px; height: 15px; }
.about-list b { font-family: var(--f-head); color: var(--ink); display: block; }
.about-sign { display: flex; align-items: center; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.about-founder { display: flex; align-items: center; gap: 14px; }
.about-founder img { width: 58px; height: 58px; border-radius: 50%; }
.about-founder b { font-family: var(--f-head); color: var(--ink); display: block; }
.about-founder small { color: var(--muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--teal-soft-2); }
.services .grid { grid-template-columns: repeat(3, 1fr); margin-top: 54px; }
.service-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px 34px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; position: relative;
  border-bottom: 4px solid transparent;
  display: flex; flex-direction: column; align-items: center;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-bottom-color: var(--teal); }
.service-card .ic {
  width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); transition: background .3s ease, color .3s ease;
}
.service-card .ic svg { width: 44px; height: 44px; }
.service-card:hover .ic { background: var(--teal); color: #fff; }
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { font-size: 15.5px; margin-bottom: 18px; }
.service-card p { margin-bottom: 0; }
.service-card .more { font-family: var(--f-head); font-weight: 600; color: var(--teal); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 18px; }
.service-card .more svg { width: 16px; height: 16px; transition: transform .25s ease; }
.service-card:hover .more svg { transform: translateX(5px); }

/* ============================================================
   STATS / COUNTER
   ============================================================ */
.stats {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal-deep));
  color: #fff; position: relative; overflow: hidden;
}
.stats::before, .stats::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.05);
}
.stats::before { width: 320px; height: 320px; top: -120px; right: -80px; }
.stats::after { width: 240px; height: 240px; bottom: -120px; left: -60px; }
.stats .grid { grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.stat { text-align: center; }
.stat .ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--gold); }
.stat .ic svg { width: 30px; height: 30px; }
.stat b { font-family: var(--f-head); font-size: 48px; color: #fff; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: #bfe0dd; font-weight: 600; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { padding: 70px 0; }
.cta-inner {
  background: var(--coral); border-radius: var(--radius-lg); padding: 48px 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); position: relative; z-index: 1; }
.cta-inner p { color: rgba(255,255,255,.9); position: relative; z-index: 1; margin-top: 6px; }
.cta-phone { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.cta-phone .ic { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.cta-phone .ic svg { width: 28px; height: 28px; }
.cta-phone small { color: rgba(255,255,255,.85); }
.cta-phone b { font-family: var(--f-head); font-size: 26px; display: block; line-height: 1.2; }

/* ============================================================
   TEAM
   ============================================================ */
.team .grid { grid-template-columns: repeat(4, 1fr); margin-top: 54px; }
.team-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-photo { position: relative; background: var(--teal-soft); overflow: hidden; }
.team-photo img { width: 100%; }
.team-social {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 140%); display: flex; gap: 10px;
  transition: transform .35s ease;
}
.team-card:hover .team-social { transform: translate(-50%, 0); }
.team-social a { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.team-social a:hover { background: var(--teal); color: #fff; }
.team-social svg { width: 16px; height: 16px; }
.team-info { padding: 22px; text-align: center; }
.team-info h3 { font-size: 20px; }
.team-info span { color: var(--teal); font-weight: 600; font-size: 14px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { background: var(--teal-soft-2); overflow: hidden; }
.testi-track { display: flex; gap: 30px; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.testi-card {
  background: #fff; border-radius: var(--radius-lg); padding: 38px 36px; box-shadow: var(--shadow-sm);
  flex: 0 0 calc((100% - 60px) / 3); position: relative;
}
.testi-card .quote { position: absolute; top: 30px; right: 34px; color: var(--teal-soft); }
.testi-card .quote svg { width: 56px; height: 56px; }
.testi-stars { color: var(--gold); margin-bottom: 16px; letter-spacing: 2px; }
.testi-card p { font-size: 16.5px; color: var(--ink); position: relative; z-index: 1; }
.testi-person { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.testi-person img { width: 56px; height: 56px; border-radius: 50%; }
.testi-person b { font-family: var(--f-head); color: var(--ink); display: block; }
.testi-person small { color: var(--muted); }
.testi-nav { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.testi-dot { width: 12px; height: 12px; border-radius: 50%; background: #cfe0de; border: none; cursor: pointer; transition: all .25s ease; }
.testi-dot.active { background: var(--teal); width: 34px; border-radius: 6px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing .grid { grid-template-columns: repeat(3, 1fr); margin-top: 54px; align-items: stretch; }
.price-card {
  background: #fff; border-radius: var(--radius-lg); padding: 42px 36px; box-shadow: var(--shadow-sm);
  border: 2px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; position: relative;
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--teal); box-shadow: var(--shadow-md); }
.price-tag { position: absolute; top: 22px; right: 22px; background: var(--coral); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 12px; padding: 6px 14px; border-radius: 30px; }
.price-card .plan-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.price-card .plan-ic svg { width: 30px; height: 30px; }
.price-card h3 { font-size: 22px; }
.price-card .price { font-family: var(--f-head); font-weight: 800; color: var(--ink); font-size: 46px; margin: 14px 0 6px; }
.price-card .price sup { font-size: 22px; top: -14px; color: var(--teal); }
.price-card .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-list { display: grid; gap: 12px; margin: 24px 0 30px; }
.price-list li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.price-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.price-list .tick svg { width: 13px; height: 13px; }
.price-list li.off { color: var(--muted); }
.price-list li.off .tick { background: #f0f2f2; color: #b7c2c1; }
.price-card .btn { margin-top: auto; width: 100%; justify-content: center; }

/* ============================================================
   BLOG
   ============================================================ */
.blog .grid { grid-template-columns: repeat(3, 1fr); margin-top: 54px; }
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.blog-body { display: flex; flex-direction: column; flex: 1; }
.blog-body .more { margin-top: auto; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-thumb { position: relative; overflow: hidden; }
.blog-thumb img { width: 100%; transition: transform .5s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-date { position: absolute; left: 18px; top: 18px; background: var(--teal); color: #fff; border-radius: 14px; padding: 10px 14px; text-align: center; font-family: var(--f-head); line-height: 1; }
.blog-date b { font-size: 22px; }
.blog-date span { font-size: 12px; display: block; margin-top: 3px; }
.blog-body { padding: 28px 28px 32px; }
.blog-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.blog-meta span { display: flex; align-items: center; gap: 6px; }
.blog-meta svg { width: 14px; height: 14px; color: var(--teal); }
.blog-body h3 { font-size: 20px; line-height: 1.35; margin-bottom: 14px; }
.blog-body h3 a:hover { color: var(--teal); }
.blog-body .more { font-family: var(--f-head); font-weight: 600; color: var(--teal); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.blog-body .more svg { width: 16px; height: 16px; transition: transform .25s ease; }
.blog-card:hover .more svg { transform: translateX(5px); }

/* ============================================================
   APPOINTMENT
   ============================================================ */
.appointment { background: var(--teal-soft-2); }
.appointment .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.appt-form { background: #fff; border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); }
.appt-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 13px 16px;
  font-family: var(--f-body); font-size: 15px; color: var(--ink); background: #fbfdfd; transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 96px; }
.appt-visual .img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.appt-points { display: grid; gap: 20px; margin-top: 30px; }
.appt-points li { display: flex; gap: 16px; align-items: flex-start; }
.appt-points .ic { flex: none; width: 52px; height: 52px; border-radius: 15px; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.appt-points .ic svg { width: 26px; height: 26px; }
.appt-points b { font-family: var(--f-head); color: var(--ink); display: block; font-size: 17px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--teal-deep); color: #a7c7c4; padding-top: 90px; }
.footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
.footer h4 { color: #fff; font-size: 19px; margin-bottom: 24px; position: relative; padding-bottom: 14px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--coral); border-radius: 3px; }
.footer .brand-name { color: #fff; }
.footer .brand-name span { color: var(--teal); }
.footer-about p { margin: 20px 0 24px; font-size: 15px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer-social a:hover { background: var(--teal); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.f-links li { margin-bottom: 13px; }
.f-links a { font-size: 15px; display: inline-flex; align-items: center; gap: 9px; }
.f-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.f-links a:hover { color: #fff; padding-left: 4px; }
.f-contact li { display: flex; gap: 12px; margin-bottom: 18px; font-size: 15px; }
.f-contact svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.f-news p { font-size: 15px; margin-bottom: 18px; }
.f-news form { position: relative; }
.f-news input { width: 100%; border: none; border-radius: 40px; padding: 15px 60px 15px 20px; font-family: var(--f-body); background: rgba(255,255,255,.1); color: #fff; }
.f-news input::placeholder { color: #8fb0ad; }
.f-news button { position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--coral); color: #fff; cursor: pointer; display: grid; place-items: center; }
.f-news button svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .fb-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Back to top + reveal animations
   ============================================================ */
.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--teal); color: #fff; border: none; display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease; z-index: 80;
  box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .header-phone { display: none; }
  .nav { gap: 22px; }
}
@media (max-width: 1080px) {
  .team .grid { grid-template-columns: repeat(2, 1fr); }
  .footer .f-grid { grid-template-columns: 1fr 1fr; }
  .testi-card { flex-basis: calc((100% - 30px) / 2); }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .nav, .header-phone { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .hero .container, .about .container, .appointment .container { grid-template-columns: 1fr; }
  .hero { padding-bottom: 120px; text-align: center; }
  .hero-actions, .hero-trust, .hero-eyebrow { justify-content: center; }
  .hero-trust { display: inline-flex; }
  .hero-visual { width: 100%; max-width: 480px; margin: 20px auto 0; }
  .features .grid, .services .grid, .pricing .grid, .blog .grid { grid-template-columns: 1fr; }
  .about-visual { width: 100%; max-width: 480px; margin: 0 auto 40px; }

  /* Mobile nav panel */
  .nav.open {
    display: flex; position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px; box-shadow: var(--shadow-md);
    overflow-y: auto; z-index: 90;
  }
  .nav.open > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.open > li > a::after { display: none; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .stats .grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .team .grid { grid-template-columns: 1fr; }
  .testi-card { flex-basis: 100%; }
  .footer .f-grid { grid-template-columns: 1fr; }
  .appt-form { padding: 28px; }
  .appt-form .row { grid-template-columns: 1fr; }
  .cta-inner { padding: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 28px 0 32px; gap: 14px; }
  .to-top { right: 18px; bottom: 90px; width: 44px; height: 44px; }
  .to-top svg { width: 20px; height: 20px; }
}
@media (max-width: 480px) {
  .header-cta .btn-primary { display: none; }
}
