/*
Theme Name:  Kind Care Dental
Theme URI:   https://www.kindcaredental.com
Author:      Kind Care Dental
Description: Custom theme for Kind Care Dental, a family dental practice in Nashua, NH.
Version:     1.1.1
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:           Proprietary
Text Domain:       kind-care-dental
*/

/* =============================================
   RESET & BASE
   ============================================= */
:root {
  --navy: #0B2545;
  --blue: #1464A5;
  --sky: #4A9FD4;
  --light: #E8F4FD;
  --mint: #D6EFE8;
  --green: #2A8C6E;
  --cream: #FAFAF8;
  --text: #1A1A2E;
  --muted: #5A6577;
  --border: #DDE4ED;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* IE11 fix */

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 9px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: #A8CFEA; }
.top-bar a:hover { color: #fff; text-decoration: none; }

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  display: block;
}
.logo-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: -6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav links — supports both hardcoded <a> links and wp_nav_menu() output */
.nav-links,
.nav-links > ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > ul > li { display: block; }

.nav-links a,
.nav-links > ul > li > a {
  padding: 18px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 2.5px solid transparent;
  display: block;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links > ul > li > a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

.nav-cta,
.nav-links > ul > li.menu-item-cta > a {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  margin-left: 12px;
  border-bottom: none !important;
  font-size: 13px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover,
.nav-links > ul > li.menu-item-cta > a:hover {
  background: var(--navy) !important;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 72px 40px 64px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,159,212,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,140,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(74,159,212,0.2);
  color: #7ECBEE;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(74,159,212,0.3);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--sky);
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--sky);
  color: #fff;
  padding: 13px 26px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #3590c8; text-decoration: none; color: #fff; }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 13px 26px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: #fff; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.hero-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 500;
}
.offer-item {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 3px solid var(--sky);
}
.offer-item:last-child { margin-bottom: 0; }
.offer-label { font-size: 11px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.offer-value { font-size: 15px; color: #fff; font-weight: 500; }

/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */
.announce {
  background: var(--light);
  border-bottom: 1px solid #C5DFF0;
  padding: 13px 40px;
  font-size: 13.5px;
  color: var(--navy);
  text-align: center;
  font-weight: 500;
}
.announce a { color: var(--blue); font-weight: 500; }

/* =============================================
   PAGE LAYOUT
   ============================================= */
.page-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) 290px;
  max-width: 100%;
}

.content { padding: 44px 40px; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 620px;
}

/* Feature cards */
.feat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 24px 0 44px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.2s;
}
.feat-card:hover { box-shadow: 0 4px 20px rgba(20,100,165,0.09); }
.feat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.feat-card h3 { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.feat-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* Legacy section */
.legacy-section {
  background: var(--navy);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
}
.legacy-section::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,159,212,0.15) 0%, transparent 70%);
}
.legacy-section .section-eyebrow { color: var(--sky); }
.legacy-section .section-title { color: #fff; font-size: 24px; margin-bottom: 12px; }
.legacy-section p { color: rgba(255,255,255,0.72); font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.awards { display: flex; gap: 10px; flex-wrap: wrap; }
.award-badge {
  background: rgba(74,159,212,0.18);
  color: #7ECBEE;
  border: 1px solid rgba(74,159,212,0.3);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 44px;
}
.svc-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.svc-item::before { content: '→'; font-size: 12px; color: var(--sky); flex-shrink: 0; }
.svc-item:hover { background: var(--light); border-color: var(--sky); text-decoration: none; }

/* Why choose us */
.why-us {
  background: var(--mint);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 0;
  border: 1px solid #b2ddd1;
}
.why-us .section-title { color: var(--navy); font-size: 24px; margin-bottom: 12px; }
.why-us p { color: #2D5246; font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.why-us a.btn-green {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
}
.why-us a.btn-green:hover { background: #226058; text-decoration: none; }

/* Sitemap page */
.sitemap-list { margin: 0 0 22px 20px; }
.sitemap-list li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 3px;
}
.sitemap-list--cols {
  -webkit-columns: 2 200px;
  -moz-columns: 2 200px;
  columns: 2 200px;
  -webkit-column-gap: 28px;
  -moz-column-gap: 28px;
  column-gap: 28px;
}
.sitemap-note {
  font-size: 13px !important;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

/* Button paired with a secondary text link */
.btn-row {
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 !important;
}
.btn-alt-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue);
}
.btn-alt-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .btn-row { -ms-flex-direction: column; flex-direction: column; align-items: flex-start; }
}

