/* Precious Home Care — Residem-inspired design system */
:root {
  --accent:        #c9a227;
  --accent-dark:   #a6841c;
  --dark:          #0d1117;
  --dark-2:        #1a1f2e;
  --dark-3:        #252b3b;
  --light:         #f8f5f0;
  --white:         #ffffff;
  --muted:         #6b7280;
  --font-display:  "Cormorant Garamond", Georgia, serif;
  --font-body:     "DM Sans", system-ui, sans-serif;
  --section-pad:   5rem;
  --radius:        0.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #374151;
  background: var(--white);
  overflow-x: hidden;
}

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

a { text-decoration: none; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
.font-display,
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3.fs-32 { font-size: clamp(1.6rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }
h6 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.lead-text  { font-size: 1.1rem; color: #4b5563; line-height: 1.7; }
.body-text  { font-size: 0.96rem; color: var(--muted); line-height: 1.75; }
.text-white-60  { color: rgba(255,255,255,0.6); }
.text-white-70  { color: rgba(255,255,255,0.75); }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }

/* ─────────────────────────────────────────────
   ACCENT COLOUR HELPERS
───────────────────────────────────────────── */
.accent-color { color: var(--accent); }

/* ─────────────────────────────────────────────
   SECTION LABEL (subtitle)
───────────────────────────────────────────── */
.subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.subtitle.s2 { color: var(--accent); }

/* ─────────────────────────────────────────────
   SECTION SPACING
───────────────────────────────────────────── */
section { padding: var(--section-pad) 0; }

.section-dark {
  background: var(--dark-2);
  color: rgba(255,255,255,0.85);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5 { color: #fff; }

.section-light { background: var(--light); }

.bg-dark-2 { background: var(--dark-3); }

.spacer-hero   { height: 10rem; }
.spacer-double { height: 3rem; }
.spacer-single { height: 1.5rem; }
.spacer-half   { height: 1rem; }

/* ─────────────────────────────────────────────
   FLOATING HEADER
───────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 1.25rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

#header.header-transparent { background: transparent; }

#header.scrolled {
  background: rgba(13,17,23,0.96);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
#logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Desktop nav */
#main-nav { flex: 1; }
#mainmenu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
#mainmenu li a.menu-item {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  transition: color 0.25s;
}
#mainmenu li a.menu-item:hover { color: var(--accent); }

/* Header right */
.header-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
#mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 998;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
#mobile-nav.open { display: flex; }
#mobile-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  text-align: center;
}
#mobile-nav ul li { margin-bottom: 1.5rem; }
#mobile-nav ul li a {
  color: #fff;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
#mobile-nav ul li a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn-main {
  position: relative;
  display: inline-block;
  padding: 0.65rem 1.8rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-main span { position: relative; z-index: 1; }
.btn-main:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-main.btn-line {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.45);
}
.btn-main.btn-line:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
  color: #fff;
}

.btn-sm-hide { }

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
#section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(13,17,23,0.88) 0%,
    rgba(13,17,23,0.55) 50%,
    rgba(13,17,23,0.62) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 4rem;
}

.hero-heading { color: #fff; }

.hero-bottom-bar {
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
}

.hero-features {
  display: flex;
  justify-content: space-between;
}
.hero-features h6 {
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-size: 0.72rem;
}

/* ─────────────────────────────────────────────
   OVERVIEW — check list + feature blocks
───────────────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.93rem;
  color: #374151;
}
.check-list li i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-block {
  margin-bottom: 0.25rem;
}
.feature-icon {
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.feature-block h4 {
  font-size: 1.1rem;
  color: var(--dark-2);
  margin-bottom: 0.4rem;
}
.feature-block p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────────
   ROOMS — TAB SYSTEM
───────────────────────────────────────────── */
.d-tab-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.d-tab-nav li {
  padding: 0.45rem 1.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  transition: all 0.25s;
  user-select: none;
}
.d-tab-nav li:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}
.d-tab-nav li.active-tab {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.d-tab-content {
  list-style: none;
  padding: 0;
  margin: 0;
}
.d-tab-content > li { display: none; }
.d-tab-content > li:first-child { display: list-item; }

.tab-info-panel {
  background: var(--dark-3);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.tab-info-panel p {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  line-height: 1.75;
}
.tab-info-panel h3 { color: #fff; }

.tab-img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.tab-img-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--radius);
  z-index: 2;
}

.room-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
}

