/* =========================================================
   LOKO DESIGNS — Interior Design, Chennai
   Design system: quiet luxury · charcoal + cream + brass
   ========================================================= */

:root {
  /* Brand palette */
  --ink:        #17150f;   /* near-black, from logo */
  --charcoal:   #232020;
  --cream:      #f5f3ee;   /* warm off-white */
  --cream-2:    #ede9e1;
  --brass:      #b4915f;   /* warm metallic accent */
  --brass-deep: #9a7a4b;
  --taupe:      #8a8078;
  --line:       #e2ddd3;
  --line-dark:  rgba(255,255,255,0.14);

  --text:       #2a2621;
  --text-soft:  #6d665d;
  --text-inv:   #f5f3ee;

  /* Type */
  --f-head: 'Jost', 'Century Gothic', 'Futura', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --sp: clamp(64px, 9vw, 130px);   /* section padding block */
  --radius: 2px;
  --shadow: 0 18px 50px -24px rgba(30,25,18,0.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--f-head); font-weight: 500; line-height: 1.1; margin: 0; color: var(--ink); letter-spacing: .5px; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(var(--wrap), 100% - 2*var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--sp); }
.section--tight { padding-block: clamp(48px,6vw,90px); }
.bg-cream2 { background: var(--cream-2); }
.bg-ink { background: var(--charcoal); color: var(--text-inv); }
.bg-ink h1,.bg-ink h2,.bg-ink h3 { color: var(--text-inv); }

.eyebrow {
  font-family: var(--f-head);
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--brass-deep); margin: 0 0 18px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content:""; width: 28px; height: 1px; background: var(--brass); display:inline-block; }
.bg-ink .eyebrow { color: var(--brass); }

.h-xl { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.h-lg { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.h-md { font-size: clamp(1.4rem, 3vw, 2rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-soft); max-width: 60ch; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }
.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-head); font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid var(--bg); border-radius: var(--radius);
  cursor: pointer; transition: all .35s var(--ease); font-weight: 500;
}
.btn:hover { --bg: var(--brass-deep); border-color: var(--brass-deep); transform: translateY(-2px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--cream); }
.btn--brass { --bg: var(--brass); --fg: #1c1710; border-color: var(--brass); }
.btn--brass:hover { --bg: var(--brass-deep); border-color: var(--brass-deep); --fg: var(--cream); }
.bg-ink .btn--ghost { --fg: var(--cream); border-color: rgba(255,255,255,.4); }
.bg-ink .btn--ghost:hover { --bg: var(--cream); --fg: var(--ink); border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 22px;
}
.site-header.scrolled {
  background: rgba(245,243,238,.92);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; transition: height .4s var(--ease); }
.scrolled .brand img { height: 44px; }
/* logo color: dark logo by default over light hero top? hero is dark → use white logo, swap on scroll */
.brand .logo-dark { display: none; }
.brand .logo-light { display: block; }
.scrolled .brand .logo-dark { display: block; }
.scrolled .brand .logo-light { display: none; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--f-head); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cream); position: relative; padding: 4px 0; font-weight: 400; opacity: .92;
}
.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content:""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--brass); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--brass); }
.scrolled .nav-links a[aria-current="page"] { color: var(--brass-deep); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: .3s var(--ease); }
.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--cream); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content:""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(15,13,10,.82) 0%, rgba(20,17,13,.55) 55%, rgba(20,17,13,.25) 100%);
}
.hero__inner { padding-top: 110px; padding-bottom: 60px; max-width: 760px; }
.hero h1 { color: var(--cream); margin-bottom: 24px; }
.hero .lead { color: rgba(245,243,238,.85); margin-bottom: 36px; }
.hero .eyebrow { color: var(--brass); }
.hero-meta {
  margin-top: 54px; display: flex; gap: clamp(24px,5vw,60px); flex-wrap: wrap;
  border-top: 1px solid var(--line-dark); padding-top: 28px;
}
.hero-meta .stat b { font-family: var(--f-head); font-size: 2.1rem; color: var(--cream); display:block; line-height:1; }
.hero-meta .stat span { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }

/* ---------- Trust strip ---------- */
.strip { border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: center; align-items: center; padding-block: 26px; }
.strip span { font-family: var(--f-head); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; color: var(--text-soft); }
.strip .dot { color: var(--brass); }

