/* Sri Ramajeyam Stores — warm heritage boutique */

:root {
  --cream: #FAF9F6;
  --cream-dark: #F0EEE8;
  --deep-green: #2E4732;
  --deep-green-dark: #243828;
  --accent-gold: #C5A059;
  --accent-gold-soft: rgba(197, 160, 89, 0.15);
  --terracotta: #A0522D;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --text: #2D241E;
  --text-muted: #5c534c;
  --border: rgba(45, 36, 30, 0.08);
  --shadow-sm: 0 2px 8px rgba(45, 36, 30, 0.06);
  --shadow-md: 0 8px 28px rgba(45, 36, 30, 0.1);
  --shadow-lg: 0 16px 48px rgba(45, 36, 30, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --banner-h: 38px;
  --site-top-h: calc(var(--banner-h) + var(--header-h));
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lato", "Hind Madurai", system-ui, sans-serif;
  --max-w: 1120px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-top-h) + 12px);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* --- Language toggle --- */
.lang-ta {
  display: none !important;
}

body.tamil-mode .lang-en {
  display: none !important;
}

body.tamil-mode .lang-ta {
  display: block !important;
}

body.tamil-mode span.lang-ta,
body.tamil-mode a.lang-ta,
body.tamil-mode strong.lang-ta,
body.tamil-mode em.lang-ta {
  display: inline !important;
}

body.tamil-mode .btn .lang-ta,
body.tamil-mode .wa-btn .lang-ta,
body.tamil-mode .lang-switch .lang-ta {
  display: inline !important;
}

/* --- Layout helpers --- */
.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: var(--deep-green);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head .section-lead {
  margin-inline: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--deep-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46, 71, 50, 0.3);
}

.btn-primary:hover {
  background: var(--deep-green-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--whatsapp);
  color: #fff !important;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: auto;
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.wa-btn:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

.wa-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* --- Top chrome: status banner + header --- */
.site-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
}

/* Slim open/closed + IST strip */
.status-banner {
  min-height: var(--banner-h);
  display: flex;
  align-items: center;
  background: var(--deep-green);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background var(--transition);
}

.status-banner.is-open {
  background: #234a2f;
}

.status-banner.is-closed {
  background: #5c3420;
}

.status-banner-inner {
  width: min(100% - 1.5rem, var(--max-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  padding: 0.45rem 0;
  text-align: center;
}

.status-banner-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-banner-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #8fd4a0;
  box-shadow: 0 0 0 3px rgba(143, 212, 160, 0.22);
  flex-shrink: 0;
}

.status-banner.is-closed .status-banner-status::before {
  background: #e8c48a;
  box-shadow: 0 0 0 3px rgba(232, 196, 138, 0.22);
}

.status-banner-sep {
  opacity: 0.45;
  font-weight: 400;
}

.status-banner-note,
.status-banner-clock {
  font-weight: 600;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

.status-banner-link {
  margin-left: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background var(--transition), border-color var(--transition);
}

.status-banner-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Header --- */
.site-header {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: min(100% - 1.5rem, var(--max-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-green);
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.nav a:hover {
  color: var(--deep-green);
  background: var(--accent-gold-soft);
}

.lang-switch {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: transform var(--transition), background var(--transition);
  flex-shrink: 0;
}

.lang-switch:hover {
  transform: scale(1.04);
  background: #8b4526;
}

.lang-switch:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--site-top-h) + 2rem) 1.25rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(24, 36, 28, 0.78) 0%, rgba(24, 36, 28, 0.55) 45%, rgba(24, 36, 28, 0.72) 100%),
    url("../images/hero.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to top, var(--cream), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: #f5e6c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  opacity: 0.95;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* --- Trust strip --- */
.trust-strip {
  background: var(--deep-green);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.25rem 0;
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 0.15rem;
}

.trust-item span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.trust-item--hours.is-open strong {
  color: #8fd4a0;
}

.trust-item--hours.is-closed strong {
  color: #e8c48a;
}

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

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

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

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 1rem -0.85rem -0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--accent-gold);
  z-index: -1;
}

/* --- Offerings --- */
.offerings {
  background: #fff;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--border);
  min-height: 300px;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 160, 89, 0.45);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold-soft);
  color: var(--deep-green);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  font-family: var(--font-display);
  color: var(--deep-green);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

/* --- Testimonials --- */
.testimonials {
  /* Soft sage wash — clearer band than muddy cream-dark between white offerings & cream contact */
  background:
    linear-gradient(180deg, rgba(46, 71, 50, 0.055) 0%, rgba(46, 71, 50, 0.08) 100%),
    var(--cream);
  border-block: 1px solid rgba(46, 71, 50, 0.06);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  padding: 2rem 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 71, 50, 0.08);
  position: relative;
}

.testimonial-card::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.35;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
}

.testimonial-card footer {
  font-weight: 700;
  color: var(--deep-green);
  font-style: normal;
  font-size: 0.95rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-details h2 {
  margin-bottom: 0.5rem;
}

.contact-details > .section-lead {
  margin-bottom: 1.75rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.contact-item .icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--accent-gold-soft);
  color: var(--deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

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

.contact-item a {
  color: var(--deep-green);
  font-weight: 700;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.hours-live {
  min-width: 0;
}

.hours-live .hours-static {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.hours-live .status-row {
  margin: 0 0 0.4rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill.is-open {
  background: rgba(37, 211, 102, 0.14);
  color: #1a7a3c;
}

.status-pill.is-closed {
  background: rgba(160, 82, 45, 0.12);
  color: #8a4224;
}

.hours-live .local-clock {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--deep-green);
  font-variant-numeric: tabular-nums;
}

.hours-live .hours-note {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.map-frame {
  height: 100%;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--cream-dark);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* --- Footer --- */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer strong {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--accent-gold);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* --- Floating WhatsApp --- */
.fab-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), background var(--transition);
  text-decoration: none;
}

.fab-wa:hover {
  transform: scale(1.08);
  background: var(--whatsapp-dark);
}

.fab-wa svg {
  width: 1.65rem;
  height: 1.65rem;
}

.fab-wa span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  :root {
    --header-h: auto;
  }

  .site-header {
    height: auto;
    padding: 0.75rem 0;
  }

  .status-banner {
    font-size: 0.74rem;
  }

  .status-banner-inner {
    gap: 0.25rem 0.4rem;
    padding: 0.4rem 0;
  }

  .status-banner-link {
    margin-left: 0.15rem;
  }

  .header-inner {
    row-gap: 0.65rem;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    padding-bottom: 0.15rem;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    background: var(--cream-dark);
    white-space: nowrap;
  }

  .hero {
    min-height: min(78vh, 620px);
    padding-top: calc(var(--site-top-h) + 1.5rem);
  }

  .trust-strip .container {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .about-grid,
  .offerings-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .about-visual::before {
    inset: 0.65rem -0.55rem -0.55rem 0.65rem;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .fab-wa {
    right: 1rem;
    bottom: 1rem;
  }

  /* Keep banner to essentials on very small screens */
  .status-banner-sep--clock,
  .status-banner-clock {
    display: none;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
