/*
Theme Name: Vidals Golden Years Care
Theme URI: https://vidalsgoldenyearscare.ca
Author: Beto
Description: Custom theme for Vidals Golden Years Care senior home support services in Calgary, AB.
Version: 1.6
*/

:root {
  /* Brand palette (exact hex from brand guide) */
  --terracotta: #C1653B;
  --cream: #F5EBDD;
  --olive: #7A8450;
  --dusty-rose: #C98A83;
  --brown: #4A3728;

  /* Neutral helpers derived for contrast/surfaces — not brand accents */
  --card-bg: #FBF4E2; /* soft warm paper instead of pure white */
  --paper: #F3E9D2;   /* Kindle-style sepia page tone */
  --terracotta-dark: #A6512E;
  --line: rgba(74, 55, 40, 0.14);
  --shadow: 0 12px 30px rgba(74, 55, 40, .10);
  --radius: 18px;
  --section-alt-bg: #E7DFC6; /* subtle olive tint over cream, for alternating sections */

  /* Standardized type scale — used everywhere, no one-off sizes */
  --fs-eyebrow: 1rem;
  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.35rem;
  --fs-h4: 1.1rem;
  --fs-body: 1rem;
  --fs-small: 0.95rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--paper);
  color: var(--brown);
  line-height: 1.6;
  font-weight: 400;
  font-size: var(--fs-body);
}

h1, h2, h3, h4, h5, h6, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p, li, label, input, textarea, button, a {
  font-size: var(--fs-body);
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--brown);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 78px;
  width: auto;
  display: block;
}

.navlinks {
  display: flex;
  gap: 28px;
}

.navlinks a {
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--brown);
}

.navlinks a:hover { color: var(--terracotta); }

.nav-cta {
  background: var(--terracotta);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-small);
  transition: background .2s ease;
}

.nav-cta:hover { background: var(--terracotta-dark); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}

.hero-inner { max-width: 720px; }

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.eyebrow-line .rule {
  width: 40px;
  height: 2px;
  background: var(--terracotta);
}

.eyebrow-line span {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.hero h1 { margin-bottom: 18px; }

.sub-taglines { margin-bottom: 20px; }
.sub-taglines .t1 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 4px;
}
.sub-taglines .t2 {
  font-size: var(--fs-small);
  color: var(--olive);
  font-weight: 600;
}

.lede {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--brown);
}

.caregivers-note {
  font-size: var(--fs-small);
  color: var(--brown);
  opacity: 0.85;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-body);
  transition: all .2s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-secondary {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}
.btn-secondary:hover { background: var(--terracotta); color: #fff; }

/* ---------- SECTIONS (shared) ---------- */
section { padding: 70px 0; }

.section-alt { background: var(--section-alt-bg); }

.section-head { max-width: 640px; margin-bottom: 40px; }

.rule-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rule-label .rule {
  width: 40px;
  height: 2px;
  background: var(--terracotta);
}

.rule-label span {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.example-note {
  margin-top: 30px;
  font-size: var(--fs-small);
  color: var(--olive);
  font-style: italic;
}

/* ---------- HOW IT WORKS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.step .num {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  color: var(--dusty-rose);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: var(--fs-small); }

/* ---------- SERVICES ---------- */
.service-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-cat {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.service-cat h3 {
  margin-bottom: 14px;
  color: var(--terracotta);
}

.service-cat ul { list-style: none; }

.service-cat li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  font-size: var(--fs-small);
}

.service-cat li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

.transport-note {
  margin-top: 28px;
  font-size: var(--fs-small);
  color: var(--brown);
  opacity: 0.8;
}

/* ---------- PACKAGES ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.package {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--dusty-rose);
}

.package.featured {
  border-top: 4px solid var(--terracotta);
  transform: translateY(-6px);
}

.tier-name {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-h3);
  color: var(--brown);
  margin-bottom: 10px;
}

.package p { font-size: var(--fs-small); }

/* ---------- CONCIERGE ---------- */
.concierge-intro {
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 40px;
}

.tier-block {
  margin-bottom: 34px;
}

.tier-head h3 {
  margin-bottom: 14px;
  color: var(--terracotta);
}

.tier-block ul {
  list-style: none;
}

.tier-block li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  font-size: var(--fs-small);
}

.tier-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dusty-rose);
}

