/*
Theme Name:   IHD Care Child
Theme URI:    https://ihdcare.co.uk
Description:  IHD Care child theme based on Astra
Author:       IHD Care Ltd
Template:     astra
Version:      1.0.0
Text Domain:  ihd-care-child
*/

/* ═══════════════════════════════════════════
   IHD CARE — Design System & Global Styles
   Child theme of: Astra
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --navy:      #1c3148;
  --navy-d:    #112033;
  --navy-m:    #1e3d5a;
  --teal:      #2e8b7a;
  --teal-l:    #3aaa97;
  --teal-xl:   #e6f5f2;
  --warm:      #c4813a;
  --warm-l:    #e9a855;
  --warm-xl:   #fdf3e7;
  --sand:      #f7f3ee;
  --sand-d:    #ede8e1;
  --white:     #ffffff;
  --text:      #1c2e3d;
  --muted:     #5a7080;
  --border:    #dde5ec;
  --radius:    12px;
  --shadow-sm: 0 2px 12px rgba(28,49,72,.08);
  --shadow:    0 6px 32px rgba(28,49,72,.12);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--navy);
}
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-l); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1rem; }

/* Override Astra defaults */
.ast-container { max-width: 1200px !important; }
body, button, input, select, textarea { font-family: var(--font-body) !important; }

/* ─── ASTRA HEADER OVERRIDE ─── */
#masthead,
.site-header,
.ast-primary-header-bar {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 200;
}
.ast-site-identity { padding: 0 !important; }
.site-logo img { height: 48px !important; width: auto !important; }
.main-header-bar { padding: 12px 0 !important; }

/* Navigation */
.main-navigation a,
.ast-builder-menu-1 a,
#site-navigation a {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  letter-spacing: 0;
  padding: 8px 0 !important;
}
.main-navigation a:hover,
#site-navigation a:hover { color: var(--navy) !important; }

/* ─── BUTTONS ─── */
.wp-block-button__link,
.ast-button,
.btn-primary,
input[type="submit"],
button[type="submit"] {
  background: var(--teal) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 9px !important;
  padding: 13px 26px !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background .2s, transform .15s !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
}
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--teal-l) !important;
  transform: translateY(-2px) !important;
}
.btn-navy { background: var(--navy) !important; }
.btn-navy:hover { background: var(--navy-m) !important; }
.btn-warm { background: var(--warm) !important; }
.btn-warm:hover { background: var(--warm-l) !important; }
.btn-outline {
  background: transparent !important;
  border: 1.5px solid var(--teal) !important;
  color: var(--teal) !important;
}
.btn-outline:hover { background: var(--teal) !important; color: var(--white) !important; }

/* ─── LAYOUT UTILITIES ─── */
.ihd-container { max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 24px; }
.ihd-section { padding: 96px 48px; }
.ihd-section-sand { background: var(--sand); }
.ihd-section-navy { background: var(--navy-d); }
.section-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
  display: block;
}
.section-title { font-size: clamp(28px,3.5vw,42px); color: var(--navy); margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--muted); max-width: 580px; line-height: 1.75; font-weight: 300; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--navy-d);
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(46,139,122,.15) 0%, transparent 60%),
    radial-gradient(circle at 15% 80%, rgba(196,129,58,.07) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero .ihd-container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px,4vw,52px); color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.6); max-width: 560px; line-height: 1.7; font-weight: 300; }
.page-hero-breadcrumb { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.page-hero-breadcrumb a { color: rgba(255,255,255,.4); }
.page-hero-breadcrumb a:hover { color: var(--teal-l); }

/* ─── CARDS ─── */
.ihd-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow .25s, transform .2s;
}
.ihd-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.ihd-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-xl);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ─── SERVICE CARDS ─── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .2s, border-color .25s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.service-card-dark .service-card-name { color: var(--white); }
.service-card-dark .service-card-desc { color: rgba(255,255,255,.5); }

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--navy); padding: 28px 48px; }
.trust-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.trust-badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); font-size: 14px; }
.trust-divider { width: 1px; height: 32px; background: rgba(255,255,255,.12); }

