/* ==========================================================================
   HLM Designer & Developers — Shared Stylesheet
   Warm & Modern theme
   ========================================================================== */

:root {
  --cream: #faf6f0;
  --sand: #ece2d3;
  --sand-deep: #ddccb6;
  --terracotta: #b85c38;
  --terracotta-dark: #9c4a2b;
  --haldi: #d99a2b;
  --haldi-soft: #e7b552;
  --indigo: #2c3a57;
  --olive: #6f7250;
  --espresso: #2b2622;
  --espresso-soft: #4a423b;
  --muted: #8a7f74;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(43, 38, 34, 0.06);
  --shadow-md: 0 12px 40px rgba(43, 38, 34, 0.12);
  --radius: 4px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--espresso-soft);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--espresso);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 18px;
  display: inline-block;
}

.section { padding: 110px 0; }
.section--sand { background: var(--sand); }
.section--espresso { background: var(--espresso); }
.section--espresso h2, .section--espresso h3, .section--espresso p { color: var(--cream); }

.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn--primary { background: var(--terracotta); color: var(--white); }
.btn--primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: currentColor; color: var(--espresso); background: transparent; }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.btn--light { border-color: rgba(250,246,240,0.5); color: var(--cream); background: transparent; }
.btn--light:hover { background: var(--cream); color: var(--espresso); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(250,246,240,0.94);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 132px; height: 42px;
  background: url('images/logo.png') left center / contain no-repeat;
  transition: width 0.3s var(--ease), height 0.3s var(--ease); }
.site-header.scrolled .brand-logo { width: 112px; height: 36px; }
.site-header:not(.scrolled).on-dark .brand-logo { background-image: url('images/logo-white.png'); }
.site-footer .brand-logo { width: 150px; height: 48px; background-image: url('images/logo-white.png'); }
@media (max-width: 560px) { .brand-logo { width: 112px; height: 36px; } }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--terracotta); color: var(--white);
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.25rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.28rem; font-weight: 700; color: var(--espresso); }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.site-header:not(.scrolled).on-dark .brand-name { color: var(--cream); }
.site-header:not(.scrolled).on-dark .nav-links a { color: var(--cream); }
.site-header:not(.scrolled).on-dark .menu-toggle span { background: var(--cream); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--espresso-soft);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--terracotta); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--terracotta); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--espresso); transition: all 0.3s; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--espresso); color: var(--sand); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { color: rgba(236,226,211,0.6); margin-top: 18px; max-width: 340px; font-size: 0.95rem; }
.footer-col h4 { color: var(--cream); font-size: 1.35rem; margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; color: rgba(236,226,211,0.65); font-size: 0.92rem; margin-bottom: 12px; transition: color 0.25s; }
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(236,226,211,0.12);
  font-size: 0.82rem; color: rgba(236,226,211,0.45);
}
.footer-social { display: flex; gap: 18px; }

