/* ============================================
   TATVASANA — Main Stylesheet
   ============================================ */

/* --- Brand Tokens --- */
:root {
  /* Gold */
  --gold:           #C89B3C;
  --gold-dark:      #9C6B1F;
  --gold-light:     #E5C76B;
  --gold-tint:      #F5EDD5;

  /* Brown */
  --brown:          #4A3426;
  --brown-mid:      #6A4B3A;

  /* Backgrounds */
  --bg-primary:     #F3EFE8;
  --bg-secondary:   #E8E1D8;
  --surface:        #FFFFFF;

  /* Typography */
  --text:           #4A3426;
  --text-mid:       #6A4B3A;
  --text-muted:     #9B8A7A;

  /* Borders */
  --border:         #E0D6C8;
  --border-strong:  #D2C3AF;

  /* Gradients */
  --gradient-gold:  linear-gradient(135deg, #E5C76B, #C89B3C, #9C6B1F);

  /* Semantic */
  --color-success:  #4CAF50;
  --color-warning:  #D4A017;
  --color-error:    #C0392B;
  --color-info:     #3A6EA5;

  /* Aliases — keep components working without touching every selector */
  --color-primary:      var(--brown);
  --color-primary-dark: var(--brown);
  --color-accent:       var(--gold);
  --color-accent-light: var(--gold-tint);
  --color-white:        var(--surface);
  --color-bg-light:     var(--bg-primary);
  --color-bg-mid:       var(--bg-secondary);
  --color-text:         var(--text);
  --color-text-muted:   var(--text-muted);
  --color-border:       var(--border);

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container:    1100px;
  --section-pad:  80px 24px;

  --shadow-sm:    0 1px 4px rgba(74,52,38,0.08);
  --shadow-md:    0 4px 20px rgba(74,52,38,0.13);
  --radius:       4px;
  --radius-lg:    8px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--brown);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title  { margin-bottom: 14px; }
.section-intro  {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 52px;
}
.centered { text-align: center; }
.centered .section-intro { max-width: 640px; margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold); color: var(--surface); border-color: var(--gold); }

/* For use on DARK backgrounds (CTA banners, page banners) */
.btn-outline {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: var(--surface); color: var(--brown); border-color: var(--surface); }

/* For use on LIGHT backgrounds (hero, inline CTAs) */
.btn-outline-dark {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-dark:hover { background: var(--gold); color: var(--surface); border-color: var(--gold); }


/* ============================================
   HEADER & NAV
   ============================================ */
body > header {
  background: #FFFFFF;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(74,52,38,0.10);
}
main {
  padding-top: 95px;
}
body > header .header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Header logo — dark text on white */
.logo img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-block {
    display: flex;
    flex-direction: column;
}
.tagline {
    position: absolute;
    left: 95px;
    top: 50px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
.header-inner {
    position: relative;
}
.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 20px;      /* match your current logo size */
    font-weight: 700;
}

/* Footer logo — light text on dark brown */
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-secondary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.footer-logo img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-logo span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-left: 5px;
}

body > header nav ul { display: flex; gap: 4px; align-items: center; }
body > header nav ul li a {
  color: var(--gold-dark);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
body > header nav ul li a:hover,
body > header nav ul li a.active:hover {
  background: var(--gold);
  color: var(--surface);
}
body > header nav ul li a.active {
  color: var(--gold-dark);
  background: transparent;
}
body > header nav ul li a.nav-cta {
  background: transparent;
  color: var(--gold-dark);
  border: none;
  padding: 7px 14px;
}
body > header nav ul li a.nav-cta:hover { background: var(--gold); color: var(--surface); }

/* Mobile nav — pure CSS checkbox toggle */
.menu-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
}

/* ============================================
   TABLET (iPad, Android tablets: 761px–1024px)
   ============================================ */
@media (max-width: 1024px) {
  /* Cards: 2 per row on tablet */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid .card,
  .cards-grid .card:nth-child(4),
  .cards-grid .card:nth-child(5) { grid-column: auto; }

  /* Reduce service block sidebar */
  .service-block { grid-template-columns: 160px 1fr; gap: 32px; }

  /* Reduce contact gap */
  .contact-grid { gap: 40px; }
}

/* ============================================
   MOBILE (phones: ≤760px)
   ============================================ */
@media (max-width: 760px) {
  :root { --section-pad: 48px 20px; }

  /* --- Hamburger nav --- */
  .hamburger { display: flex; }
  body > header nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
  }
  body > header .menu-toggle:checked ~ nav { display: block; }
  body > header nav ul { flex-direction: column; align-items: flex-start; gap: 2px; }
  body > header nav ul li { width: 100%; }
  body > header nav ul li a { display: block; padding: 10px 14px; }

  /* --- Hero --- */
  .hero { padding: 60px 20px; }

  /* --- Page banner --- */
  .page-banner { padding: 40px 20px; }

  /* --- CTA banner --- */
  .cta-banner { padding: 48px 20px; }

  /* --- Service cards --- */
  /*----commented by palani 
  .cards-grid { grid-template-columns: 1fr; } 
  ------- */
  .cards-grid {
    grid-template-columns: 1fr; /* Single column for vertical stacking[cite: 1] */
    gap: 16px;
  }
  /* -- commented by palani 
  .cards-grid .card,
  .cards-grid .card:nth-child(4),
  .cards-grid .card:nth-child(5) { grid-column: auto; }
  ----- */
  /* Force cards to take 100% width on mobile[cite: 1] */
  .cards-grid .card,
  .cards-grid .card:nth-child(4),
  .cards-grid .card:nth-child(5) {
    grid-column: 1 / -1 !important; 
    width: 100%;
  }
  /* --- Contact form submit --- */
  .form-submit .btn { width: 100%; text-align: center; }
}


