/* ============================================================
   Shiba Home Health Care — Brand-Aligned Premium Design System
   Colors derived from official logo palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Brand Palette (from logo) ── */
  --primary: #163a5f;
  /* Navy — outer ring */
  --primary-light: #1e5a8a;
  /* Lighter navy */
  --accent: #4db8a4;
  /* Teal — house roof */
  --accent-orange: #e8632b;
  /* Warm Orange — heart */
  --accent-blue: #2980b9;
  /* Blue — caring hand */
  --accent-green: #7cb342;
  /* Green — leaves / trust */
  --ring-blue: #7cb8d4;
  /* Light blue — inner ring */

  /* ── Surfaces ── */
  --surface: #ffffff;
  --background: #f5f9fc;
  --text-main: #1a2e3f;
  --text-muted: #5a7a94;
  --white: #ffffff;

  /* ── Functional ── */
  --success: #7cb342;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* ── Spacing ── */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* ── Effects ── */
  --shadow-sm: 0 1px 3px rgba(22, 58, 95, 0.08);
  --shadow-md: 0 4px 12px rgba(22, 58, 95, 0.1);
  --shadow-lg: 0 12px 28px rgba(22, 58, 95, 0.12);
  --shadow-color: rgba(22, 58, 95, 0.15);
  --glass: rgba(255, 255, 255, 0.85);
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 20px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================= Base Reset ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

a {
  transition: var(--transition);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========================= Header & Navigation ========================= */
.header {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(22, 58, 95, 0.06);
  padding: 8px 0;
  transition: var(--transition);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text .brand-name {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-text .brand-tagline {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

.btn-book-now {
  background: linear-gradient(135deg, var(--accent-orange), #f07840);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(232, 99, 43, 0.3);
  font-weight: 700;
}

.btn-book-now::after {
  display: none !important;
}

.btn-book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 99, 43, 0.4);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* ========================= Buttons ========================= */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 15px 36px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(22, 58, 95, 0.25);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22, 58, 95, 0.3);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  padding: 15px 36px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(77, 184, 164, 0.08);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ========================= Hero Section ========================= */
.hero {
  padding: 140px 0 100px;
  background:
    radial-gradient(ellipse at top right, rgba(77, 184, 164, 0.1), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(22, 58, 95, 0.04), transparent 60%),
    radial-gradient(ellipse at center, rgba(124, 184, 212, 0.05), transparent 70%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  text-align: left;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ========================= Sections ========================= */
.section {
  padding: var(--space-xl) 0;
}

.secondary-bg {
  background: var(--white);
  border-top: 1px solid rgba(22, 58, 95, 0.06);
  border-bottom: 1px solid rgba(22, 58, 95, 0.06);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
  color: var(--primary);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ========================= Service Cards ========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.service-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 58, 95, 0.06);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================= Forms ========================= */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22, 58, 95, 0.04);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #dfe8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--background);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 184, 164, 0.12);
  background: var(--white);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-orange), #f07840);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(232, 99, 43, 0.3);
  letter-spacing: 0.01em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 99, 43, 0.35);
  filter: brightness(1.05);
}

/* ========================= Contact Page ========================= */
.contact-info {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(22, 58, 95, 0.04);
}

.contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.contact-item-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(77, 184, 164, 0.1), rgba(124, 184, 212, 0.1));
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 4px;
  color: var(--primary);
}

.contact-item a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-orange);
}

/* ========================= Footer ========================= */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-lg) 0;
  font-size: 0.9rem;
}

footer h4 {
  color: var(--white);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--white);
}

/* ========================= Animations ========================= */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= Mobile Responsiveness ========================= */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .logo img {
    height: 40px;
    width: 40px;
  }

  .logo-text .brand-name {
    font-size: 0.95rem;
  }

  .logo-text .brand-tagline {
    font-size: 0.6rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
    justify-content: center;
    margin-top: var(--space-lg);
  }

  .hero-cta {
    justify-content: center;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: var(--space-md);
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}