/* ---------- Section head ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(40px,5vw,64px); }
.sec-head.center { margin-inline: auto; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: clamp(18px,2.4vw,28px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.bg-cream2 .card { background: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brass); }
.card__num { font-family: var(--f-head); font-size: 13px; letter-spacing: 3px; color: var(--brass-deep); }
.card h3 { margin: 16px 0 12px; font-size: 1.35rem; }
.card p { color: var(--text-soft); margin: 0; font-size: .98rem; }
.card__ico {
  width: 46px; height: 46px; margin-bottom: 22px; color: var(--brass-deep);
  display: flex; align-items: center; justify-content: center;
}
.card__ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* ---------- Portfolio ---------- */
.folio { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.6vw,20px); }
.folio--home { grid-template-columns: repeat(3,1fr); }
.folio a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.folio img { width: 100%; height: 100%; aspect-ratio: 9/7; object-fit: cover; transition: transform .7s var(--ease); }
.folio a:hover img { transform: scale(1.06); }
.folio__cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: var(--cream);
  background: linear-gradient(to top, rgba(15,12,9,.72), rgba(15,12,9,0) 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.folio a:hover .folio__cap { opacity: 1; }
.folio__cap b { font-family: var(--f-head); font-size: 1.15rem; font-weight: 500; }
.folio__cap span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }
.folio .tall { grid-row: span 2; }
.folio .tall img { aspect-ratio: 9/15; height: 100%; }
.folio .wide { grid-column: span 2; }
.folio .wide img { aspect-ratio: 18/7; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,80px); align-items: center; }
.split__img { position: relative; }
.split__img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split__img .badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--brass); color: #1c1710;
  padding: 20px 26px; border-radius: var(--radius);
  font-family: var(--f-head); text-align: center;
}
.split__img .badge b { display:block; font-size: 2rem; line-height:1; }
.split__img .badge span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.split--rev .split__img { order: 2; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(20px,3vw,36px); }
.step { position: relative; }
.step__n { font-family: var(--f-head); font-size: 2.6rem; color: var(--brass); opacity: .5; line-height:1; }
.step h3 { font-size: 1.2rem; margin: 14px 0 10px; }
.step p { font-size: .95rem; color: var(--text-soft); margin: 0; }
.bg-ink .step p { color: rgba(245,243,238,.72); }
.bg-ink .step__n { color: var(--brass); opacity: .85; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,28px); }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; gap: 18px;
}
.quote .stars { color: var(--brass); letter-spacing: 3px; font-size: 14px; }
.quote p { font-size: 1.02rem; color: var(--text); font-style: italic; margin: 0; }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--charcoal); color: var(--brass);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-size: 1rem;
}
.quote .who b { display:block; font-family: var(--f-head); font-weight: 500; }
.quote .who span { font-size: 13px; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--f-head); font-size: 1.12rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brass-deep); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-soft); padding: 0 40px 22px 0; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h-lg { color: var(--cream); margin-bottom: 18px; }
.cta-band p { color: rgba(245,243,238,.8); margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px,5vw,72px); align-items: start; }
.contact-info .item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .item .ic { color: var(--brass-deep); flex: none; margin-top: 3px; }
.contact-info .item b { font-family: var(--f-head); display:block; letter-spacing: 1px; margin-bottom: 3px; }
.contact-info .item a, .contact-info .item span { color: var(--text-soft); }
.contact-info .item a:hover { color: var(--brass-deep); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px,4vw,44px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display:block; font-family: var(--f-head); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--f-body); font-size: 16px; color: var(--text); background: var(--cream);
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--text-soft); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(245,243,238,.7); padding-block: clamp(56px,7vw,84px) 30px; }
.footer a { color: rgba(245,243,238,.7); }
.footer a:hover { color: var(--brass); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer .f-logo img { height: 66px; width: auto; margin-bottom: 20px; }
.footer h4 { color: var(--cream); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer li { margin-bottom: 12px; }
.footer .social { display: flex; gap: 14px; margin-top: 18px; }
.footer .social a {
  width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: .3s var(--ease);
}
.footer .social a:hover { background: var(--brass); border-color: var(--brass); color: #1c1710; transform: translateY(-3px); }
.footer .social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13px; color: rgba(245,243,238,.5); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: 170px; padding-bottom: 70px; background: var(--charcoal); color: var(--cream); overflow: hidden; }
.page-hero::before {
  content:""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 120% at 80% 20%, rgba(180,145,95,.22), transparent 60%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--cream); }
.page-hero .lead { color: rgba(245,243,238,.8); }
.breadcrumb { font-size: 13px; letter-spacing: 1px; color: rgba(245,243,238,.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brass); }

/* ---------- Reveal animation ---------- */
/* Hidden state only applies when JS is present (.js added by inline head script),
   so content stays fully visible if JavaScript is disabled or fails. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; }
[data-reveal].d2 { transition-delay: .16s; }
[data-reveal].d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .steps, .quote-grid, .folio, .folio--home { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column;
    justify-content: center; gap: 26px; background: var(--cream); padding: 40px;
    transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink) !important; font-size: 18px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .grid-3, .grid-2, .steps, .quote-grid, .folio, .folio--home, .split, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .split--rev .split__img { order: 0; }
  .folio .tall, .folio .wide { grid-column: auto; grid-row: auto; }
  .folio .tall img { aspect-ratio: 9/7; }
  .form .row { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__inner { padding-top: 120px; padding-bottom: 70px; }
  .brand img { height: 46px; }
  .scrolled .brand img { height: 40px; }
  .page-hero { padding-top: 120px; padding-bottom: 52px; }
  .hero-meta { gap: 22px 30px; margin-top: 40px; padding-top: 24px; }
  .hero-meta .stat b { font-size: 1.7rem; }
  /* full-width, comfortably tappable buttons on phones */
  .hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .footer .social { justify-content: flex-start; }
  .split__img .badge { left: 12px; bottom: -18px; padding: 16px 20px; }
  .split__img .badge b { font-size: 1.6rem; }
}

/* Extra-small phones */
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .h-xl { font-size: 2.15rem; }
  .hero-meta { gap: 16px 24px; }
  .card { padding: 30px 24px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
