/* ============================================================
   Calgary ComfortCare Solutions — Shared Stylesheet
   Colors: Teal #1A6B6B | Gold #C9A84C | Navy #0D2B2B
   ============================================================ */

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

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

:root {
  --teal:  #1A6B6B;
  --teal-light: #22888a;
  --gold:  #C9A84C;
  --gold-light: #dbb95a;
  --navy:  #0D2B2B;
  --white: #ffffff;
  --off-white: #f7f9f9;
  --gray:  #666666;
  --light-gray: #e8eded;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Open Sans', Arial, sans-serif;
  --shadow: 0 4px 20px rgba(13,43,43,0.12);
  --shadow-hover: 0 8px 32px rgba(13,43,43,0.2);
  --radius: 6px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: #333; background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.25; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { font-size: 0.97rem; color: var(--gray); }

/* ── Utility ── */
.container   { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 72px 0; }
.text-center { text-align: center; }
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.section-subtitle {
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 0.97rem;
  color: var(--gray);
}
.divider {
  width: 56px; height: 4px;
  background: var(--gold);
  margin: 12px auto 32px;
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 34px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: #1a4040;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar-contact {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.top-bar-contact a:hover { color: var(--gold); }
.top-bar-contact .icon {
  width: 16px; height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
}
.top-bar-address {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1140px;
  margin: 0 auto;
  height: 160px;
}
.logo-block { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 52px; height: 52px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 28px; height: 28px; fill: var(--white); }
.logo-img {
  height: 220px;
  width: auto;
  display: block;
  object-fit: contain;
  overflow: visible;
}

.logo-text .name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.logo-text .tagline-small {
  font-size: 0.73rem;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
nav a:hover::after,
nav a.active::after { transform: scaleX(1); }
nav a:hover, nav a.active { color: var(--teal); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1576765607924-3f7b8410a787?w=1400&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 24px;
  margin-left: calc((100vw - 1140px) / 2);
  margin-left: max(24px, calc((100vw - 1140px) / 2));
}
.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.15;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--teal);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.intro-strip h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.intro-strip p {
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 1rem;
}

/* ============================================================
   CARDS GRID (Services preview / full)
   ============================================================ */
.cards-section { background: var(--white); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.card-body h3 { color: var(--navy); margin-bottom: 10px; }
.card-body p  { font-size: 0.9rem; margin-bottom: 18px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: #e8f3f3; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
  margin-top: 48px;
}
.why-item { text-align: center; }
.why-icon {
  width: 64px; height: 64px;
  background: var(--teal);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.why-item:hover .why-icon { background: var(--gold); }
.why-icon svg { width: 28px; height: 28px; fill: var(--white); }
.why-item h3 { color: var(--navy); margin-bottom: 8px; }
.why-item p  { font-size: 0.88rem; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-section { background: var(--navy); padding: 72px 0; }
.testimonial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  max-width: 960px;
  margin: 0 auto;
}
.testimonial-photo { position: relative; min-height: 360px; }
.testimonial-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.testimonial-content {
  background: var(--teal);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-content .label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.testimonial-content blockquote {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-content cite {
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { background: var(--gold); padding: 56px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-text h2 { color: var(--navy); margin-bottom: 8px; }
.cta-text p  { color: rgba(13,43,43,0.75); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand .tag { color: var(--gold); font-size: 0.8rem; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
footer ul li { margin-bottom: 9px; }
footer ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
footer ul li a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.footer-contact .fi {
  width: 16px; height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom nav a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-bottom nav a:hover { color: var(--gold); }

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: var(--navy);
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  opacity: 0.85;
}
.page-banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-banner .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.page-banner .breadcrumb a { color: var(--gold); }
.page-banner .breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-img img { width: 100%; height: 460px; object-fit: cover; }
.about-img::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.4;
  z-index: -1;
}
.about-text h2 { color: var(--navy); margin-bottom: 12px; }
.about-text p  { margin-bottom: 16px; }
.about-text .highlight {
  border-left: 4px solid var(--gold);
  padding-left: 16px;
  color: var(--teal);
  font-style: italic;
  font-size: 1.05rem;
  margin: 24px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  background: var(--off-white);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  border-top: 4px solid var(--teal);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.value-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.value-card p  { font-size: 0.85rem; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-intro { background: var(--off-white); padding: 56px 0; text-align: center; }
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--gold);
  box-shadow: var(--shadow-hover);
}
.service-icon {
  width: 60px; height: 60px;
  background: #e8f3f3;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--teal); }
.service-icon svg { width: 28px; height: 28px; fill: var(--teal); transition: fill 0.3s; }
.service-card:hover .service-icon svg { fill: var(--white); }
.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p  { font-size: 0.9rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { color: var(--navy); margin-bottom: 12px; }
.contact-info p  { margin-bottom: 28px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail .ci {
  width: 48px; height: 48px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail .ci svg { width: 22px; height: 22px; fill: var(--white); }
.contact-detail h4 { color: var(--navy); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; margin-bottom: 3px; }
.contact-detail p, .contact-detail a { font-size: 0.93rem; color: var(--gray); }
.contact-detail a:hover { color: var(--teal); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--navy); margin-bottom: 24px; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: #333;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Map placeholder */
.map-strip { background: var(--light-gray); }
.map-placeholder {
  height: 320px;
  background: #d0e4e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 8px;
  overflow: hidden;
}
.map-placeholder iframe {
  width: 100%; height: 100%; border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid   { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .testimonial-inner { grid-template-columns: 1fr; }
  .testimonial-photo { min-height: 260px; position: relative; }
}

@media (max-width: 700px) {
  nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px 0; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: 12px 24px; width: 100%; }
  .hamburger { display: flex; }
  .hero-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .top-bar .container { flex-direction: column; gap: 4px; }
  .header-inner { position: relative; }
}
@media (max-width: 480px) {
  .section-pad { padding: 48px 0; }
  .contact-form { padding: 28px 20px; }
  .testimonial-content { padding: 36px 28px; }
}
