/* Opensky Podiatry — site styles
   Brand tokens come from the original WordPress/Elementor kit. */

:root {
  --navy: #253452;        /* headings */
  --brand: #2727B5;       /* logo blue */
  --blue: #225DCF;        /* buttons, links */
  --blue-dark: #1a4bb0;
  --cyan: #38C7F6;
  --green: #2AC688;       /* secondary CTA */
  --green-dark: #22a873;
  --sky: #EFF6FE;         /* tinted section background */
  --line: #E7EBF0;
  --text: #4a5260;        /* body copy (darker than the original #6F747E for readability) */
  --muted: #6F747E;
  --white: #fff;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(37, 52, 82, .25);
  --shadow-sm: 0 2px 10px rgba(37, 52, 82, .08);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section.tint { background: var(--sky); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px; border: 2px solid transparent;
  font: 500 .95rem/1 var(--font); cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #1f1f95; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--blue); }
.btn-outline { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(37, 52, 82, .1); }
.header-top { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 76px; width: auto; transition: height .2s; }
.site-header.scrolled .logo img { height: 54px; }
.header-info { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.info-item { display: flex; align-items: center; gap: 12px; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.info-item:hover { text-decoration: none; }
.info-item strong { display: block; color: var(--navy); font-weight: 500; font-size: .9rem; }
.info-icon { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--brand); flex: none; }
.info-icon svg { width: 18px; height: 18px; }
.header-nav { border-top: 1px solid var(--line); }
.header-nav .container { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 14px 14px; color: var(--navy); font-size: .95rem; font-weight: 500; border-bottom: 2px solid transparent; }
.nav-list a:hover { color: var(--blue); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.social { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.social a { color: var(--brand); display: grid; }
.social svg { width: 18px; height: 18px; }
.menu-toggle, .header-call { display: none; }

@media (max-width: 1080px) {
  .header-info .info-item.loc { display: none; }
}
@media (max-width: 860px) {
  .header-top { gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .logo img, .site-header.scrolled .logo img { height: 52px; }
  .header-info { display: none; }
  .header-call { display: inline-flex; margin-left: auto; padding: 10px 14px; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line);
    background: #fff; border-radius: 8px; color: var(--navy); cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .header-nav { display: none; }
  .header-nav.open { display: block; }
  .header-nav .container { flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--line); }
  .social { margin: 16px 0 0; }
  .header-nav .btn { margin-top: 14px; justify-content: center; }
}
@media (min-width: 861px) { .nav-book { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--blue); }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; opacity: 0; animation: heroFade 24s infinite; }
.hero-slides img:nth-child(1) { animation-delay: 0s; }
.hero-slides img:nth-child(2) { animation-delay: 8s; }
.hero-slides img:nth-child(3) { animation-delay: 16s; }
@keyframes heroFade { 0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { animation: none; }
  .hero-slides img:first-child { opacity: 1; }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(34, 93, 207, .9) 0%, rgba(34, 93, 207, .62) 42%, rgba(56, 199, 246, .35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px 24px 190px; }
.hero h1 { color: #fff; max-width: 620px; font-weight: 500; }
.hero p { font-size: 1.15rem; max-width: 540px; opacity: .95; margin-bottom: 30px; }

/* Feature cards overlapping the hero */
.feature-cards { position: relative; z-index: 2; margin-top: -120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 24px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.feature-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--sky); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { font-size: .95rem; color: var(--muted); flex: 1; }
.feature-card .btn { padding: 11px 22px; font-size: .9rem; }
.feature-card.why { background: linear-gradient(160deg, var(--blue), var(--cyan)); color: #fff; }
.feature-card.why h3 { color: #fff; }
.feature-card.why p { color: rgba(255, 255, 255, .9); }
.call-box { background: #fff; border-radius: 8px; padding: 12px 20px; width: 100%; color: var(--navy); }
.call-box:hover { text-decoration: none; color: var(--blue); }
.call-box small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.call-box strong { font-size: 1.45rem; font-weight: 500; }
@media (max-width: 1000px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .hero-inner { padding: 64px 20px 130px; }
  .feature-cards { grid-template-columns: 1fr; gap: 14px; margin-top: -90px; }
  .feature-card:not(.why) {
    display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; text-align: left; align-items: center; padding: 18px;
  }
  .feature-card:not(.why) img { width: 64px; height: 64px; margin: 0; grid-row: span 3; box-shadow: 0 0 0 4px var(--sky); }
  .feature-card:not(.why) h3 { margin: 0 0 2px; font-size: 1.08rem; }
  .feature-card:not(.why) p { margin: 0 0 8px; font-size: .9rem; }
  .feature-card:not(.why) .btn { justify-self: start; padding: 0; background: none; color: var(--blue); box-shadow: none; transform: none; }
  .feature-card:not(.why) .btn::after { content: " \2192"; }
}

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.portrait { max-width: 420px; margin-left: auto; position: relative; }
.portrait::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius); background: var(--sky); z-index: -1; }
.stat-row { display: flex; gap: 36px; margin: 8px 0 28px; }
.stat strong { display: block; font-size: 2rem; font-weight: 500; color: var(--brand); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .portrait { margin: 0 auto; }
}

/* ---------- Value cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.value-card div { padding: 26px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Insurance ---------- */
.insurance { text-align: center; }
.insurance h2 { margin-bottom: 6px; }
.insurance .sub { color: var(--muted); margin-bottom: 36px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 40px; }
.logo-row img { width: 160px; height: 64px; object-fit: contain; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; margin: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; }
.review-head cite { font-style: normal; font-weight: 600; color: var(--navy); display: block; font-size: .95rem; }
.review-head small { color: var(--muted); font-size: .8rem; }
.review-head .g { margin-left: auto; width: 20px; height: 20px; }
.stars { color: #F6BB06; letter-spacing: 2px; font-size: 1rem; margin-bottom: 8px; }
.review p { font-size: .93rem; margin: 0; }
@media (max-width: 1000px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Booking / contact band ---------- */
.booking { background: linear-gradient(180deg, #E3F8FF 0%, var(--sky) 100%); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; }
.location h3 { font-size: 1.1rem; margin-bottom: 8px; }
.location a { color: var(--text); display: flex; gap: 10px; font-size: .95rem; }
.location a:hover { color: var(--blue); }
.location svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 4px; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; min-height: 640px; }
.form-card iframe { display: block; min-height: 620px; }
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) { .locations { grid-template-columns: 1fr; } }

/* CTA band (end of inner pages) */
.cta-band { background: linear-gradient(105deg, var(--blue), var(--cyan)); color: #fff; padding: 64px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .92; max-width: 560px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(105deg, rgba(34, 93, 207, .95), rgba(56, 199, 246, .8)), url(/assets/img/hero-3.webp) center / cover; color: #fff; padding: 72px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: 10px 0 0; font-size: 1.1rem; opacity: .92; max-width: 640px; }
.breadcrumb { font-size: .85rem; margin-bottom: 10px; opacity: .85; }
.breadcrumb a { color: #fff; }

/* ---------- Services ---------- */
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px; }
.service-nav a { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: .92rem; background: #fff; }
.service-nav a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.service { scroll-margin-top: 140px; }
.service + .service { margin-top: 88px; }
.service ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.service li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.service .lede { color: var(--muted); }

/* ---------- Team ---------- */
.team-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 380px; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.creds li { background: var(--sky); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 500; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.map-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-card iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-card div { padding: 20px 24px; }
.map-card h3 { margin-bottom: 4px; font-size: 1.15rem; }
.map-card p { margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .map-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #d5deea; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 500; color: var(--navy); font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 24px 20px; }
.faq .answer ul { margin: 0 0 1em; padding-left: 1.2em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .info-icon { margin-top: 2px; }
.contact-list strong { display: block; color: var(--navy); font-weight: 500; }
.hours-note { background: var(--sky); border-left: 4px solid var(--green); padding: 14px 18px; border-radius: 6px; font-size: .95rem; }

/* ---------- Booking calendars ---------- */
.calendars { display: grid; gap: 32px; }
.calendar-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.calendar-card iframe { min-height: 700px; display: block; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); color: var(--text); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.post-card img, .card-img-fallback { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-img-fallback { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.post-card-body { padding: 22px 24px 26px; }
.post-card time { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post-card h2 { font-size: 1.18rem; margin: 6px 0 10px; line-height: 1.35; }
.post-card p { font-size: .93rem; margin: 0; color: var(--muted); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* Articles */
.article-head { background: var(--sky); padding: 56px 0 40px; }
.article-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.article-head .eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.article-head .meta { color: var(--muted); margin: 0; font-size: .95rem; }
.prose { padding-top: 40px; padding-bottom: 72px; }
.prose .article-hero { width: 100%; border-radius: var(--radius); margin-bottom: 36px; aspect-ratio: 16 / 9; object-fit: cover; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--sky); color: var(--navy); }
.prose blockquote { border-left: 4px solid var(--blue); margin: 1.5em 0; padding: .4em 0 .4em 1.2em; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr 1.1fr; gap: 40px; }
.site-footer h2 { font-size: 1.05rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a { color: var(--text); display: flex; gap: 10px; }
.site-footer li a:hover { color: var(--blue); }
.site-footer li svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 4px; }
.footer-logo img { width: 170px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* Mobile sticky call/book bar */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; box-shadow: 0 -4px 20px rgba(37, 52, 82, .12);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-weight: 500; color: var(--navy); }
  .mobile-bar a + a { background: var(--blue); color: #fff; }
  .mobile-bar a:hover { text-decoration: none; }
  .mobile-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: 54px; }
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
