/*
  Concierge Chiropody — styles.css
  Shared stylesheet for index.html and care-homes.html

  Palette:
    --color-navy        #1B2A4A  deep navy (headings, primary text)
    --color-navy-dark   #111D33  darkest navy (nav bg, footer bg)
    --color-cream       #F5F0E8  warm cream (main bg, alternating sections)
    --color-cream-light #FAF7F2  lightest cream (alternating sections)
    --color-gold        #B89A6A  muted warm gold (accents, CTAs, borders)
    --color-gold-light  #D4B483  lighter gold (hover states)
    --color-text-primary#1B2A4A  same as navy — all body text
    --color-text-soft   #3D4F6B  soft blue-grey (secondary body copy)
    --color-white       #FFFFFF  card backgrounds, form inputs

  Fonts:
    Cormorant Garamond — headings (weights 300, 400, 500)
    Montserrat         — body / UI (weights 300, 400 only)
*/

/* ─── Custom properties ─────────────────────────────────── */
:root {
  /* Brand palette */
  --color-navy:        #1B2A4A;
  --color-navy-dark:   #111D33;
  --color-cream:       #F5F0E8;
  --color-cream-light: #FAF7F2;
  --color-gold:        #B89A6A;
  --color-gold-light:  #D4B483;
  --color-text-primary:#1B2A4A;
  --color-text-soft:   #3D4F6B;
  --color-white:       #FFFFFF;

  /* Derived tokens */
  --color-gold-border: rgba(184, 154, 106, 0.3);
  --color-gold-faint:  rgba(184, 154, 106, 0.1);

  /* Typography */
  --f-head: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-w: 1100px;
  --nav-h: 90px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--color-cream);
  color: var(--color-text-primary);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
fieldset { border: none; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Offset anchor targets so fixed nav doesn't obscure them */
section[id] {
  scroll-margin-top: var(--nav-h);
}

/* ─── Navigation ─────────────────────────────────────────── */
/* Solid navy — lighter than navy-dark so logo gold and text read clearly */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: var(--color-navy);
  border-bottom: 1px solid rgba(184, 154, 106, 0.2);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
  gap: 1.5rem;
}

/* Nav logo — inline SVG mark + text, no img file dependency */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-mark { flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.logo-name {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #F5F0E8;
  line-height: 1.3;
}
.logo-sub {
  font-family: var(--f-body);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--color-white);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-gold);
}

.nav-wa {
  display: flex;
  align-items: center;
  color: var(--color-gold);
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.nav-wa:hover { opacity: 0.65; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-gold-light); }

/* Used on light/cream section backgrounds */
.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-gold-border);
}
.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Used in hero over the dark image */
.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  /*
    Hero image: Unsplash — premium calm warmth
    https://unsplash.com/photos/1512290923902-8a9f81dc236c
    Replace URL if needed; fallback colour below.
  */
  /* Local hero image — headingimage.jpg in project root */
  background-image:
    linear-gradient(rgba(17, 29, 51, 0.60), rgba(17, 29, 51, 0.60)),
    url('headingimage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-navy-dark);
  display: flex;
  align-items: center;
}

/* Shorter hero variant used on care-homes.html */
.hero--short {
  min-height: 60vh;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  /* Top padding accounts for fixed nav height */
  padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
  color: var(--color-white);
}

/* Hero logo — inline SVG + text, frosted cream backdrop */
.hero-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}
.hero-logo-backdrop {
  display: inline-block;
  background: #F5F0E8;
  padding: 24px 48px;
  border: 1px solid #B89A6A;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-logo-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-logo-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.hero-logo-name {
  font-family: var(--f-head);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-navy);
  line-height: 1.3;
}
.hero-logo-sub {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--color-gold);
}