/* Indian motifs ---------------------------------------------------------- */
/* Jaali (lattice) divider — a repeating pierced-screen band */
.jaali-divider {
  height: 46px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23b85c38' stroke-width='1.1' stroke-opacity='0.5'%3E%3Cpath d='M23 2 L44 23 L23 44 L2 23 Z'/%3E%3Cpath d='M23 12 L34 23 L23 34 L12 23 Z'/%3E%3Ccircle cx='23' cy='23' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.9;
}
.jaali-divider--gold {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23d99a2b' stroke-width='1.1' stroke-opacity='0.7'%3E%3Cpath d='M23 2 L44 23 L23 44 L2 23 Z'/%3E%3Cpath d='M23 12 L34 23 L23 34 L12 23 Z'/%3E%3Ccircle cx='23' cy='23' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Decorative eyebrow ornament */
.eyebrow-orn { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-orn::before, .eyebrow-orn::after {
  content: ''; width: 26px; height: 1px; background: var(--haldi); opacity: 0.8;
}

/* Devanagari accent line */
.hindi { font-family: 'Tiro Devanagari Hindi', 'Cormorant Garamond', serif; }

/* Arch-topped image frame (Indo-modern) */
.arch-frame { border-radius: 50% 50% var(--radius) var(--radius) / 22% 22% var(--radius) var(--radius); overflow: hidden; }

/* Instagram grid --------------------------------------------------------- */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ig-tile { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; display: block; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ig-tile:hover img { transform: scale(1.08); }
.ig-tile::after {
  content: '⌾'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.6rem; opacity: 0; background: rgba(43,38,34,0.35); transition: opacity 0.35s;
}
.ig-tile:hover::after { opacity: 1; }
.ig-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.ig-handle { font-weight: 600; color: var(--terracotta); }

@media (max-width: 860px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* Trust strip ------------------------------------------------------------ */
.trust-strip { background: var(--white); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 46px 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .tico { font-size: 1.5rem; color: var(--terracotta); line-height: 1; flex-shrink: 0; }
.trust-item h4 { font-size: 1.2rem; margin-bottom: 3px; }
.trust-item p { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* FAQ -------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--sand-deep); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; color: var(--espresso); font-weight: 600;
}
.faq__q .plus { color: var(--terracotta); font-size: 1.6rem; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq.open .faq__q .plus { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { padding: 0 0 24px; color: var(--muted); margin: 0; }

/* Floating action buttons ----------------------------------------------- */
.fab { position: fixed; right: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-md); cursor: pointer; border: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.fab:hover { transform: translateY(-3px); }
.fab-wa { bottom: 24px; background: #25806b; color: #fff; font-size: 1.5rem; text-decoration: none; }
.fab-top { bottom: 88px; background: var(--espresso); color: var(--cream); font-size: 1.2rem; opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* Philosophy ------------------------------------------------------------- */
.philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.phil { text-align: center; padding: 12px; }
.phil .pk { font-family: 'Tiro Devanagari Hindi', serif; font-size: 1.5rem; color: var(--haldi); display: block; margin-bottom: 6px; }
.phil h3 { font-size: 1.9rem; margin-bottom: 10px; }
.phil h3 small { display: block; font-family: 'Inter'; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta); margin-top: 4px; }
.phil p { color: var(--muted); font-size: 0.95rem; }

/* Capability grid -------------------------------------------------------- */
.capability { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.cap-col h4 { font-size: 1.3rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--terracotta); }
.cap-col ul { list-style: none; }
.cap-col li { font-size: 0.86rem; color: var(--muted); padding: 5px 0; }

/* Services blocks -------------------------------------------------------- */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 40px; }
.svc-block:nth-child(even) .svc-text { order: 2; }
.svc-block img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc-text .num { font-family: 'Cormorant Garamond', serif; color: var(--terracotta); font-weight: 700; font-size: 1.1rem; }
.svc-text h3 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 8px 0 14px; }
.svc-text p { color: var(--muted); margin-bottom: 14px; }
.svc-text ul { list-style: none; margin-bottom: 8px; }
.svc-text li { padding: 4px 0; color: var(--espresso-soft); font-size: 0.92rem; display: flex; gap: 10px; }
.svc-text li::before { content: '—'; color: var(--terracotta); }

/* Case study ------------------------------------------------------------- */
.cs-hero { min-height: 62vh; display: flex; align-items: flex-end; position: relative; color: var(--cream); padding-bottom: 54px; }
.cs-hero__media { position: absolute; inset: 0; z-index: -2; }
.cs-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(25,20,17,0.85), rgba(25,20,17,0.15)); }
.cs-hero .eyebrow { color: var(--haldi-soft); }
.cs-hero h1 { color: var(--cream); font-size: clamp(2.4rem, 5.5vw, 4rem); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--sand-deep); }
.cs-meta .k { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cs-meta .v { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--espresso); }
.cs-body { max-width: 760px; margin: 0 auto; }
.cs-body h2 { font-size: 2rem; margin: 12px 0 14px; }
.cs-body p { color: var(--espresso-soft); margin-bottom: 18px; }
.cs-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 20px 0; }
.cs-gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cs-gallery .wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
.cs-quote { background: var(--sand); border-left: 3px solid var(--terracotta); padding: 30px 34px; border-radius: var(--radius); margin: 30px 0; }
.cs-quote p { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-style: italic; color: var(--espresso); margin-bottom: 10px; }
.cs-quote .who { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Blog ------------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.post-card .cat { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.post-card h3 { font-size: 1.5rem; margin: 8px 0 10px; }
.post-card p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.post-card .more { margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.06em; }
.post-body { max-width: 740px; margin: 0 auto; }
.post-body h2 { font-size: 1.9rem; margin: 26px 0 12px; }
.post-body p { color: var(--espresso-soft); margin-bottom: 16px; }
.post-body ul { margin: 0 0 16px 22px; color: var(--espresso-soft); }
.post-body li { margin-bottom: 8px; }

/* Legal ------------------------------------------------------------------ */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.6rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--espresso-soft); margin-bottom: 12px; }
.legal ul { margin-left: 22px; }

/* Cookie banner ---------------------------------------------------------- */
.cookie { position: fixed; bottom: 16px; left: 16px; right: auto; z-index: 120;
  max-width: min(330px, calc(100vw - 32px));
  background: var(--espresso); color: var(--cream); border-radius: var(--radius); padding: 11px 13px;
  box-shadow: var(--shadow-md); display: none; align-items: center; gap: 10px; }
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: 0.76rem; line-height: 1.4; color: rgba(250,246,240,0.82); flex: 1; }
.cookie a { color: var(--haldi-soft); text-decoration: underline; }
.cookie .btn { padding: 6px 14px; font-size: 0.7rem; flex-shrink: 0; }

@media (max-width: 860px) {
  .philosophy { grid-template-columns: 1fr; gap: 24px; }
  .capability { grid-template-columns: 1fr 1fr; }
  .svc-block { grid-template-columns: 1fr; gap: 26px; }
  .svc-block:nth-child(even) .svc-text { order: 0; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* Reveal animation ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 74%; max-width: 340px;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 100px 40px; gap: 26px; transition: right 0.4s var(--ease); box-shadow: var(--shadow-md);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