/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--brown);
  padding: 60px 24px 32px;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: block; }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(232,225,216,0.65);
  max-width: 280px;
  line-height: 1.65;
}
.justify-text {
  text-align: justify;
}
.footer-col h4 {
  color: var(--bg-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--gold-light);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(232,225,216,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(232,225,216,0.4);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}


/* ============================================
   PAGE BANNER (inner pages)
   ============================================ */
.page-banner {
  background: var(--brown);
  padding: 64px 24px;
  text-align: center;
}
.page-banner h1 { color: var(--surface); margin-bottom: 12px; }
.page-banner p {
  color: rgba(232,225,216,0.75);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}


/* ============================================
   HOME — HERO
   ============================================ */
.hero {
  background: var(--bg-primary);
  padding: 104px 24px 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(200,155,60,0.08);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(74,52,38,0.04);
  pointer-events: none;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid rgba(200,155,60,0.5);
  border-radius: 2px;
  padding: 5px 14px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--brown);
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
}
.hero p {
  color: var(--brown-mid);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* ============================================
   HOME — WHAT WE DO
   ============================================ */
.services-overview { background: var(--surface); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.cards-grid .card { grid-column: span 2; }
.cards-grid .card:nth-child(4) { grid-column: 2 / 4; }
.cards-grid .card:nth-child(5) { grid-column: 4 / 6; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); }
.card-icon {
  width: 46px; height: 46px;
  background: var(--gold-tint);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--brown); }
.card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }


/* ============================================
   HOME — WHY CHOOSE US
   ============================================ */
.why-us { background: var(--bg-primary); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}
.pillar-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}
.pillar h3 { margin-bottom: 8px; color: var(--brown); }
.pillar p  { font-size: 1.1rem; color: var(--text-muted); margin: 0; }


/* ============================================
   HOME — INDUSTRIES
   ============================================ */
.industries { background: var(--surface); }
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brown-mid);
}


/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--brown);
  padding: 80px 24px;
  text-align: center;
}
.cta-banner h2 { color: var(--surface); margin-bottom: 14px; }
.cta-banner p {
  color: rgba(232,225,216,0.75);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 32px;
}


/* ============================================
   ABOUT — OUR STORY
   ============================================ */
.story { background: var(--surface); }
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.story-visual {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  border-left: 4px solid var(--gold);
}
.story-visual blockquote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--brown);
  font-style: italic;
}
.story-visual cite {
  display: block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
}


/* ============================================
   ABOUT — APPROACH
   ============================================ */
.approach { background: var(--bg-primary); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
}
.step-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 14px; right: 18px;
  line-height: 1;
}
.step h3 { margin-bottom: 10px; color: var(--brown); }
.step p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; }
}


/* ============================================
   ABOUT — TEAM
   ============================================ */
.team { background: var(--surface); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
}
.team-card { text-align: center; }
.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--bg-secondary);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
  border: 3px solid var(--gold-tint);
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; color: var(--brown); }
.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.team-card p { font-size: 0.87rem; color: var(--text-muted); margin: 0; }


/* ============================================
   SERVICES — DETAIL BLOCKS
   ============================================ */
.services-detail { background: var(--surface); }

.service-block {
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-block:first-child { padding-top: 0; }
.service-block:last-child  { border-bottom: none; padding-bottom: 0; }

.service-side { display: flex; flex-direction: column; gap: 10px; }
.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.service-block h3 { font-size: 1.25rem; color: var(--brown); }

.service-body > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.outcomes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.outcomes li {
  font-size: 0.9rem;
  padding-left: 18px;
  position: relative;
  color: var(--text-mid);
}
.outcomes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 760px) {
  .service-block { grid-template-columns: 1fr; gap: 14px; padding: 40px 0; }
}


/* ============================================
   SERVICES — ENGAGEMENT MODEL
   ============================================ */
.engagement { background: var(--bg-primary); }
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.engagement-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.engagement-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--brown); }
.engagement-card p  { font-size: 0.87rem; color: var(--text-muted); margin: 0; }


/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 72px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 24px; }
.llp-tag { color: var(--gold); font-family: var(--font-body); font-size: 0.7em; font-weight: 700; letter-spacing: 0.14em; vertical-align: middle; }

.contact-item { margin-bottom: 24px; }
.contact-item dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.contact-item dd { font-size: 0.93rem; color: var(--text); }
.contact-item dd a { color: var(--gold-dark); transition: color 0.15s; }
.contact-item dd a:hover { color: var(--gold); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 130px; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row     { grid-template-columns: 1fr; }
}
