/*
Theme Name: Bharath Interiors
Theme URI: https://example.com
Author: Aathikesavan S
Author URI: https://linkedin.com/in/aathi-kesavan-ab84302a0
Description: A refined black, gold, and white custom theme for Bharath Interiors. Built around a 60/20/20 palette (white / black / gold) with a 360 panorama project showcase.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bharath-interiors
*/

/* ============================================================
   DESIGN TOKENS  —  60% white · 20% black · 20% gold
   ============================================================ */
:root {
  --white:     #FFFFFF;
  --paper:     #FAF9F5;
  --panel:     #F1EEE6;
  --ink:       #111110;
  --ink-soft:  #3C3A34;
  --gold:      #A5892A;
  --gold-deep: #806717;
  --gold-soft: #C9B563;
  --stone:     #8C877C;
  --line:      rgba(17,17,16,0.14);
  --line-soft: rgba(17,17,16,0.07);
  --gold-line: rgba(165,137,42,0.35);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1220px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 10vw, 8.5rem);

  --ease: cubic-bezier(0.4, 0, 0.1, 1);
}

/* ============================================================ RESET / BASE ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-block;
  margin-bottom: 1.1rem;
}

/* ============================================================ BUTTONS ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ============================================================ SITE HEADER ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--white) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.15rem;
}
.brand { font-family: var(--font-display); line-height: 1; display: inline-block; }
.brand .brand__name {
  font-size: 1.35rem; letter-spacing: 0.34em; font-weight: 500;
  color: var(--gold-deep); text-transform: uppercase; display: block;
}
.brand .brand__sub {
  font-size: 0.6rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--ink); font-family: var(--font-body); font-weight: 600;
  margin-top: 0.25rem; padding-left: 0.34em;
}
.brand .custom-logo { max-height: 58px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em;
  position: relative; padding-block: 0.3rem;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-menu a:hover::after, .nav-menu .current-menu-item a::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: var(--ink); padding: 0.25rem;
}

/* ============================================================ HERO ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(5rem, 13vw, 10rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 84% 6%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 52%),
    radial-gradient(90% 80% at 4% 100%, var(--panel), transparent 62%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.hero__eyebrow { font-size: 0.78rem; }
.hero h1 {
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  font-optical-sizing: auto;
  max-width: 14ch;
  margin-bottom: 0.4em;
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero__lede {
  max-width: 46ch; font-size: 1.15rem; color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__media {
  aspect-ratio: 4/5; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--gold-line); position: relative;
  box-shadow: 0 30px 60px -30px rgba(17,17,16,0.35);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.reveal { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.reveal:nth-child(1) { animation-delay: .05s; }
.reveal:nth-child(2) { animation-delay: .18s; }
.reveal:nth-child(3) { animation-delay: .30s; }
.reveal:nth-child(4) { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================ SECTIONS ============================================================ */
.section { padding-block: var(--section-y); }
.section--panel { background: var(--panel); }
.section__head { max-width: 52ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intro-grid__media {
  aspect-ratio: 4/5; border-radius: 6px; overflow: hidden;
  background: linear-gradient(150deg, var(--ink) 0%, #2a2822 55%, var(--gold-deep) 130%);
  position: relative; border: 1px solid var(--gold-line);
}
.intro-grid__media::after {
  content: "Replace with studio photo"; position: absolute; inset: 0;
  display: grid; place-items: center; color: rgba(255,255,255,.7);
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.intro-grid__media--logo {
  background: var(--white); display: grid; place-items: center; padding: 3rem;
}
.intro-grid__media--logo::after { content: none; }
.intro-grid__media--logo img { max-width: 62%; height: auto; }
.stat-row { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-size: 2.4rem; display: block; line-height: 1; color: var(--gold-deep); }
.stat span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.service {
  display: block; background: var(--white); padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.section--panel .service { background: var(--panel); }
.service:hover { background: var(--ink); color: var(--white); }
.service:hover p { color: rgba(255,255,255,.75); }
.service:hover .service__num { color: var(--gold-soft); }
.service__num { font-family: var(--font-display); color: var(--gold-deep); font-size: 1.1rem; }
.service h3 { font-size: 1.55rem; margin-top: .6rem; }
.service p { color: var(--ink-soft); font-size: .98rem; margin: 0; transition: color .4s var(--ease); }

.section__foot { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}
.project-card { position: relative; border-radius: 6px; overflow: hidden; display: block; }
.project-card__media {
  aspect-ratio: 3/2;
  background: linear-gradient(150deg, var(--ink), #33302a);
  position: relative; display: grid; place-items: center;
  border: 1px solid var(--gold-line);
}
.project-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.project-card__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: var(--ink); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; padding: .45rem .8rem;
  border-radius: 100px; display: flex; align-items: center; gap: .4rem; font-weight: 700;
}
.project-card__body { padding: 1.2rem .2rem; }
.project-card h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.project-card span { color: var(--stone); font-size: .88rem; }
.projects-note {
  margin-top: 2.5rem; padding: 1.2rem 1.5rem; border: 1px dashed var(--gold-line);
  border-radius: 6px; font-size: .9rem; color: var(--ink-soft); background: var(--paper);
}

.cta {
  background: var(--ink); color: var(--white);
  padding-block: clamp(4rem, 9vw, 7rem); text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 120% at 50% -10%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%);
}
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; margin-inline: auto; }
.cta h2 em { font-style: italic; color: var(--gold-soft); }
.cta .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); margin-top: 1.5rem; }
.cta .btn:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* ============================================================ FOOTER ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; background: var(--paper); }
.site-footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-nav { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 1rem 0 0; flex-wrap: wrap; }
.footer-nav a { font-size: .9rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--gold-deep); }
.site-footer__base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--stone);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* ============================================================ GENERIC PAGE ============================================================ */
.page-hero { padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.entry-content { max-width: 68ch; padding-bottom: var(--section-y); }
.entry-content p { margin-bottom: 1.3rem; }
.entry-content h2 { font-size: 2rem; margin-top: 2.2rem; }
.entry-content a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a.btn { text-decoration: none; }

/* ============================================================ ABOUT PAGE ============================================================ */
.about-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--ink) 0%, #2a2822 55%, var(--gold-deep) 130%);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}
.about-banner__logo { max-width: min(280px, 60vw); margin: 0 auto 1.75rem; }
.about-banner .eyebrow { color: var(--gold-soft); }
.about-banner p {
  max-width: 52ch; margin-inline: auto; color: rgba(255,255,255,0.78); font-size: 1.05rem;
}
.about-detail { max-width: 62ch; margin-inline: auto; }
.about-detail p { color: var(--ink-soft); font-size: 1.08rem; }
.about-detail .stat-row { justify-content: center; }

/* ============================================================ PANORAMA VIEWER ============================================================ */
.panorama-viewer {
  aspect-ratio: 16/9; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--gold-line); background: var(--ink);
}
.panorama-note {
  margin-top: 1rem; font-size: .85rem; color: var(--stone);
}

/* ============================================================ WHATSAPP LINK ============================================================ */
.btn--whatsapp { background: #25D366; border-color: #25D366; color: #0b3d1e; }
.btn--whatsapp:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .5rem; color: var(--gold-deep); font-weight: 600; font-size: .95rem;
}
.footer-whatsapp:hover { text-decoration: underline; }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16/10; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid__media { aspect-ratio: 16/10; order: -1; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
    background: var(--panel); padding: 6rem 2rem 2rem;
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.12);
  }
  .nav-menu.is-open { transform: none; }
  .nav-toggle { display: block; z-index: 60; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