.exclusions {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.exclusions h4 {
  margin-bottom: 12px;
  color: var(--brown);
}

.exclusions ul { list-style: none; }
.exclusions li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  font-size: var(--fs-small);
}
.exclusions li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.75rem;
  color: var(--terracotta);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.lang-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lang-toggle button {
  font-family: 'Work Sans', sans-serif;
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--terracotta);
  background: transparent;
  color: var(--terracotta);
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--terracotta);
  color: #fff;
}

.about-copy p {
  margin-bottom: 16px;
  font-size: var(--fs-body);
}

#about-es { display: none; }

.caregiver-side {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  align-self: start;
}

.caregiver-side h4 { margin-bottom: 14px; }
.caregiver-side p {
  font-size: var(--fs-small);
  margin-bottom: 14px;
}

/* ---------- CONTACT ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-copy p { margin-bottom: 14px; font-size: var(--fs-body); }
.contact-copy a { color: var(--terracotta); font-weight: 600; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  font-family: 'Work Sans', sans-serif;
  font-size: var(--fs-body);
  color: var(--brown);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form button.btn-primary {
  border: none;
  cursor: pointer;
  width: fit-content;
}

.form-notice {
  font-size: var(--fs-small);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.form-notice.success {
  background: rgba(122, 132, 80, 0.15);
  color: var(--olive);
}
.form-notice.error {
  background: rgba(193, 101, 59, 0.12);
  color: var(--terracotta-dark);
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 30px 0;
  font-size: var(--fs-small);
  color: var(--brown);
  opacity: 0.8;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .steps, .service-cats, .packages, .about-grid, .contact-wrap {
    grid-template-columns: 1fr;
  }
  .navlinks { display: none; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .package.featured { transform: none; }
}

/* ---- v1.2: About photo + footer logo ---- */
.about-side { display: flex; flex-direction: column; gap: 28px; }
.about-photo { margin: 0; }
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-photo figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--terracotta-dark);
}
.footer-logo { display: block; margin: 0 auto 14px; width: 180px; max-width: 60%; height: auto; }

/* ---- v1.3: symmetric About layout ---- */
.about-grid .about-photo { display: flex; flex-direction: column; }
.about-grid .about-photo img { flex: 1 1 auto; height: 100%; min-height: 420px; aspect-ratio: auto; }
.caregiver-side { margin-top: 48px; padding: 36px 40px; }
.caregiver-side h4 { font-size: var(--fs-h3, 1.5rem); }
.cg-body { column-count: 2; column-gap: 48px; }
.cg-body p { break-inside: avoid; }
@media (max-width: 860px) {
  .about-grid .about-photo img { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  .cg-body { column-count: 1; }
  .brand-logo { height: 64px; }
}

/* ---- v1.4: easy-on-the-eyes reading palette ---- */
body { color: #3F2E21; }
.caregiver-side, .about-photo img { border: 1px solid rgba(74, 55, 40, 0.10); }
input, textarea, select { background: #FBF4E2; border-color: rgba(74, 55, 40, 0.25); color: #3F2E21; }

/* ---- v1.5: homogeneous hero text (one font, one size, one color) ---- */
.sub-taglines .t1,
.sub-taglines .t2,
.lede,
.caregivers-note {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--brown);
  opacity: 1;
}
.sub-taglines .t1,
.sub-taglines .t2 { font-weight: 600; margin-bottom: 4px; }
.lede, .caregivers-note { font-weight: 400; }
.lede { margin-bottom: 14px; }
.caregivers-note { margin-bottom: 30px; }

/* ---- v1.6: salient Concierge callout ---- */
.example-note {
  margin-top: 40px;
  padding: 26px 32px;
  background: var(--card-bg);
  border-left: 6px solid var(--olive);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: 'Fraunces', serif;
  font-size: var(--fs-h3);
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  color: var(--brown);
}
@media (max-width: 860px) {
  .example-note { padding: 20px 22px; }
}
