/*
Theme Name: AIM Integrative Healthcare
Theme URI: https://aihtucson.com
Author: AIM Integrative Healthcare
Description: Custom responsive WordPress theme for AIM Integrative Healthcare in Tucson, Arizona.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: aim-clinic
*/

:root {
  --aim-navy: #15334b;
  --aim-blue: #2f6f8f;
  --aim-teal: #4f9b95;
  --aim-sky: #eaf4f7;
  --aim-cream: #f7f8f6;
  --aim-text: #24313a;
  --aim-muted: #687780;
  --aim-white: #ffffff;
  --aim-border: #dce5e9;
  --aim-shadow: 0 16px 40px rgba(21,51,75,.10);
  --aim-radius: 18px;
  --aim-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; color:var(--aim-text); background:#fff; line-height:1.6; }
a { color:var(--aim-blue); text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; height:auto; }
.container { width:min(92%, var(--aim-max)); margin-inline:auto; }
.site-header { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.96); border-bottom:1px solid var(--aim-border); backdrop-filter: blur(10px); }
.header-inner { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:14px; min-width:330px; text-decoration:none!important; }
.custom-logo, .brand-logo { max-height:58px; width:auto; display:block; }
.brand-mark { display:flex; align-items:center; flex:0 0 auto; }
.brand-text { display:flex; flex-direction:column; line-height:1.05; }
.brand-text strong { color:var(--aim-navy); font-size:1.12rem; letter-spacing:.005em; font-weight:800; white-space:nowrap; }
.brand-text span { color:var(--aim-muted); font-size:.78rem; margin-top:5px; }
.menu-toggle { display:none; background:none; border:0; font-size:1.4rem; color:var(--aim-navy); }
.primary-menu { display:flex; align-items:center; gap:22px; list-style:none; margin:0; padding:0; }
.primary-menu a { color:var(--aim-navy); font-weight:600; font-size:.95rem; }
.header-cta { background:var(--aim-navy); color:white!important; padding:11px 16px; border-radius:999px; }
.hero {
  background:
    linear-gradient(90deg, rgba(247,251,252,.97) 0%, rgba(247,251,252,.91) 34%, rgba(247,251,252,.72) 62%, rgba(247,251,252,.55) 100%),
    url("assets/images/hero-sonoran-desert.png") center center / cover no-repeat;
  padding:86px 0 70px;
  overflow:hidden;
  position:relative;
}
.hero-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:58px; align-items:center; }
.kicker { color:var(--aim-teal); font-weight:800; text-transform:uppercase; letter-spacing:.12em; font-size:.78rem; }
h1,h2,h3 { color:var(--aim-navy); line-height:1.15; margin-top:0; }
h1 { font-size:clamp(2.5rem,5vw,4.6rem); letter-spacing:-.04em; margin-bottom:22px; }
h2 { font-size:clamp(2rem,3.4vw,3rem); letter-spacing:-.025em; }
.hero p { font-size:1.14rem; max-width:720px; color:#4d616d; }
.button-row { display:flex; gap:12px; flex-wrap:wrap; margin-top:30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 21px; border-radius:999px; font-weight:700; border:1px solid transparent; text-decoration:none!important; }
.btn-primary { background:var(--aim-navy); color:white; }
.btn-secondary { background:white; color:var(--aim-navy); border-color:var(--aim-border); }
.hero-card { background:rgba(255,255,255,.94); backdrop-filter:blur(2px); border:1px solid rgba(21,51,75,.08); border-radius:28px; box-shadow:var(--aim-shadow); padding:30px; }
.hero-card h3 { font-size:1.35rem; margin-bottom:12px; }
.quick-list { list-style:none; padding:0; margin:20px 0 0; }
.quick-list li { padding:11px 0; border-top:1px solid var(--aim-border); display:flex; justify-content:space-between; gap:18px; }
.section { padding:78px 0; }
.section.alt { background:var(--aim-cream); }
.section-head { max-width:760px; margin-bottom:38px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.card { background:white; border:1px solid var(--aim-border); border-radius:var(--aim-radius); padding:26px; box-shadow:0 8px 24px rgba(21,51,75,.05); }
.card h3 { margin-bottom:10px; }
.icon-dot { width:44px; height:44px; border-radius:14px; background:var(--aim-sky); display:grid; place-items:center; color:var(--aim-blue); font-weight:800; margin-bottom:18px; }
.doctor-card { padding:0; overflow:hidden; }
.doctor-photo { aspect-ratio: 4/3; background:linear-gradient(135deg,#e8f2f4,#d7e5e7); display:grid; place-items:center; color:var(--aim-muted); font-weight:700; }
.doctor-body { padding:24px; }
.doctor-role { color:var(--aim-teal); font-weight:700; font-size:.9rem; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:42px; align-items:center; }
.feature-panel { background:var(--aim-navy); color:white; border-radius:24px; padding:36px; }
.feature-panel h2,.feature-panel h3 { color:white; }
.feature-panel a { color:white; }
.info-strip { background:var(--aim-navy); color:white; padding:20px 0; }
.info-strip .container { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.info-strip a { color:white; }
.site-footer { background:#102a3d; color:#dce6eb; padding:55px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.25fr .75fr .75fr; gap:38px; }
.site-footer h3 { color:white; }
.site-footer a { color:#e9f4f6; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.13); margin-top:36px; padding-top:20px; font-size:.86rem; color:#aebec7; }
.page-hero { background:var(--aim-sky); padding:58px 0; }
.content-wrap { padding:58px 0 80px; }
.entry-content { max-width:860px; }
.entry-content h2 { margin-top:1.8em; }
.notice { background:#fff7e7; border-left:4px solid #d29a2e; padding:16px 18px; border-radius:8px; }
@media (max-width: 900px) {
  .hero-grid,.split,.grid-3,.footer-grid { grid-template-columns:1fr; }
  .menu-toggle { display:block; }
  .primary-menu { display:none; position:absolute; left:0; right:0; top:82px; background:white; padding:20px 4%; border-bottom:1px solid var(--aim-border); flex-direction:column; align-items:flex-start; }
  .primary-menu.open { display:flex; }
  .header-inner { min-height:72px; }
  .brand { min-width:0; gap:10px; }
  .brand-text strong { font-size:.94rem; white-space:normal; line-height:1.08; }
  .brand-text span { display:none; }
}

/* Physician profiles */
.physician-grid { align-items:stretch; }
.doctor-card { display:flex; flex-direction:column; }
.doctor-photo { width:100%; height:auto; aspect-ratio:auto; object-fit:contain; object-position:center; display:block; background:#eef7fd; }
.doctor-body { flex:1; }
.doctor-body p { font-size:.96rem; line-height:1.65; }
.doctor-role { margin-bottom:6px; }


/* AIM built-in logo */
.brand-logo { max-width:260px; }
.footer-logo { width:min(250px, 100%); height:auto; display:block; margin-bottom:18px; background:#fff; border-radius:10px; padding:8px; }
@media (max-width: 900px) {
  .brand-logo, .custom-logo { max-height:50px; max-width:150px; }
}

/* Interior clinic pages */
.page-hero-branded {
  background: linear-gradient(135deg, #f7fbff 0%, #eaf5fd 65%, #fff7eb 100%);
  border-bottom: 1px solid var(--aim-border);
}
.page-hero-branded h1 { max-width: 850px; margin-bottom: 18px; }
.page-lead { max-width: 820px; color: #526a79; font-size: 1.12rem; }
.page-hero-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:50px; align-items:center; }
.page-icon-panel { display:grid; gap:12px; }
.page-icon-panel span { background:#fff; border:1px solid #dbeaf3; border-radius:16px; padding:18px 22px; color:var(--aim-navy); font-weight:800; box-shadow:0 8px 28px rgba(39,91,128,.08); }

.service-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.service-card { display:grid; grid-template-columns:58px 1fr; gap:20px; padding:28px; border:1px solid var(--aim-border); border-radius:18px; background:#fff; box-shadow:0 8px 24px rgba(21,51,75,.04); }
.service-card h3 { margin:3px 0 8px; }
.service-card p { margin:0; color:#5c6d77; }
.service-number { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; background:#e7f4fd; color:#2d6f9e; font-weight:900; }
.feature-panel-orange { background:linear-gradient(135deg,#ef8f25,#f4a541); }
.btn-light { background:#fff; color:var(--aim-navy); margin-top:10px; }

.physician-profile-list { display:grid; gap:28px; }
.physician-profile { display:grid; grid-template-columns:minmax(260px, .75fr) 1.4fr; gap:42px; align-items:center; border:1px solid var(--aim-border); border-radius:24px; background:#fff; overflow:hidden; box-shadow:0 12px 34px rgba(21,51,75,.06); }
.physician-profile-reverse .physician-profile-photo-wrap { order:2; }
.physician-profile-reverse .physician-profile-copy { order:1; }
.physician-profile-photo-wrap { background:#edf6fd; align-self:stretch; display:flex; align-items:center; justify-content:center; min-height:380px; }
.physician-profile-photo { width:100%; height:100%; max-height:520px; object-fit:contain; object-position:center; display:block; }
.physician-profile-copy { padding:40px 40px 40px 0; }
.physician-profile-reverse .physician-profile-copy { padding:40px 0 40px 40px; }
.physician-profile-copy h2 { margin:5px 0 18px; }
.physician-profile-copy p:last-child { margin-bottom:0; }
.compact-section { padding:58px 0; }
.center-cta { text-align:center; max-width:850px; }
.center-cta p { max-width:650px; margin-left:auto; margin-right:auto; }
.centered-buttons { justify-content:center; }

.new-patient-callout { background:#fff; border:1px solid var(--aim-border); border-radius:22px; padding:28px; box-shadow:var(--aim-shadow); }
.new-patient-callout strong { display:block; font-size:1.8rem; color:var(--aim-navy); margin:4px 0 8px; }
.callout-label, .contact-mini-label { color:#e98721; font-weight:900; text-transform:uppercase; letter-spacing:.1em; font-size:.76rem; }
.steps-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.step-card { border:1px solid var(--aim-border); border-radius:20px; padding:28px; background:#fff; }
.step-number { width:44px; height:44px; border-radius:50%; background:#eff7fd; color:#2f73a4; display:grid; place-items:center; font-weight:900; margin-bottom:18px; }
.new-patient-grid { display:grid; grid-template-columns:1fr .8fr; gap:46px; align-items:start; }
.check-list { list-style:none; padding:0; margin:24px 0 0; display:grid; gap:12px; }
.check-list li { position:relative; padding-left:31px; }
.check-list li:before { content:'✓'; position:absolute; left:0; top:0; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:#e8f5fd; color:#2e739f; font-weight:900; font-size:.78rem; }
.soft-panel { background:#f6fbfe; border:1px solid #dcebf3; border-radius:22px; padding:30px; }
.soft-panel h3 { margin-top:22px; }
.soft-panel h3:first-child { margin-top:0; }

.contact-layout { display:grid; grid-template-columns:1.45fr .7fr; gap:34px; align-items:start; }
.contact-form-card { border:1px solid var(--aim-border); border-radius:24px; background:#fff; padding:34px; box-shadow:0 12px 36px rgba(21,51,75,.06); }
.contact-head { margin-bottom:22px; }
.form-safety-note { background:#fff7e9; border:1px solid #f3d39f; border-left:5px solid #ee9328; padding:16px 18px; border-radius:12px; margin-bottom:24px; color:#5d4a32; }
.form-alert { padding:15px 17px; border-radius:12px; margin-bottom:22px; font-weight:650; }
.form-alert.success { background:#edf8f2; border:1px solid #bcdcc9; color:#24583a; }
.form-alert.error { background:#fff0f0; border:1px solid #e4b8b8; color:#7a2d2d; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field { display:flex; flex-direction:column; gap:7px; }
.form-field-full { grid-column:1 / -1; }
.form-field label { color:var(--aim-navy); font-weight:750; }
.form-field label span { color:#b93c34; }
.form-field label small { color:var(--aim-muted); font-weight:500; }
.form-field input, .form-field select, .form-field textarea { width:100%; border:1px solid #cbdbe4; border-radius:11px; padding:12px 13px; font:inherit; color:var(--aim-text); background:#fff; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline:3px solid rgba(128,190,231,.25); border-color:#6ca7cf; }
.field-help { color:var(--aim-muted); }
.consent-check { display:flex; gap:10px; align-items:flex-start; margin:20px 0; font-size:.92rem; color:#556872; }
.consent-check input { margin-top:5px; }
.form-submit { border:0; cursor:pointer; font-size:1rem; }
.hp-field { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.contact-sidebar { display:grid; gap:18px; }
.contact-info-card, .emergency-card { border-radius:20px; padding:25px; border:1px solid var(--aim-border); background:#fff; }
.contact-info-card p { color:#61727c; margin-bottom:0; }
.contact-big-link { display:inline-block; font-size:1.7rem; font-weight:850; color:var(--aim-navy); margin:6px 0 9px; }
.text-link { font-weight:800; }
.emergency-card { background:var(--aim-navy); color:#fff; border-color:var(--aim-navy); }
.emergency-card strong { font-size:1.1rem; }
.emergency-card p { margin-bottom:0; color:#eef5f8; }

@media (max-width: 900px) {
  .page-hero-grid, .service-grid, .steps-grid, .new-patient-grid, .contact-layout, .physician-profile { grid-template-columns:1fr; }
  .physician-profile-reverse .physician-profile-photo-wrap, .physician-profile-reverse .physician-profile-copy { order:initial; }
  .physician-profile-photo-wrap { min-height:0; }
  .physician-profile-copy, .physician-profile-reverse .physician-profile-copy { padding:26px; }
  .physician-profile-photo { max-height:none; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns:1fr; }
  .form-field-full { grid-column:auto; }
  .contact-form-card { padding:23px; }
  .service-card { grid-template-columns:1fr; }
}

/* Equal physician profile sizing */
.physician-profile-list {
  display: grid;
  gap: 28px;
}

/* Desktop cards are equalized by theme.js to the tallest physician profile. */
.physician-profile,
.physician-profile-reverse {
  align-items: stretch;
}

.physician-profile {
  grid-template-columns: 34% 66%;
}

.physician-profile-reverse {
  grid-template-columns: 66% 34%;
}

.physician-profile-photo-wrap {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.physician-profile-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.physician-profile-copy,
.physician-profile-reverse .physician-profile-copy {
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .physician-profile,
  .physician-profile-reverse {
    grid-template-columns: 1fr;
    height: auto !important;
    min-height: 0 !important;
  }

  .physician-profile-photo-wrap {
    height: auto;
    min-height: 0;
  }

  .physician-profile-photo {
    height: auto;
    max-height: none;
  }
}

/* Services CTA button contrast fix */
.feature-panel .btn-light,
.feature-panel .btn-light:visited {
  background: #ffffff;
  color: var(--aim-navy) !important;
  border: 1px solid rgba(255,255,255,.85);
  min-width: 150px;
}
.feature-panel .btn-light:hover,
.feature-panel .btn-light:focus {
  background: #f7fbff;
  color: var(--aim-navy) !important;
  text-decoration: none;
}


/* Services CTA: dedicated high-specificity styling */
.feature-panel.feature-panel-orange .services-contact-btn,
.feature-panel.feature-panel-orange .services-contact-btn:visited {
  background: var(--aim-navy) !important;
  color: #ffffff !important;
  border: 2px solid var(--aim-navy) !important;
  min-width: 150px;
  margin-top: 10px;
  box-shadow: none;
}
.feature-panel.feature-panel-orange .services-contact-btn:hover,
.feature-panel.feature-panel-orange .services-contact-btn:focus {
  background: #0d2f49 !important;
  color: #ffffff !important;
  border-color: #0d2f49 !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(rgba(247,251,252,.94), rgba(247,251,252,.94)),
      url("assets/images/hero-sonoran-desert.png") 68% center / cover no-repeat;
  }
}

/* Shared Sonoran Desert header treatment for interior pages */
.page-hero-branded {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(247,251,255,.96) 0%, rgba(247,251,255,.89) 42%, rgba(239,247,251,.78) 68%, rgba(239,247,251,.66) 100%),
    url('assets/images/hero-sonoran-desert.png');
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--aim-border);
  padding: 64px 0;
}
.page-hero-branded > .container {
  position: relative;
  z-index: 1;
}
.page-hero-branded .page-icon-panel span,
.page-hero-branded .new-patient-callout {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
@media (max-width: 900px) {
  .page-hero-branded {
    background-image:
      linear-gradient(rgba(247,251,255,.93), rgba(247,251,255,.93)),
      url('assets/images/hero-sonoran-desert.png');
    background-position: 62% center;
    padding: 48px 0;
  }
}