/* =============================================
   FAQ ACCORDION (Patient Info)
   ============================================= */
.faq-section { margin-top: 34px; }
.faq-list { margin-top: 18px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  display: block;
  cursor: pointer;
  padding: 15px 44px 15px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  position: relative;
  list-style: none;
  min-height: 24px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  margin-top: -12px;
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
  line-height: 24px;
}
.faq-item[open] .faq-q::after { content: '\2013'; }
.faq-q:hover { background: var(--light); }
.faq-a { padding: 0 18px 16px; }
.faq-a p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* =============================================
   EDUCATION PAGE
   ============================================= */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.edu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
}
.edu-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--mint);
  color: var(--green);
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 13px;
}
.edu-card-icon svg { width: 25px; height: 25px; }
.edu-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.edu-card-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.edu-disclaimer {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .edu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .edu-card { padding: 20px 18px; }
  .edu-card-title { font-size: 17px; }
  .faq-q { padding: 14px 40px 14px 15px; font-size: 14.5px; }
  .faq-a { padding: 0 15px 14px; }
}

/* =============================================
   SERVICE CARDS (Services page)
   ============================================= */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 44px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.svc-card:hover {
  border-color: var(--sky);
  box-shadow: 0 4px 16px rgba(11,37,69,0.07);
}
.svc-card-media {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--light);
  color: var(--blue);
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}
.svc-card-media svg { width: 28px; height: 28px; }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.svc-card-blurb {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.svc-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}
.svc-card-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .svc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .svc-card { padding: 20px 18px; }
  .svc-card-title { font-size: 17px; }
}

/* =============================================
   SPECIAL OFFERS PAGE
   ============================================= */
.offer-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 22px;
}
.offer-block-head { margin-bottom: 14px; }
.offer-badge {
  display: inline-block;
  background: var(--light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.offer-badge--alt { background: var(--mint); color: var(--green); }
.offer-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.offer-price {
  font-size: 26px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 4px;
}
.offer-price-note {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.offer-block p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.offer-includes-label {
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy) !important;
  margin: 20px 0 8px !important;
}
.offer-list { margin: 0 0 16px 20px; }
.offer-list li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.offer-list li strong { color: var(--text); font-weight: 500; }
.offer-note {
  background: var(--cream);
  border-left: 3px solid var(--sky);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  margin: 18px 0 20px !important;
}
.offer-note strong { color: var(--navy); font-weight: 500; }
.offer-block a.btn-green {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
}
.offer-block a.btn-green:hover { background: #226058; text-decoration: none; }

.offer-terms {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 10px;
}
.offer-terms h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}
.offer-terms .offer-list li {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 768px) {
  .offer-block { padding: 22px 20px; }
  .offer-block h2 { font-size: 20px; }
  .offer-price { font-size: 22px; }
}

/* =============================================
   LEGAL PAGES (Privacy Policy, Terms)
   ============================================= */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 40px 64px;
  background: var(--white);
}
.legal-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.legal-intro {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}
.legal-callout {
  background: var(--light);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 36px;
}
.legal-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin: 34px 0 12px;
  padding-top: 4px;
}
.legal-page p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-page ul {
  margin: 0 0 16px 20px;
}
.legal-page li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal-page strong { color: var(--text); font-weight: 500; }

@media (max-width: 768px) {
  .legal-page { padding: 32px 20px 48px; }
  .legal-title { font-size: 27px; }
  .legal-page h2 { font-size: 19px; }
}

