/* ================================================
   T.K. PHARMA  –  style.css  (Fully Responsive)
   Color palette:
     --green-dark   #1a7a4a
     --green-mid    #27a065
     --green-light  #e8f5ee
     --green-line   #b3dfc6
     --text-dark    #1c2a22
     --text-body    #445a4e
     --text-muted   #7a968a
     --white        #ffffff
     --off-white    #f7faf8
================================================ */

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

:root {
  --green-dark:   #1a7a4a;
  --green-mid:    #27a065;
  --green-light:  #e8f5ee;
  --green-line:   #b3dfc6;
  --text-dark:    #1c2a22;
  --text-body:    #445a4e;
  --text-muted:   #7a968a;
  --white:        #ffffff;
  --off-white:    #f7faf8;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-card:  0 4px 20px rgba(26,122,74,.10);
  --shadow-hover: 0 8px 32px rgba(26,122,74,.18);
  --transition:   0.28s ease;
  --nav-h:        68px;
}

html {
  scroll-behavior: smooth;
  /* prevent horizontal overflow globally */
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.25;
}

/* clamp: min | preferred | max */
h1 { font-size: clamp(2rem, 5vw + 1rem, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); margin-bottom: .4rem; }
h4 { font-size: 1rem; margin-bottom: .6rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: .5rem;
}

.center { text-align: center; }

.section-intro {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

/* ─── LAYOUT HELPERS ────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ─── BUTTONS ───────────────────────────────── */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  /* Touch-friendly min size */
  min-height: 44px;
  text-align: center;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,122,74,.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--green-mid);
  box-shadow: 0 6px 22px rgba(26,122,74,.45);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  margin-top: 1.5rem;
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── LOGO ──────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.logo-icon { flex-shrink: 0; }

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--text-dark);
}

.logo-text span { color: var(--green-dark); }
.logo-light .logo-text { color: var(--white); }
.logo-light .logo-text span { color: #7febb7; }

/* ─── HEADER ─────────────────────────────────── */
.site-header {
 position: fixed;
left: 0;
right: 0;
width: 100%;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-line);
  box-shadow: 0 2px 12px rgba(26,122,74,.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

/* Desktop nav links */
.main-nav ul {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
  white-space: nowrap;
  /* Touch-friendly */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a:focus { color: var(--green-dark); }
.main-nav a:hover::after,
.main-nav a:focus::after { width: 100%; }

/* ─── HAMBURGER BUTTON ───────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
}

.nav-toggle:hover { background: var(--green-light); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
min-height: 92svh;
padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../images/home.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.40) 60%,
    rgba(0,0,0,.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem clamp(1rem, 5vw, 1.5rem);
  max-width: 680px;
  width: 100%;
}

.hero-eyebrow {
  font-size: clamp(.72rem, 2vw, .82rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7febb7;
  font-weight: 600;
  margin-bottom: .8rem;
}

.hero-heading {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
  margin-bottom: .6rem;
}

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2.2rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* ─── TRUSTED SINCE ──────────────────────────── */
.trusted { background: var(--off-white); }

.trusted-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.trusted-copy p { color: var(--text-body); }

.trusted-copy em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 600;
}

.trusted-image {
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(240px, 35vw, 360px);
  box-shadow: var(--shadow-card);
  position: relative;
}

.trusted-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px rgba(26,122,74,.12);
}

/* ─── ABOUT ──────────────────────────────────── */
.about { background: var(--white); padding-top: 0; }

.about-banner {
  position: relative;
  height: clamp(200px, 30vw, 380px);
  overflow: hidden;
}

.about-banner img {
  object-position: center 40%;
  transition: transform 8s ease;
}

.about-banner:hover img { transform: scale(1.04); }

.about-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(78, 81, 79, 0.55) 0%,
    rgba(107, 110, 108, 0.65) 100%
  );
  mix-blend-mode: multiply;
}

.about-body {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  max-width: 820px;
}

.about-body p { color: var(--text-body); }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  border: 1px solid var(--green-line);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pillar:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.pillar-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: .8rem;
}

.pillar h3 { color: var(--green-dark); }
.pillar p  { font-size: .9rem; color: var(--text-body); margin: 0; }