/* ─────────────────────────────────────────────
   GALLERY FILTER
───────────────────────────────────────────── */
#gallery-filters {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
#gallery-filters li a {
  display: block;
  padding: 0.4rem 1.1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid #d1d5db;
  border-radius: 50px;
  transition: all 0.25s;
}
#gallery-filters li a:hover,
#gallery-filters li a.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-item { transition: opacity 0.3s; }
.gallery-item.hidden { display: none; }

.gallery-inner {
  position: relative;
  cursor: pointer;
}
.gallery-inner img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.gallery-inner:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.gallery-inner:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   CARE / DAILY LIFE SECTION
───────────────────────────────────────────── */
.care-table { overflow: hidden; }

.care-row {
  display: flex;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.care-row-alt { background: var(--dark-3); }

.care-cell { flex: 1; }
.care-cell.fw-600 { font-weight: 600; color: rgba(255,255,255,0.9); text-align: right; }

.care-main-img {
  height: 320px;
  object-fit: cover;
}

.stat-box {
  background: var(--dark-3);
  padding: 1.5rem 1rem;
}
.stat-box h4 {
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.stat-box div {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

/* ─────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────── */
.testimonial-card-img {
  border-radius: var(--radius);
}
.testimonial-card-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.testimonial-card-img:hover img { transform: scale(1.04); }

.tcard-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  z-index: 3;
}
.tcard-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(13,17,23,0.88), transparent);
  z-index: 2;
}
.tcard-quote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.tcard-author {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────────── */
.agent-card {
  padding: 2rem 1rem;
}
.agent-avatar {
  width: 90px;
  height: 90px;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--muted);
}
.agent-card h4 { color: var(--dark-2); }

.contact-info-list {
  list-style: none;
  padding: 0; margin: 0;
  text-align: left;
  display: inline-block;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.contact-info-list li i {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-control,
.form-select {
  border-radius: 0;
  border-color: #d1d5db;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: var(--dark-2);
  transition: border-color 0.25s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.18rem rgba(201,162,39,0.2);
  outline: none;
}
.form-control::placeholder { color: #9ca3af; }

.form-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius);
}
.form-msg.success { background: #d1fae5; color: #065f46; }
.form-msg.error   { background: #fee2e2; color: #991b1b; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  padding: 4rem 0 0;
}

.footer-logo {
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-address {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.subfooter {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  border-radius: 50%;
  transition: all 0.25s;
}
.social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-hero,
.reveal-hero-delayed { opacity: 0; }

/* ─────────────────────────────────────────────
   TOAST
───────────────────────────────────────────── */
.toast-container { z-index: 1100; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 991px) {
  #main-nav { display: none; }
  .btn-sm-hide { display: none; }
  .menu-toggle { display: flex; }

  .hero-features { flex-wrap: wrap; gap: 0.75rem; }
  .hero-features h6 { font-size: 0.68rem; }

  .tab-img { height: 280px; }
}

@media (max-width: 767px) {
  :root { --section-pad: 3.5rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero-heading { font-size: 2.25rem; }
  .spacer-hero { height: 7rem; }

  .care-main-img { height: 220px; }
  .testimonial-card-img img { height: 260px; }
  .tab-img { height: 220px; }

  .social-icons { justify-content: center; }
  .subfooter .col-md-6:last-child { text-align: center; margin-top: 0.75rem; }

  .hero-bottom-bar { display: none !important; }
}

@media (max-width: 575px) {
  .d-tab-nav { gap: 0.35rem; }
  .d-tab-nav li { padding: 0.35rem 0.85rem; font-size: 0.68rem; }
  .tab-info-panel { padding: 1.5rem; }
}