.hero h1,
.hero .hero-headline {
  font-family: var(--f-head);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.75;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.credentials {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

/* Explicit white overrides for all hero text — ensures legibility over any background */
.hero h1,
.hero h2,
.hero p,
.hero .hero-sub,
.hero .hero-headline,
.hero .hero-subheadline,
.hero .hero-tagline,
.hero .credentials,
.hero .hero-credentials {
  color: #FFFFFF !important;
}
.hero .credential-line,
.hero .trust-line {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  letter-spacing: 0.15em;
}

/* ─── Section base ───────────────────────────────────────── */
section { padding: 5rem 0; }

.section-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.875rem;
}

h2 {
  font-family: var(--f-head);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 2.5rem;
}

h3 {
  font-family: var(--f-head);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 0.875rem;
}

p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-text-soft);
}

/* ─── Introduction ───────────────────────────────────────── */
.intro { background: var(--color-cream-light); }

.intro-text {
  max-width: 680px;
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--color-text-soft);
}

/* ─── Services ───────────────────────────────────────────── */
.services { background: var(--color-cream); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  padding: 2.25rem 2rem;
  border-top: 2px solid transparent;
  box-shadow: 0 1px 16px rgba(27, 42, 74, 0.06);
  transition: border-top-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  border-top-color: var(--color-gold);
  box-shadow: 0 4px 28px rgba(27, 42, 74, 0.1);
}
.service-card p { font-size: 0.875rem; }

.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.card-link:hover {
  color: var(--color-gold);
  border-color: var(--color-navy);
}

/* Gold price display on service cards */
.card-price {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-top: -8px;
  margin-bottom: 16px;
}

/* Small caps location line on service cards */
.card-location {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 1.25rem;
  margin-bottom: 16px;
}

/* ─── Who It's For ───────────────────────────────────────── */
.who-for { background: var(--color-cream-light); }

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Cream panel on cream-light background gives subtle contrast */
.who-col {
  padding: 2.25rem 2rem;
  background: var(--color-cream);
  border-left: 2px solid var(--color-gold);
}
.who-col h3 { margin-bottom: 1rem; }

/* ─── Why Concierge Chiropody ────────────────────────────── */
.why-us { background: var(--color-cream); }

.differentiators { margin-top: 0.25rem; }

.differentiators li {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.875rem;
  border-bottom: 1px solid var(--color-gold-border);
  font-size: 0.9375rem;
  color: var(--color-text-soft);
  line-height: 1.75;
}
.differentiators li:first-child {
  border-top: 1px solid var(--color-gold-border);
}
/* Thin gold dash marker — replaces standard bullet */
.differentiators li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 1px;
  background: var(--color-gold);
}

/* ─── Service Areas ──────────────────────────────────────── */
.areas { background: var(--color-cream-light); }
.areas-text { max-width: 640px; }

/* ─── Enquiry Form ───────────────────────────────────────── */
.enquiry { background: var(--color-cream); }

/* WhatsApp preference row above the form */
.enquiry-wa-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 2.75rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--color-gold-border);
}
.enquiry-wa-row p {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--color-text-soft);
}

.enquiry-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 560px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group > label,
fieldset legend {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  display: block;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--color-white);
  border: 1px solid rgba(27, 42, 74, 0.15);
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-navy);
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
textarea { resize: vertical; min-height: 100px; }

.radio-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-text-soft);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}
.radio-label input[type="radio"] {
  width: auto;
  padding: 0;
  accent-color: var(--color-gold);
}

.form-submit { margin-top: 0.25rem; }

/* In-page success message shown after form submission */
.form-success {
  display: none;
  padding: 2rem 2.25rem;
  background: var(--color-cream-light);
  border-left: 3px solid var(--color-gold);
  max-width: 560px;
}
.form-success p {
  font-style: italic;
  color: var(--color-text-soft);
}

/* Response time note beneath form */
.contact-note {
  font-size: 0.875rem;
  color: var(--color-text-soft);
  font-style: italic;
  margin-top: 0.25rem;
}

