/* =============================================
   Kindness Home Care – Global Styles
   ============================================= */

/* Cookie Banner */
.cookie-banner-slide:not(.hidden) {
  animation: slideUp 0.4s ease forwards;
}
.cookie-banner-slide.hiding {
  animation: slideDown 0.4s ease forwards;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

/* Fonts */
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: #141A18;
  background-color: #FAF9F7;
}

.font-heading {
  font-family: 'Fraunces', Georgia, serif;
}

/* ── Hero Backgrounds ── */
.hero-home {
  background-image: url('https://images.pexels.com/photos/7551654/pexels-photo-7551654.jpeg?cs=srgb&w=2560&q=100');
  background-size: cover;
  background-position: 75% center;
  background-repeat: no-repeat;
  image-rendering: crisp-edges;
}

.hero-page {
  background-image: url('https://images.pexels.com/photos/7345476/pexels-photo-7345476.jpeg?auto=compress&cs=tinysrgb&w=1920&q=85');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ── Service Card Image Placeholders (replaced by <img> tags in HTML) ── */
.svc-img-livein, .svc-img-companion, .svc-img-errands,
.svc-img-cooking, .svc-img-stna, .svc-img-daily { background: #E6E2D8; }

/* ── About & Profile Images ── */
.about-img-1 {
  background-image: url('https://images.pexels.com/photos/8949873/pexels-photo-8949873.jpeg?auto=compress&cs=tinysrgb&w=1200&q=85');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-img-2 {
  background-image: url('https://images.pexels.com/photos/339620/pexels-photo-339620.jpeg?auto=compress&cs=tinysrgb&w=600&q=85');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── CTA Section ── */
.cta-section-bg {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(26, 157, 146, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, #062C2A 0%, #041A18 100%);
}

/* ── Header ── */
#site-header {
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Logo container: white pill on transparent header, invisible when scrolled */
.logo-container {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, border-radius 0.35s ease;
}

#site-header.scrolled .logo-container {
  background: transparent;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#site-header.scrolled {
  background: rgba(250, 249, 247, 0.97) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07);
}

#site-header.scrolled .nav-link {
  color: #383E3C !important;
}

#site-header.scrolled .nav-link:hover,
#site-header.scrolled .nav-link.active {
  color: #A08608 !important;
  background: rgba(196, 164, 16, 0.08) !important;
}

#site-header.scrolled .header-contact {
  color: #5A5246 !important;
}

#site-header.scrolled .header-contact:hover {
  color: #A08608 !important;
}

/* Hamburger: white on transparent header, dark when scrolled */
#menu-toggle {
  color: #FAF9F7;
}

#menu-toggle:hover {
  background-color: rgba(250, 249, 247, 0.10);
}

#site-header.scrolled #menu-toggle {
  color: #262A28;
}

#site-header.scrolled #menu-toggle:hover {
  background-color: rgba(38, 42, 40, 0.08);
}

#site-header.scrolled .logo-text {
  color: #141A18 !important;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  animation: slideDown 0.2s ease;
}

.mobile-menu.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Form Styles ── */
.form-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E6E2D8;
  border-radius: 10px;
  background: #FAFAF8;
  font-size: 14px;
  color: #141A18;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: 'Manrope', system-ui, sans-serif;
}

.form-field:focus {
  border-color: #C4A410;
  box-shadow: 0 0 0 3px rgba(196, 164, 16, 0.12);
}

.form-field::placeholder {
  color: #9A927C;
}

select.form-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A927C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-field {
  resize: vertical;
  min-height: 120px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4A5450;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-label .required {
  color: #C4A410;
  margin-left: 3px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Checkbox & Radio */
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4A5450;
  cursor: pointer;
}

.check-label input[type="checkbox"],
.check-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #C4A410;
  cursor: pointer;
  flex-shrink: 0;
}

/* Section dividers */
.form-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #141A18;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #E6E2D8;
  margin-bottom: 24px;
}

/* File upload */
.file-upload-area {
  border: 2px dashed #D3CDB9;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background: #FAF9F7;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #C4A410;
  background: #FDFCE8;
}

/* Tabs */
.tab-btn {
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.tab-btn.active {
  background: #C4A410;
  color: white;
  border-color: #C4A410;
}

.tab-btn:not(.active) {
  background: #FAF9F7;
  color: #4A5450;
  border-color: #E6E2D8;
}

.tab-btn:not(.active):hover {
  border-color: #C4A410;
  color: #A08608;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Success message */
.form-success {
  display: none;
  padding: 20px 24px;
  background: #F0FAFA;
  border: 1.5px solid #B4E0D8;
  border-radius: 14px;
  color: #0A6058;
}

.form-success.visible {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-feedback {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.form-feedback.error {
  color: #B42318;
}

.form-feedback.success {
  color: #0A6058;
}

button.is-submitting {
  opacity: 0.78;
  cursor: wait;
}

.spam-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250,249,247,0.6);
}

/* ── Policy pages ── */
.policy-content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #141A18;
  margin-top: 40px;
  margin-bottom: 14px;
}

.policy-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: #262A28;
  margin-top: 24px;
  margin-bottom: 10px;
}

.policy-content p {
  font-size: 15px;
  line-height: 1.75;
  color: #4A5450;
  margin-bottom: 16px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content ul li {
  font-size: 15px;
  line-height: 1.75;
  color: #4A5450;
  margin-bottom: 6px;
}

/* ── FAQ Accordion ── */
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-icon { transition: transform 0.3s ease; display: inline-block; }

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Print ── */
@media print {
  #site-header, footer { display: none; }
}
