/* ==========================================================================
   Raksha Care Homes — rakshacarehomes.com
   Orange & ombre peach on white — light, elegant, senior-friendly
   ========================================================================== */

:root {
  /* Light peach & orange palette (no browns) */
  --peach-bg:    #FFF8F1;   /* page background (warm peach-white) */
  --peach-soft:  #FFEFE1;   /* light peach */
  --peach-mid:   #FFE9D6;   /* topbar / soft fills */
  --peach-deep:  #FFDCC0;   /* deeper peach (ombre end) */
  --white:       #FFFFFF;
  --ink:         #333333;   /* body text — crisp charcoal */
  --ink-soft:    #5C5650;   /* secondary text — warm gray */
  --heading:     #B5521A;   /* headings — clear orange */
  --orange:      #E08A3C;   /* decorative accent (rules, borders) */
  --orange-deep: #A6480F;   /* strong orange for links, buttons, nav */
  --terra:       #C2571B;   /* mid orange for hovers / accents */
  --line:        #F2DAC2;   /* hairline borders */
  --edge:        #EFB98A;   /* dark peach for edges & accents */
  --focus:       #A6480F;

  /* Ombre gradients — all light */
  --ombre-band:  linear-gradient(180deg, #FFF6EC 0%, #FFE6CE 100%);
  --ombre-page:  linear-gradient(135deg, #FFF3E8 0%, #FFDFC5 100%);
  --ombre-cta:   linear-gradient(135deg, #FFEDDA 0%, #FFD7B2 100%);
  --ombre-foot:  linear-gradient(180deg, #FFF4E8 0%, #FFE3C9 100%);

  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans:  "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(194, 87, 27, .12);
}

/* Text-size adjuster steps (A− / A / A+) */
html            { font-size: 19px; }
html.fs-large   { font-size: 21px; }
html.fs-xlarge  { font-size: 23px; }

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--peach-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ------------------------------------------------------------------ links */
a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange-deep); color: #fff; padding: .8rem 1.2rem; z-index: 999;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ============================================================= top bar */
.topbar { background: var(--peach-mid); color: var(--ink); font-size: .84rem;
  border-bottom: 1px solid var(--line); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap;
}
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--orange-deep); text-decoration: underline; }
.topbar a svg { color: var(--orange-deep); }
.topbar .tb-contact { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.topbar .tb-contact svg { vertical-align: -2px; margin-right: .35rem; }

/* Text size buttons */
.textsize { display: flex; align-items: center; gap: .4rem; }
.textsize span { margin-right: .2rem; color: var(--ink-soft); }
.textsize button {
  background: var(--white); color: var(--orange-deep); border: 1px solid var(--terra);
  min-width: 2.1rem; padding: .15rem .45rem; font-size: .84rem;
  border-radius: 6px; cursor: pointer; font-family: inherit; font-weight: 600;
}
.textsize button:hover { background: var(--orange-deep); color: #FFF; }
.textsize button[aria-pressed="true"] { background: var(--orange-deep); color: #FFF; font-weight: 700; }

/* ============================================================= header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .95rem; text-decoration: none; }
.brand-mark { flex: 0 0 auto; }
.brand-name {
  font-family: var(--font-serif); font-weight: 700; color: var(--heading);
  font-size: 1.75rem; line-height: 1.15; letter-spacing: .01em; display: block;
}
.brand-tag {
  color: var(--terra); font-size: .92rem; letter-spacing: .16em;
  text-transform: uppercase; margin-top: .15rem; display: block;
}
.head-cta { text-align: right; }
.head-cta .call-label { font-size: .86rem; color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase; }
.head-cta .call-number {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: var(--orange-deep); text-decoration: none; white-space: nowrap;
}
.head-cta .call-number:hover { color: var(--terra); }

/* ============================================================= nav */
.mainnav { background: var(--white); position: relative; z-index: 60;
  border-bottom: 1px solid var(--line); }
.mainnav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; }
.nav-toggle {
  display: none; background: var(--white); border: 2px solid var(--terra); color: var(--orange-deep);
  font-size: 1rem; font-family: inherit; padding: .5rem .9rem; margin: .55rem 0;
  border-radius: 8px; cursor: pointer; align-items: center; gap: .5rem; font-weight: 600;
}
.nav-toggle:hover { background: var(--peach-soft); }

.nav-list { list-style: none; display: flex; width: 100%; justify-content: space-between; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; color: var(--orange-deep); text-decoration: none; font-weight: 700;
  letter-spacing: .09em; font-size: .89rem; padding: 1rem 1.1rem;
  border-bottom: 4px solid transparent;
}
.nav-list > li > a:hover { color: var(--heading); background: var(--peach-soft); border-bottom-color: var(--edge); }
.nav-list > li > a[aria-current="page"],
.nav-list > li.current > a { border-bottom-color: var(--orange-deep); color: var(--heading); }

/* dropdowns */
.sub {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 275px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--edge);
  box-shadow: 0 10px 24px rgba(194, 87, 27, .18); border-radius: 0 0 var(--radius) var(--radius);
  display: none; padding: .4rem 0; z-index: 70;
}
.nav-list > li:hover > .sub,
.nav-list > li:focus-within > .sub { display: block; }
.sub li a {
  display: block; padding: .6rem 1.15rem; color: var(--ink); text-decoration: none; font-size: .95rem;
}
.sub li a:hover { background: var(--peach-soft); color: var(--orange-deep); }
.sub-toggle { display: none; }

/* ============================================================= photo banner */
.photobanner {
  background: var(--peach-soft); overflow: hidden; position: relative;
  border-bottom: 4px solid var(--edge);
}
.banner-track { display: flex; gap: 6px; width: max-content; animation: stream 80s linear infinite; }
.photobanner:hover .banner-track { animation-play-state: paused; }
.banner-track img {
  height: 168px; width: 252px; object-fit: cover; flex: 0 0 auto; background: var(--peach-deep);
}
@keyframes stream { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .banner-track { animation: none; }
}

/* ============================================================= page title band */
.pageband { background: var(--ombre-page); border-bottom: 1px solid var(--line); }
.pageband .wrap { padding-top: 2.2rem; padding-bottom: 2.2rem; }
.pageband h1 {
  font-family: var(--font-serif); color: var(--heading); font-weight: 700;
  font-size: 2.3rem; line-height: 1.2;
}
.pageband .lede { margin-top: .5rem; font-size: 1.1rem; color: #4A4440; max-width: 62ch; }
.crumbs { font-size: .85rem; margin-bottom: .8rem; color: var(--ink-soft); letter-spacing: .04em; }
.crumbs a { color: var(--orange-deep); }

/* ============================================================= sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--ombre-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-family: var(--font-serif); color: var(--heading); font-weight: 700;
  font-size: 1.75rem; line-height: 1.25; margin-bottom: 1rem;
}
h3 {
  font-family: var(--font-serif); color: var(--heading); font-weight: 700;
  font-size: 1.25rem; margin: 1.6rem 0 .6rem;
}
.section p { margin-bottom: 1rem; max-width: 70ch; }
.section ul { margin: 0 0 1rem 1.4rem; max-width: 70ch; }
.section li { margin-bottom: .45rem; }

.gold-rule {
  width: 64px; height: 4px; background: linear-gradient(90deg, var(--edge), #FFD9B3);
  border: 0; border-radius: 2px; margin: 0 0 1.4rem;
}
.center .gold-rule { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* two-column with photo */
.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: start; }
.cols .photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
  border: 1px solid var(--line); }
.cols .photo figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }

