/* COLOR SYSTEM – EARTHY AYURVEDA PALETTE */
:root {
  --deep-green: #1b4d3e;
  --leaf: #4f9c57;
  --leaf-light: #e5f3e7;
  --earth: #9a5825;
  --sun: #f5bf3b;
  --cream: #f8f4ec;
  --ink: #203028;
  --white: #ffffff;
  --brand-green-bright: #38c792; /* brighter clinic-name color */
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* RESET & BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--deep-green);
}

h2 {
  font-size: 1.7rem;
  text-align: left;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section-alt {
  background: var(--white);
}

.section-leaf {
  background: radial-gradient(circle at top left, #edf8f0, var(--cream));
}

.section-intro {
  max-width: 640px;
  margin: 4px auto 32px;
  text-align: center;
}

/* BRAND NAME COLOR */

.brand-name {
  color: var(--brand-green-bright);
}

/* TOP STRIP */

.top-strip {
  background: var(--earth);
  color: var(--white);
  text-align: center;
  font-size: 0.82rem;
  padding: 6px 12px;
  letter-spacing: 0.08em;
}

/* HERO */

.hero {
  position: relative;
  background: linear-gradient(135deg, #0b2338, #0d3528);
  color: var(--white);
  padding: 80px 0 72px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: -120px;
  opacity: 0.18;
  background-image: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.4),
      transparent 60%
    ),
    radial-gradient(circle at bottom right, #f5bf3b33, transparent 55%),
    repeating-radial-gradient(
      circle at center,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.12) 19px,
      rgba(255, 255, 255, 0.12) 20px
    );
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr;
  gap: 26px;
  z-index: 1;
}

.hero-text h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.hero-text p {
  font-size: 1rem;
  max-width: 520px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fef5d8;
  margin-bottom: 8px;
}

.hero-tag::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--sun);
  border-radius: 999px;
}

.hero-cta {
  margin: 18px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.hero-benefits li::before {
  content: "✽";
  color: var(--sun);
  margin-right: 6px;
}

/* HERO VISUAL CARD */

.hero-card {
  background: rgba(248, 244, 236, 0.98);
  color: var(--ink);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e6dac6;
}

.hero-visual {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  inset: auto 10px 10px;
  background: rgba(248, 244, 236, 0.94);
  border-radius: 16px;
  padding: 12px 14px 14px;
  border: 1px solid #e6dac6;
}

.hero-card h2 {
  margin-bottom: 2px;
  font-size: 1.25rem;
}

.hero-card p {
  font-size: 0.9rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  font-size: 0.86rem;
}

.hero-card ul li::before {
  content: "➤";
  margin-right: 6px;
  color: var(--leaf);
}

/* BUTTONS */

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease;
}

.btn-primary {
  background: var(--sun);
  color: #4c2b00;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #ffcf54;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--leaf);
  color: #ffffff;
}

.btn-secondary:hover {
  background: #3b7a42;
}

.btn-ghost {
  background: transparent;
  color: #fdf5d7;
  border: 1px solid rgba(247, 228, 176, 0.8);
}

.btn-ghost:hover {
  background: rgba(247, 228, 176, 0.12);
}

.btn-primary.full {
  width: 100%;
}

/* NAV */

.nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 15;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fdf5d8, var(--leaf));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #102219;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.83rem;
  color: var(--brand-green-bright);
}

.nav-toggle {
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--deep-green);
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  flex-direction: column;
  width: 100%;
  text-align: left;
}

.nav-links li {
  border-top: 1px solid #eee;
}

.nav-links a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--leaf);
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pillar {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: var(--white);
  border-left: 4px solid var(--leaf);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.pillar h3 {
  margin-bottom: 4px;
}

.about-image img {
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* CARDS */

.cards-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.cards-grid.three {
  grid-template-columns: 1fr;
}

.cards-grid.two {
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf1e9;
}

.card-highlight {
  background: var(--leaf-light);
  border-color: #c3e3c7;
}

.card h3 {
  margin-bottom: 6px;
}

.doctor-card {
  border-top: 4px solid var(--earth);
}

.reg {
  font-size: 0.8rem;
  color: #6d716b;
}

/* SECTION ICONS & SERVICE ICONS */

.section-header-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
  text-align: center;
}

.section-header-with-icon h2 {
  margin: 0;
}

.section-icon {
  width: 32px;
  height: 32px;
}

.service-card {
  text-align: left;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

/* CARE */

.care-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 22px;
}

.care-block {
  background: var(--leaf-light);
  border-radius: 18px;
  padding: 18px 16px 18px;
  border: 1px solid #d3e4d6;
}

.care-block h3 {
  margin-bottom: 8px;
}

.care-block ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
}

.care-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.care-icon {
  width: 34px;
  height: 34px;
}

/* APPOINTMENT */

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.contact-form {
  background: var(--white);
  padding: 18px 16px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

input,
textarea,
select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d3d9cc;
  font-family: inherit;
  font-size: 0.92rem;
  background: #fbfaf6;
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.78rem;
  color: #6f746f;
  margin-top: 6px;
}

.contact-panel {
  padding: 18px 16px 18px;
  border-radius: 18px;
  background: linear-gradient(150deg, #e4f4e7, #f5f0df);
  border: 1px solid #d3e2d5;
}

.contact-phone {
  font-weight: 600;
}

.contact-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(27, 77, 62, 0.06);
  color: var(--deep-green);
  border: 1px solid rgba(27, 77, 62, 0.18);
}

.badge-green {
  background: rgba(79, 156, 87, 0.08);
}

.contact-image img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* FOOTER */

.footer {
  background: #102219;
  color: #dde5dd;
  padding: 16px 0;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.footer-small {
  opacity: 0.8;
}

/* PRELOADER */

#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #f8f4ec, #e5f3e7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preloader-inner {
  text-align: center;
  color: #1b4d3e;
  font-size: 0.9rem;
}

/* outer herbal circle */
.preloader-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(26, 112, 72, 0.18);
  border-top-color: var(--brand-green-bright);
  border-right-color: var(--brand-green-bright);
  margin: 0 auto 10px;
  animation: spin 1.1s linear infinite;
  position: relative;
}

/* leaf inside */
.preloader-leaf {
  width: 26px;
  height: 26px;
  border-radius: 50% 0 50% 50%;
  background: linear-gradient(135deg, var(--brand-green-bright), #1e8a5c);
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  transform: translate(-50%, -50%) rotate(-20deg);
  animation: leaf-breath 1.8s ease-in-out infinite;
}

.preloader-inner p {
  margin: 4px 0 0;
}

/* animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes leaf-breath {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(-20deg);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.15) rotate(-10deg);
  }
}

/* RESPONSIVE */

@media (min-width: 720px) {
  .hero-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    width: auto;
    gap: 18px;
  }

  .nav-links li {
    border: none;
  }

  .nav-links a {
    padding: 0;
    font-size: 0.88rem;
  }

  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .section-header-with-icon {
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