/* ─── REFERRAL BAND ─── */
.referral-band { background: var(--teal); padding: 64px 48px; }
.referral-band-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px; align-items: center;
}
.referral-band h2 { font-size: clamp(24px,2.8vw,36px); color: var(--white); margin-bottom: 10px; }
.referral-band p { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.7; margin: 0; }
.btn-white {
  background: var(--white); color: var(--teal) !important;
  padding: 14px 30px; border-radius: 9px;
  font-size: 15px; font-weight: 500;
  white-space: nowrap;
  transition: transform .15s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

/* ─── FORMS ─── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea, select {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 9px !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  color: var(--text) !important;
  background: var(--white) !important;
  outline: none !important;
  transition: border-color .2s !important;
  margin-bottom: 0 !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal) !important;
  box-shadow: none !important;
}
label { font-size: 13px !important; font-weight: 500 !important; color: var(--navy) !important; margin-bottom: 6px !important; display: block !important; }

/* ─── TESTIMONIALS ─── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.testimonial-stars { color: var(--warm); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; color: var(--muted); line-height: 1.75; font-style: italic; font-weight: 300; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-xl); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--teal); flex-shrink: 0;
}

/* ─── BLOG / NEWS ─── */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-thumbnail { height: 200px; overflow: hidden; background: var(--teal-xl); }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumbnail img { transform: scale(1.04); }
.post-body { padding: 22px 24px; }
.post-category {
  display: inline-block;
  background: var(--teal); color: var(--white);
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 99px;
  margin-bottom: 10px;
  text-decoration: none;
}
.entry-title { font-size: 18px !important; margin-bottom: 10px !important; }
.entry-title a { color: var(--navy) !important; }
.entry-title a:hover { color: var(--teal) !important; }

/* ─── GRAVITY FORMS OVERRIDES ─── */
.gform_wrapper .gform_title { font-family: var(--font-head); color: var(--navy); }
.gform_wrapper .gfield_label { font-size: 13px; font-weight: 500; color: var(--navy); }
.gform_wrapper .ginput_container input,
.gform_wrapper .ginput_container textarea,
.gform_wrapper .ginput_container select {
  border: 1.5px solid var(--border) !important;
  border-radius: 9px !important;
  font-family: var(--font-body) !important;
  padding: 12px 14px !important;
}
.gform_wrapper .gform-button { background: var(--teal) !important; border-radius: 9px !important; }

/* ─── FOOTER ─── */
#colophon,
.site-footer,
.footer-widget-area {
  background: var(--navy-d) !important;
  color: rgba(255,255,255,.55) !important;
}
.site-footer a { color: rgba(255,255,255,.45) !important; }
.site-footer a:hover { color: var(--teal-l) !important; }
.footer-widget-area h2,
.footer-widget-area h3,
.footer-widget-area .widget-title {
  font-family: var(--font-head) !important;
  color: rgba(255,255,255,.7) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
.ast-footer-copyright {
  background: var(--navy-d) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.28) !important;
  font-size: 13px !important;
}

/* ─── PROCESS STEPS ─── */
.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 27px; left: 12.5%; right: 12.5%;
  height: 2px; background: var(--border); z-index: 0;
}
.process-step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-head); font-size: 20px; color: var(--navy);
  transition: background .25s, border-color .25s, color .25s;
}
.process-step:hover .step-num { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .ihd-section { padding: 64px 20px; }
  .page-hero { padding: 120px 20px 60px; }
  .trust-bar, .referral-band { padding: 28px 20px; }
  .referral-band-inner { grid-template-columns: 1fr; gap: 24px; }
  .trust-divider { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
}
@media (max-width: 600px) {
  .ihd-section { padding: 48px 16px; }
  .process-steps { grid-template-columns: 1fr; }
}