/* ============================================================= hero (homepage) */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, #FFF0E2 78%, #FFE0C6 100%); }
.hero .wrap { padding-top: 3.4rem; padding-bottom: 3.4rem; text-align: center; }
.hero .kicker {
  color: var(--orange-deep); letter-spacing: .22em; text-transform: uppercase;
  font-size: .85rem; font-weight: 700;
}
.hero h1 {
  font-family: var(--font-serif); color: var(--heading); font-weight: 700;
  font-size: 2.9rem; line-height: 1.15; margin: .7rem auto .9rem; max-width: 21ch;
}
.hero .lede { font-size: 1.18rem; color: #4A4440; max-width: 62ch; margin: 0 auto 1.8rem; }

.btn-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; letter-spacing: .04em;
  padding: .85rem 1.7rem; border-radius: 999px; font-size: 1rem; border: 2px solid transparent;
}
.btn-primary { background: var(--orange-deep); color: #FFFFFF; }
.btn-primary:hover { background: var(--terra); color: #FFF; }
.btn-ghost { border-color: var(--orange-deep); color: var(--orange-deep); background: var(--white); }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); }

/* ============================================================= quote band */
.quoteband { background: var(--ombre-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quoteband .wrap { padding-top: 2.6rem; padding-bottom: 2.6rem; text-align: center; }
.quoteband blockquote {
  font-family: var(--font-serif); font-style: italic; color: var(--orange-deep);
  font-size: 1.5rem; line-height: 1.45; max-width: 34ch; margin: 0 auto;
}
.quoteband cite { display: block; margin-top: .9rem; font-style: normal; font-family: var(--font-sans);
  color: var(--ink-soft); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
blockquote.inline-quote {
  border-left: 4px solid var(--edge); padding: .35rem 0 .35rem 1.2rem; margin: 1.4rem 0;
  font-family: var(--font-serif); font-style: italic; color: var(--orange-deep); font-size: 1.18rem; max-width: 60ch;
}
blockquote.inline-quote cite { display: block; font-style: normal; font-family: var(--font-sans);
  font-size: .88rem; color: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; margin-top: .5rem; }

/* ============================================================= cards */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--edge);
  text-align: left;
}
.card h3 { margin-top: 0; font-size: 1.2rem; }
.card p { font-size: .98rem; margin-bottom: .9rem; }
.card .more { font-weight: 700; text-decoration: none; color: var(--orange-deep); }
.card .more:hover { text-decoration: underline; color: var(--terra); }
.card .icon { margin-bottom: .9rem; }

/* ============================================================= photo galleries */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--peach-deep); border: 1px solid var(--line); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* ============================================================= CTA band */
.ctaband { background: var(--ombre-cta); border-top: 1px solid var(--line); }
.ctaband .wrap { padding-top: 2.8rem; padding-bottom: 2.8rem; text-align: center; }
.ctaband h2 { color: var(--heading); margin-bottom: .4rem; }
.ctaband p { color: #4A4440; max-width: 60ch; margin: 0 auto 1.5rem; }
.ctaband .btn-primary { background: var(--orange-deep); color: #FFF; }
.ctaband .btn-primary:hover { background: var(--terra); color: #FFF; }
.ctaband .call-number { color: var(--orange-deep); font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; text-decoration: none; }
.ctaband .call-number:hover { color: var(--terra); }

/* ============================================================= forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: .35rem; color: #3A3A3A; }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; padding: .8rem .9rem; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--edge); border-radius: 8px; background: var(--white); color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--orange-deep); outline: 3px solid rgba(224, 138, 60, .3); }
.req { color: var(--orange-deep); }
.hp-field { position: absolute; left: -9999px; }
.form-grid button.btn { cursor: pointer; font-family: inherit; font-size: 1rem; }

/* ============================================================= info boxes */
.infobox {
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--edge);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.6rem 0; max-width: 640px;
  box-shadow: var(--shadow);
}
.infobox p { margin-bottom: .3rem; }
.address-card h3 { margin-top: 0; }
.address-card .addr { font-size: 1.05rem; }
.address-card .lic { font-size: .88rem; color: var(--ink-soft); margin-top: .5rem; }

/* ============================================================= footer */
.site-foot { background: var(--ombre-foot); color: var(--ink); margin-top: 3rem;
  border-top: 4px solid var(--edge); }
.site-foot a { color: var(--orange-deep); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--terra); }
.foot-cols {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem;
  padding: 2.8rem 0 2rem;
}
.foot-cols h2 {
  font-family: var(--font-serif); color: var(--heading); font-size: 1.15rem; margin-bottom: .9rem;
}
.foot-cols ul { list-style: none; }
.foot-cols li { margin-bottom: .45rem; font-size: .95rem; }
.foot-cols p { font-size: .95rem; margin-bottom: .8rem; }
.foot-lic { font-size: .85rem; color: #4A4440; }
.foot-lic li { margin-bottom: .55rem; }
.foot-bottom { border-top: 1px solid #F0CFA9; padding: 1.1rem 0; font-size: .85rem; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* mobile call bar */
.mobilecall {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--orange-deep); color: #FFF; text-align: center; padding: .95rem 1rem;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: .03em;
  box-shadow: 0 -3px 12px rgba(166, 72, 15, .35);
}
.mobilecall:hover { background: var(--terra); color: #FFF; }

/* ============================================================= responsive */
@media (max-width: 980px) {
  .nav-list > li > a { padding: 1rem .7rem; font-size: .82rem; }
  .cols { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  html { font-size: 18px; }
  html.fs-large { font-size: 20px; }
  html.fs-xlarge { font-size: 22px; }

  .site-head .wrap { justify-content: center; text-align: center; }
  .head-cta { display: none; }

  .nav-toggle { display: flex; }
  .nav-list {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(166, 72, 15, .22);
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 1rem 1.3rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .nav-list > li > a[aria-current="page"] { border-left-color: var(--orange-deep); border-bottom-color: var(--line); }

  .nav-list > li { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
  .nav-list > li > a { grid-column: 1; }
  .sub-toggle {
    display: block; grid-column: 2; background: var(--peach-mid); color: var(--orange-deep); border: 0;
    border-bottom: 1px solid var(--line); width: 3.4rem; font-size: 1.15rem; cursor: pointer;
  }
  .sub-toggle[aria-expanded="true"] { background: var(--orange-deep); color: #FFF; }
  .sub {
    position: static; display: none; grid-column: 1 / -1; min-width: 0;
    border: 0; border-radius: 0; box-shadow: none; background: #FFF6EC; padding: .3rem 0;
  }
  .nav-list > li:hover > .sub { display: none; }           /* hover model off on mobile */
  .nav-list > li:focus-within > .sub { display: none; }
  .nav-list > li.sub-open > .sub { display: block !important; }
  .sub li a { color: var(--ink); padding: .7rem 2rem; }
  .sub li a:hover { background: var(--peach-mid); color: var(--orange-deep); }

  .banner-track img { height: 116px; width: 174px; }
  .hero h1 { font-size: 2.15rem; }
  .pageband h1 { font-size: 1.85rem; }
  .quoteband blockquote { font-size: 1.25rem; }
  .foot-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .mobilecall { display: block; }
  .foot-bottom { padding-bottom: 5.5rem; }
}

/* print */
@media print {
  .topbar, .mainnav, .photobanner, .mobilecall, .ctaband { display: none; }
}