/* ─── Conditions page ────────────────────────────────────── */
/* Gradient-only hero — no photo required */
.hero--conditions {
  min-height: 50vh;
  background-image:
    linear-gradient(rgba(17, 29, 51, 0.60), rgba(17, 29, 51, 0.60)),
    linear-gradient(135deg, #111D33 0%, #1B2A4A 60%, #2A3F6B 100%);
}

.conditions-section { background: var(--color-cream-light); }

.conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.condition-card {
  background: var(--color-white);
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 1px 16px rgba(27, 42, 74, 0.06);
  transition: box-shadow 0.25s ease;
}
.condition-card:hover {
  box-shadow: 0 4px 28px rgba(27, 42, 74, 0.1);
}

.condition-card h3 { margin-bottom: 0.5rem; }

/* Thin gold rule beneath each condition title */
.condition-rule {
  width: 36px;
  height: 1px;
  background: var(--color-gold);
  margin-bottom: 1.25rem;
}

.condition-card p { font-size: 0.875rem; }

.conditions-cta { background: var(--color-cream); }
.conditions-cta-text { max-width: 640px; }
.conditions-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ─── Care Homes: Service section ────────────────────────── */
.care-service { background: var(--color-cream-light); }
.care-service-text {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--color-text-soft);
}

/* ─── Care Homes: Why grid ───────────────────────────────── */
.care-why { background: var(--color-cream); }

.care-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.care-why-card {
  background: var(--color-white);
  padding: 2rem 1.875rem;
  border-top: 2px solid var(--color-gold-border);
  box-shadow: 0 1px 16px rgba(27, 42, 74, 0.06);
  transition: border-top-color 0.25s ease, box-shadow 0.25s ease;
}
.care-why-card:hover {
  border-top-color: var(--color-gold);
  box-shadow: 0 4px 24px rgba(27, 42, 74, 0.1);
}

.card-tag {
  display: block;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.care-why-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}
.care-why-card p { font-size: 0.875rem; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--color-navy-dark);
  padding: 2.5rem 0 1.75rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* Footer logo — HTML/CSS rebuild, matching nav bar structure */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.footer-logo-wrap .logo-mark svg {
  width: 44px;
  height: 44px;
}
.footer-logo-wrap .logo-name {
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #F5F0E8;
  line-height: 1.3;
}
.footer-logo-wrap .logo-sub {
  font-size: 8px;
  letter-spacing: 0.25em;
  color: #B89A6A;
}

.footer-creds {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
}

.footer-wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.58);
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.footer-wa:hover { color: var(--color-gold); }

.footer-copy {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.3);
}

/* ─── Footer logo strip ──────────────────────────────────── */
.footer-logo-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(245, 240, 232, 0.15);
}
/* Credential logos — transparent PNG, no container */
.footer-credentials {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-credential-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: none;
  background: none;
  opacity: 1;
}
.footer-payments {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-label {
  font-family: var(--f-body);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
  margin-right: 4px;
  white-space: nowrap;
}
.payment-icons-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.payment-icon {
  height: 30px;
  width: auto;
  border-radius: 4px;
  background: #ffffff;
  padding: 3px 6px;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-logo-strip {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ─── Responsive: max 1024px (nav logo reduction) ───────── */
/* Reduce nav logo on smaller screens where nav space is tighter */
@media (max-width: 1024px) {
  .nav-logo img { height: 56px; }
}

/* ─── Responsive: max 480px (hero headline) ─────────────── */
@media (max-width: 480px) {
  .hero h1,
  .hero .hero-headline {
    font-size: 36px;
    max-width: 100%;
  }
}

/* ─── Responsive: 480px ──────────────────────────────────── */
@media (min-width: 480px) {
  /* 4-item grid (care-why) works cleanly at 2×2 from 480px */
  .care-why-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Responsive: 768px ──────────────────────────────────── */
@media (min-width: 768px) {
  /* 2 service cards sit side-by-side from tablet upward */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  /* Conditions grid goes 2-col from tablet */
  .conditions-grid { grid-template-columns: 1fr 1fr; }

  .who-grid { grid-template-columns: 1fr 1fr; }

  .enquiry-form { grid-template-columns: 1fr 1fr; }
  /* Textarea and radio row span full width of 2-col form */
  .form-group.full-w { grid-column: 1 / -1; }
  .form-submit { grid-column: 1 / -1; }

  .enquiry-wa-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ─── Responsive: 1024px ─────────────────────────────────── */
@media (min-width: 1024px) {
  /* Space for future desktop-specific overrides */
}

/* ─── Floating WhatsApp Button ───────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #1ebe57;
  transform: scale(1.08);
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}
