/* ===========================
   NIGHTINGALE CAREGIVING
   Style Sheet
   =========================== */

/* ---------- VARIABLES ---------- */
:root {
  --primary: #1B6B7B;
  --primary-dark: #144f5c;
  --primary-light: #E8F4F7;
  --accent: #6BAE8F;
  --accent-light: #EAF5F0;
  --cta: #D96B3F;
  --cta-hover: #C05A30;
  --bg: #FDFAF6;
  --white: #FFFFFF;
  --text: #2A3540;
  --text-muted: #6B7C8D;
  --border: #E2E8EF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --max-width: 1180px;
  --nav-height: 76px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header.light h2,
.section-header.light p { color: var(--white); }

.section-header.light .section-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}

.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- NAVIGATION ---------- */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}

.nav-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  color: var(--primary);
}

.logo-mark-sm {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.logo-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-phone svg { width: 15px; height: 15px; }

.nav-phone:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

.hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f3d47 0%, #1B6B7B 45%, #2d8b70 100%);
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #A8DBCE;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.hero-trust svg { width: 15px; height: 15px; color: #6BAE8F; flex-shrink: 0; }

/* Hero image side */
.hero-image { position: relative; }

.hero-image-inner { position: relative; }

.hero-img-placeholder {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 40px 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  backdrop-filter: blur(4px);
}

.hero-img-placeholder svg { max-width: 220px; }
.hero-img-placeholder:has(.placeholder-img) { padding: 0; overflow: hidden; }
.hero-img-placeholder .placeholder-img {
  width: 100%;
  max-width: none;
  height: 400px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  border-radius: var(--radius-lg);
}

.hero-stat-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  min-width: 140px;
}

.hero-stat-card.card-1 { bottom: 60px; left: -30px; }
.hero-stat-card.card-2 { top: 40px; right: -20px; }

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-icon {
  font-size: 1.4rem;
  color: var(--cta);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- SERVICES ---------- */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s ease;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.services-cta {
  text-align: center;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
}

.services-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.services-cta strong { color: var(--text); }

/* ---------- ABOUT ---------- */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-image-col { position: relative; }

.about-img-wrap { position: relative; }

.about-img-placeholder {
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
}

.about-img-placeholder svg { max-width: 240px; }
.about-img-placeholder:has(.placeholder-img) { padding: 0; overflow: hidden; }
.about-img-placeholder .placeholder-img {
  width: 100%;
  max-width: none;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: var(--radius-lg);
}

.about-accent-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.about-accent-card svg { width: 20px; height: 20px; color: var(--cta); }

.about-content .section-tag { display: inline-block; }

.about-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.values-list {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.value-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.value-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- WHY US ---------- */
.why-us {
  background: linear-gradient(135deg, #0f3d47 0%, var(--primary) 60%, #2d8b70 100%);
}

.why-us .section-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.why-us h2 { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(4px);
  transition: background 0.25s;
}

.why-card:hover {
  background: rgba(255,255,255,0.13);
}

.why-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A8DBCE;
  margin-bottom: 16px;
}

.why-icon svg { width: 22px; height: 22px; }

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.stars {
  color: #F5A623;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card blockquote {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- CONTACT ---------- */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.contact-info .section-tag { display: inline-block; }

.contact-info h2 { margin-bottom: 12px; }

.contact-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.75;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 20px; height: 20px; }

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail a,
.contact-detail span {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-detail a:hover { color: var(--primary); }

/* Contact Form */
.contact-form-col {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,107,123,0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0e2e36;
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.footer-logo em { font-weight: 400; opacity: 0.7; font-style: italic; }

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-phone {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.2s;
}

.footer-phone:hover { color: #A8DBCE; }

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-email-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-email-link:hover { color: #A8DBCE; }

.footer-service-area {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links-col a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-links-col a:hover { color: var(--white); }

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--white); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; max-width: 640px; padding-top: calc(var(--nav-height) + 40px); }
  .hero-image { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-col { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-col { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 1rem; }
  .nav-phone { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .hero-stat-card.card-1, .hero-stat-card.card-2 { display: none; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- FORM SUCCESS STATE ---------- */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  font-size: 2rem;
}

.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 0.95rem; }