/* Content typed into the WordPress page editor (reset zeroes margins) */
.page-editor-content h2 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 24px; margin: 28px 0 12px; }
.page-editor-content h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 19px; margin: 24px 0 10px; }
.page-editor-content p  { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.page-editor-content ul,
.page-editor-content ol { margin: 0 0 16px 20px; }
.page-editor-content li { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.page-editor-content img { max-width: 100%; height: auto; border-radius: 10px; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  padding: 32px 24px;
  border-left: 1px solid var(--border);
  background: var(--white);
}
.sidebar-cta {
  background: var(--navy);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  margin-bottom: 22px;
}
.sidebar-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 6px;
}
.sidebar-cta p { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-bottom: 16px; line-height: 1.6; }
.sidebar-cta .cta-btn {
  display: block;
  background: var(--sky);
  color: #fff;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.sidebar-cta .cta-btn:hover { background: #3590c8; text-decoration: none; }
.sidebar-cta .cta-btn-ghost {
  display: block;
  background: transparent;
  color: rgba(255,255,255,0.75);
  padding: 9px 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 13px;
  font-weight: 500;
}
.sidebar-cta .cta-btn-ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: #fff; }

.sb-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  font-size: 13px;
}
.sb-card strong {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.sb-card a { color: var(--blue); font-weight: 500; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hours-table td { padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.hours-table td:first-child { font-weight: 500; color: var(--text); }
.hours-table td:last-child { text-align: right; }
.hours-table tr:last-child td { border-bottom: none; }
.closed { color: #A32D2D !important; }

.sb-section { margin-bottom: 18px; }
.sb-section h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
.sb-list { list-style: none; }
.sb-list li {
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.sb-list li a { color: var(--blue); }
.sb-list li:last-child { border-bottom: none; }

.offer-sidebar {
  background: var(--light);
  border: 1px solid #B5D4F4;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  font-size: 13px;
}
.offer-sidebar strong { color: var(--navy); font-weight: 600; }
.offer-sidebar p { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 4px; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 44px 40px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
footer h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}
footer p, footer a {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  display: block;
  margin-bottom: 5px;
  line-height: 1.7;
}
footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
}
.footer-bottom a { color: rgba(255,255,255,0.38); display: inline; margin-bottom: 0; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 36px 0;
  border: none;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 56px 32px 48px; gap: 32px; }
  .hero-card { max-width: 480px; }
  .hero h1 { font-size: 40px; }
  .page-body { grid-template-columns: 1fr; }
  .sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 32px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .sidebar-cta { grid-column: 1 / -1; }
  .top-bar { padding: 9px 24px; }
  nav { padding: 0 24px; }
  .content { padding: 40px 32px; }
  .announce { padding: 13px 24px; }
  footer { padding: 40px 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
  .top-bar { padding: 8px 16px; font-size: 12px; flex-direction: column; align-items: flex-start; gap: 4px; }
  nav { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-links, .nav-links > ul {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 8px 0 16px;
    border-top: 1px solid var(--border);
    order: 3;
  }
  .nav-links.is-open, .nav-links.is-open > ul { display: flex; }
  .nav-links > ul { padding: 0; border-top: none; }
  .nav-links a,
  .nav-links > ul > li > a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    width: 100%;
    white-space: normal;
  }
  .nav-links > ul > li:last-child > a { border-bottom: none; }
  .nav-cta,
  .nav-links > ul > li.menu-item-cta > a {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center;
  }
  .announce { padding: 12px 16px; font-size: 13px; }
  .hero { padding: 48px 16px 40px; gap: 28px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 15px; max-width: 100%; }
  .hero-card { max-width: 100%; }
  .hero::before { width: 300px; height: 300px; }
  .hero::after { width: 200px; height: 200px; }
  .page-body { grid-template-columns: 1fr; }
  .content { padding: 32px 16px; }
  .section-title { font-size: 24px; }
  .feat-cards { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .legacy-section { padding: 24px 20px; margin-bottom: 32px; }
  .legacy-section .section-title { font-size: 20px; }
  .why-us { padding: 24px 20px; }
  .sidebar { padding: 28px 16px; display: block; border-top: 1px solid var(--border); }
  footer { padding: 32px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .top-bar { font-size: 11.5px; }
  .awards { gap: 8px; }
  .award-badge { font-size: 11px; }
}

/* =============================================
   INTERIOR PAGE HERO (Contact, About, etc.)
   ============================================= */
.page-hero {
  background: var(--navy);
  padding: 56px 40px 52px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,159,212,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20%;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,140,110,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 680px;
}

/* =============================================
   CONTACT MODAL
   ============================================= */
.kcd-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 16px;
}
.kcd-modal[hidden] { display: none; }

.kcd-modal-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(11, 37, 69, 0.70);
  cursor: pointer;
}

.kcd-modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}

.kcd-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.kcd-modal-close:hover { color: var(--navy); background: var(--light); }

.kcd-modal-box h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 6px;
}
.kcd-modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}
.kcd-modal-sub a { color: var(--blue); }

body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .kcd-modal-box { padding: 32px 20px 24px; }
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.kcd-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  max-width: 480px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  animation: kcdToastIn .3s ease;
}
.kcd-toast--success { background: var(--green); color: #fff; }
.kcd-toast--error   { background: #c0392b; color: #fff; }
.kcd-toast a        { color: #fff; font-weight: 600; text-decoration: underline; }

@keyframes kcdToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =============================================
   BREADCRUMBS (Yoast)
   ============================================= */
.breadcrumb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px 0;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span[aria-current="page"] {
  color: var(--muted);
}

/* =============================================
   CONTACT PAGE — MAIN LAYOUT
   ============================================= */
.contact-main-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 52px 40px;
  align-items: start;
  max-width: 1200px;
}

/* ─── Form Section ─────────────────────────── */
.contact-form-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-form-icon {
  width: 52px;
  height: 52px;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-icon { color: var(--muted); display: flex; align-items: center; }
.required { color: #C0392B; margin-left: 2px; }

.form-control {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(74,159,212,0.15);
  background: var(--white);
}
.form-control::placeholder { color: #A0AAB5; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6577' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea.form-control { resize: vertical; min-height: 130px; }

.form-group--check {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.form-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}
.form-check-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-submit {
  font-family: 'DM Sans', sans-serif;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.btn-submit:hover { background: var(--navy); }

.form-privacy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.form-privacy a { color: var(--blue); }

/* Form notices */
.form-notice {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.form-notice--success { background: #E8F8F0; border: 1px solid #A8DFC0; color: #1A6640; }
.form-notice--error   { background: #FEF0EF; border: 1px solid #F5BAB7; color: #8B1A16; }
.form-notice a { color: inherit; font-weight: 500; text-decoration: underline; }

/* ─── Contact Info Panel ───────────────────── */
.contact-info-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.ci-panel-header {
  background: var(--navy);
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
}
.ci-panel-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,159,212,0.2) 0%, transparent 70%);
}
.ci-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  position: relative;
  z-index: 1;
  margin: 0;
}

.ci-info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
}
.ci-info-block--hours { align-items: flex-start; }
.ci-info-block:last-of-type { border-bottom: none; }

.ci-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ci-info-body { flex: 1; }
.ci-info-body strong {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 600;
}

.ci-info-body address {
  font-style: normal;
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 6px;
}

.ci-action-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}
.ci-action-link:hover { text-decoration: underline; }

.ci-phone-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.ci-phone-link:hover { color: var(--blue); text-decoration: none; }

.ci-info-body .hours-table { margin-top: 2px; }
.ci-info-body .hours-table td { font-size: 12.5px; padding: 4px 0; }

.ci-social {
  display: flex;
  gap: 8px;
  padding: 16px 26px 20px;
}
.ci-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ci-social-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  text-decoration: none;
}

/* ─── Three-Column CTA Strip ───────────────── */
.contact-cta-strip {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  overflow: hidden;
}
.contact-cta-strip::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,159,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip-col {
  padding: 44px 36px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.cta-strip-col:last-child { border-right: none; }

.cta-strip-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(74,159,212,0.15);
  border: 1px solid rgba(74,159,212,0.25);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.cta-strip-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}
.cta-strip-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 44px;
}

.cta-strip-phone {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.cta-strip-phone:hover { color: #fff; text-decoration: none; }

.cta-strip-btn {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.cta-strip-btn:hover {
  background: var(--sky);
  border-color: var(--sky);
  text-decoration: none;
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .contact-main-wrap { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .contact-info-panel { position: static; }
  .page-hero { padding: 44px 32px; }
  .page-hero h1 { font-size: 32px; }
  .contact-cta-strip { grid-template-columns: 1fr 1fr; }
  .cta-strip-col:nth-child(2) { border-right: none; }
  .cta-strip-col:nth-child(3) {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 768px) {
  .contact-main-wrap { padding: 32px 16px; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 18px; }
  .form-submit-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-form-header { flex-direction: column; gap: 10px; }
  .page-hero { padding: 36px 16px 32px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero-desc { font-size: 14px; }
  .contact-cta-strip { grid-template-columns: 1fr; }
  .cta-strip-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 32px 24px; }
  .cta-strip-col:last-child { border-bottom: none; }
  .cta-strip-col:nth-child(3) { grid-column: auto; border-top: none; }
  .ci-info-block { padding: 16px 20px; }
  .ci-panel-header { padding: 18px 20px; }
  .ci-social { padding: 14px 20px 18px; }
}
