/* =========================================================
   Palm Royal Home Care — Global Styles
   Brand palette & type per Palm Royal Website Brief
   ========================================================= */

:root {
  /* Brand colors (exact hex from brief) */
  --navy:        #1F3A5F;   /* Royal Navy — headlines, header, primary buttons */
  --coastal:     #2E5A8F;   /* Coastal Blue — links, hover, secondary accents */
  --gold:        #B88E4A;   /* Palm Gold — accents, eyebrows, dividers */
  --gold-dark:   #9c763a;
  --frond:       #55734D;   /* Frond Green — sparing natural callouts */
  --sand:        #F7F4EE;   /* Warm off-white bg — never pure white */
  --sand-deep:   #efe9dd;
  --text-dark:   #333333;   /* Body copy */
  --text-mid:    #666666;   /* Captions, secondary copy */
  --white:       #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(31,58,95,0.06);
  --shadow-md: 0 10px 30px rgba(31,58,95,0.10);
  --shadow-lg: 0 20px 50px rgba(31,58,95,0.14);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--coastal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

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

/* Eyebrow — tracked-out small caps in gold */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .8rem;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #16304f; color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* Sections */
section { padding: 76px 0; }
.section-sand { background: var(--sand); }
.section-white { background: #fdfcfa; }
.section-navy { background: var(--navy); color: #eaf0f7; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: #d9b877; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-mid); font-size: 1.08rem; }

.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--text-mid); }

/* Divider rule */
.rule { width: 54px; height: 3px; background: var(--gold); border: 0; margin: 1rem 0 1.4rem; border-radius: 2px; }
.section-head .rule, .center .rule { margin-left: auto; margin-right: auto; }

/* ================= Header / Nav ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--sand-deep);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 82px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 58px; width: auto; }
.brand .brand-fallback { font-family: var(--serif); font-weight:700; color: var(--navy); font-size:1.3rem; line-height:1; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  color: var(--navy); padding: .55rem .9rem; border-radius: 8px;
}
.nav-links a:hover { background: var(--sand-deep); color: var(--navy); }
.nav-links a.active { color: var(--gold-dark); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px; color: var(--navy);
}
.nav-toggle svg { width: 100%; height: 100%; }

/* ================= Hero ================= */
.hero {
  position: relative; color: #fff;
  min-height: 78vh; display: flex; align-items: center;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,36,58,.86) 0%, rgba(20,36,58,.62) 42%, rgba(20,36,58,.30) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: #e0c082; }
.hero p { font-size: 1.2rem; color: #eaf0f7; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Page banner (interior pages) */
.page-banner {
  background: var(--navy); color: #fff; text-align: center;
  padding: 70px 0 62px;
  position: relative; overflow: hidden;
}
.page-banner::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:5px;
  background: linear-gradient(90deg, var(--gold), var(--frond));
}
.page-banner h1 { color: #fff; margin-bottom: .3rem; }
.page-banner p { color: #d5deea; max-width: 640px; margin: 0 auto; }
.page-banner .eyebrow { color: #e0c082; }

/* ================= Grids / cards ================= */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--sand-deep);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-mid); margin-bottom: 0; font-size: 1rem; }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(184,142,74,.12); color: var(--gold-dark);
}
.card-icon svg { width: 26px; height: 26px; }

/* Feature (why) strip */
.why .card { text-align: left; }

/* How it works steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 66px; }
.step .num {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .25rem; }
.step p { color: var(--text-mid); margin-bottom: 0; }

/* Trust strip */
.trust-strip { background: var(--navy); color: #eaf0f7; padding: 26px 0; }
.trust-strip .items {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px;
  font-weight: 600; font-size: .98rem; text-align: center;
}
.trust-strip .items span { display: inline-flex; align-items: center; gap: .5rem; }
.trust-strip .dot { color: var(--gold); }

/* Values pills */
.values { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.values li {
  list-style: none; background: #fff; border: 1px solid var(--sand-deep);
  padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split .media-caption { font-size: .85rem; color: var(--text-mid); margin-top: .5rem; text-align: center; }

/* Service list (Services page) */
.service-card { display: flex; gap: 18px; }
.service-card .card-icon { flex: 0 0 auto; }
.service-card h3 { font-size: 1.2rem; }

/* Service area list */
.area-list { columns: 2; column-gap: 40px; max-width: 640px; margin: 0 auto; padding: 0; list-style: none; }
.area-list li {
  padding: .5rem 0 .5rem 1.6rem; position: relative; break-inside: avoid;
  border-bottom: 1px solid var(--sand-deep); color: var(--text-dark); font-weight: 500;
}
.area-list li::before { content: "❖"; position: absolute; left: 0; color: var(--gold); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--sand-deep); border-radius: 12px;
  padding: 4px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 700;
  color: var(--navy); font-size: 1.14rem; padding: 18px 0; position: relative;
  padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; color: var(--gold); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-mid); margin: 0 0 18px; }

/* ================= Contact ================= */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .96rem; }
.form-field .req { color: var(--gold-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: .8rem .9rem; font-family: var(--sans); font-size: 1rem;
  color: var(--text-dark); background: #fff;
  border: 1px solid #d9d2c4; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--coastal); box-shadow: 0 0 0 3px rgba(46,90,143,.15);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--text-dark); font-size: .96rem; }
.check input { width: auto; }
.form-note { font-size: .86rem; color: var(--text-mid); }
.hp { position: absolute; left: -9999px; }

.contact-cards .contact-card {
  background: #fff; border: 1px solid var(--sand-deep); border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.contact-card a { font-weight: 600; }
.contact-card .muted { color: var(--text-mid); font-size: .95rem; }

/* Big click-to-call */
.call-band { background: var(--gold); color: #fff; text-align: center; padding: 44px 0; }
.call-band h2 { color: #fff; }
.call-band .btn-primary { background: var(--navy); }
.call-band a.tel { color:#fff; text-decoration: underline; }

/* Careers */
.careers-cta {
  background: #fff; border: 1px solid var(--sand-deep); border-radius: var(--radius);
  padding: 40px; text-align: center; box-shadow: var(--shadow-md); max-width: 720px; margin: 0 auto;
}
.careers-cta .big-email {
  font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.9rem); color: var(--navy);
  font-weight: 700; word-break: break-word;
}

/* Closing CTA */
.cta-band { background: var(--sand-deep); text-align: center; }
.cta-band .inner { max-width: 640px; margin: 0 auto; }

/* ================= Footer ================= */
.site-footer { background: #16304f; color: #b9c6d8; padding: 56px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #cfdaea; }
.site-footer a:hover { color: var(--gold); }
.footer-brand img { height: 54px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity:.95; }
.footer-brand p { max-width: 34ch; color: #9fb0c6; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #8698b0; font-size: .86rem;
}
.footer-bottom a { color: #8698b0; }

/* Utilities */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack > * + * { margin-top: 1rem; }
.badge { display:inline-block; background: rgba(85,115,77,.14); color: var(--frond); font-weight:600; font-size:.8rem; padding:.3rem .7rem; border-radius:999px; }

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split .order-first-mobile { order: -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 82px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--sand-deep);
    padding: 8px 16px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9rem .6rem; border-bottom: 1px solid var(--sand-deep); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta a { justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .area-list { columns: 1; }
  .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
