/* ==========================================================================
   Sunsets & Meadows Homecare Agency — style.css
   Warm, trustworthy homecare design. Gold + deep navy on white.
   ========================================================================== */

:root {
  --gold: #dfa231;
  --gold-dark: #b7801c;
  --gold-deep: #8a5f12;
  --gold-light: #f7e7c3;
  --cream: #fbf6ea;
  --ink: #1c1e2a;
  --ink-soft: #4a4e5c;
  --muted: #6b6f7a;
  --white: #ffffff;
  --border: #e8e2d5;
  --ff-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(28, 30, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(28, 30, 42, 0.08);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-list a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
}
.nav-list a:hover,
.nav-list a.active { color: var(--gold-dark); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.12s ease;
}
.nav-cta:hover { background: var(--gold-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    padding: 10px;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 8px 10px; width: 100%; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 72px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--gold-dark); }
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.hero-media {
  position: relative;
}
.hero-logo {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Trust bar */
.trust-bar {
  background: var(--ink);
  color: #fff;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  justify-content: center;
  padding: 22px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.trust-item .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* Welcome / intro */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.welcome-grid h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.welcome-grid p { color: var(--ink-soft); margin-bottom: 16px; }
.welcome-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.97rem; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  text-align: center;
  padding: 32px 24px;
}
.value-card .value-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.96rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2d3f 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 30rem; margin: 0 auto 28px; }
.cta-banner .btn-primary { background: var(--gold); }
.cta-banner .btn-primary:hover { background: var(--gold-dark); }

/* ---------- Careers / hiring ---------- */
.hiring-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hiring-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(223, 162, 49, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(223, 162, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(223, 162, 49, 0); }
}

/* Contact / form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .cicon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Font Awesome icon styling */
.service-icon i { font-size: 1.4rem; color: var(--gold-deep); }
.value-card .value-icon i { font-size: 2rem; color: var(--gold-deep); line-height: 1; }
.cicon i { font-size: 1.2rem; color: var(--gold-deep); }
.footer-contact li i { color: var(--gold); font-size: 0.95rem; }
.contact-item .clabel {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.contact-item .cval { color: var(--ink); font-weight: 500; }
.contact-item .cval a { color: var(--ink); }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card .form-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-family: var(--ff-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(223, 162, 49, 0.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  background: var(--gold);
  color: #fff;
  padding: 15px 26px;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.12s ease;
}
.form-submit:hover { background: var(--gold-dark); }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 9px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.form-status.success { display: block; background: #eaf6ec; color: #1c7a2f; border: 1px solid #bfe6c8; }
.form-status.error { display: block; background: #fdecec; color: #b3261e; border: 1px solid #f3c4c4; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--cream);
  padding: 56px 24px 48px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 40rem; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--gold); }
.footer-about { color: rgba(255,255,255,0.7); margin-top: 16px; font-size: 0.95rem; max-width: 30rem; }
.footer-col h4 {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { color: rgba(255,255,255,0.78); font-size: 0.95rem; display: flex; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 24px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; }
  .hero-logo { max-width: 320px; }
  .services-grid, .values-grid { grid-template-columns: 1fr; }
  .welcome-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .section-head, .welcome-grid, .hero-inner { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .cta-banner { padding: 40px 24px; }
  .footer-bottom { text-align: center; }
}