/* ─── GALLERY ────────────────────────────────── */
.gallery-section { background: var(--off-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.8rem, 2vw, 1.2rem);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.gallery-item img {
  transition: transform .5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

/* ─── CONTACT ─────────────────────────────────── */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: .95rem;
}

/* Info cards */
.info-cards { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--green-line);
  background: var(--off-white);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
  border-color: var(--green-mid);
}

.info-icon {
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  padding: .5rem;
  margin-top: .1rem;
}

.info-icon.whatsapp { color: #25d366; background: #e6faf0; }
.info-icon svg { width: 100%; height: 100%; }

.info-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}
.info-card p { font-size: .88rem; color: var(--text-body); margin: 0; }

/* Map */
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(300px, 45vw, 520px);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--green-line);
  /* removed the huge 15rem margin-top */
  margin-top: 0;
  align-self: center;
}

.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ─── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.72);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p {
  margin-top: 1.2rem;
  font-size: .88rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: .7rem; }

.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  /* Touch-friendly */
  display: inline-block;
  min-height: 36px;
  line-height: 36px;
}

.footer-links a:hover { color: #7febb7; }

.footer-contact p {
  font-size: .85rem;
  margin-bottom: .8rem;
  line-height: 1.6;
}

.footer-contact strong {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}

.footer-bottom {
  padding: 1.4rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dev-credit-link {
  color: #7febb7;
  transition: color var(--transition);
}
.dev-credit-link:hover { color: var(--white); }

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Mobile-first: base = mobile, scale up
══════════════════════════════════════════════ */

/* ── DESKTOP 1440px+ ─────────────────────────── */
@media (min-width: 1440px) {
  .container { max-width: 1280px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── LAPTOP 1024px – 1439px ──────────────────── */
@media (max-width: 1439px) and (min-width: 1024px) {
  .trusted-grid { gap: 3rem; }
  .contact-grid { gap: 3rem; }
}

/* ── TABLET 768px – 1023px ───────────────────── */
@media (max-width: 1023px) {

  /* Trusted: stack */
  .trusted-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .trusted-image { height: 300px; }

  /* Pillars: 2 col on tablet */
  .pillars { grid-template-columns: repeat(2, 1fr); }

  /* Gallery: 2 col */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact: stack */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map {
    height: 380px;
    margin-top: 0;
  }

  /* Footer: 2 col */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
}

/* ── MOBILE 320px – 767px ────────────────────── */
@media (max-width: 767px) {

  :root { --nav-h: 60px; }

  /* ── Hamburger visible, desktop nav hidden ── */
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--green-line);
    box-shadow: 0 8px 24px rgba(26,122,74,.12);
    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    z-index: 199;
  }

  .main-nav.is-open {
    max-height: 320px;
    padding: .5rem 0 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-nav a {
    font-size: 1rem;
    padding: .85rem 1.5rem;
    min-height: 50px;
    border-bottom: 1px solid var(--green-light);
  }

  .main-nav a::after { display: none; }

  /* ── Hero: disable fixed attachment (iOS bug) ── */
  .hero {
    background-attachment: scroll;
    min-height: 80vh;
    min-height: 80svh;
  }

  /* ── Trusted: single col ── */
  .trusted-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .trusted-image { height: 240px; }

  /* ── About banner shorter ── */
  .about-banner { height: 200px; }

  /* ── Pillars: single col ── */
  .pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  /* ── Gallery: 2 col tight ── */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  /* ── Contact: single col ── */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-map { height: 300px; }

  /* Card hover: no translateX (too wide on mobile) */
  .info-card:hover { transform: none; }

  /* ── Footer: single col ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: auto; }
  .footer-brand p { max-width: 100%; }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: .4rem;
  }

  /* ── Buttons full-width on mobile ── */
  .btn-primary,
  .btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Section intro max-width 100% */
  .section-intro { max-width: 100%; }
}

/* ── SMALL MOBILE: 320px – 479px ─────────────── */
@media (max-width: 479px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 4 / 3; }
  .contact-map { height: 260px; }
}

/* ── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero { background-attachment: scroll; }
  .about-banner img { transition: none; }
}
