/*
Theme Name: ASL Interiors
Theme URI: https://aslinteriors.in
Author: ASL Interiors
Author URI: https://aslinteriors.in
Description: Turnkey luxury interiors theme for ASL Interiors, Bengaluru. Black-and-gold branding, WhatsApp lead capture, category carousel and an interior planner. No prices displayed — budget bands and personalised quotes only.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asl-interiors
Tags: business, portfolio, custom-menu, custom-logo, two-columns
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0a;
  --gold: #c9a154;
  --gold-2: #f0d693;
  --cream: #fdfaf3;
  --sand: #f6efe1;
  --card: #ffffff;
  --fg: #2a231d;
  --muted: #7b7166;
  --border: #e6ded0;
  --primary: #a8552e;
  --primary-fg: #fffaf2;
  --forest: #1f2d25;
  --forest-fg: #eef3ee;
  --radius: 10px;
  --wrap: 1140px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.eyebrow-gold { color: var(--gold); }
.lead { color: var(--muted); max-width: 46rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 40px; } .mt-6 { margin-top: 56px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.bg-sand { background: var(--sand); }
.flex-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  color: #14100a;
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 48%, #a8813a 100%);
  box-shadow: 0 8px 22px -10px rgba(201, 161, 84, .75);
}
.btn-gold:hover { box-shadow: 0 12px 28px -10px rgba(201, 161, 84, .9); }
.btn-outline-gold { color: var(--gold); border-color: rgba(201, 161, 84, .55); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: #14100a; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: #8f4426; }
.btn-outline { border-color: var(--border); background: transparent; color: var(--fg); }
.btn-outline:hover { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 10, 10, .96);
  border-bottom: 1px solid rgba(201, 161, 84, .22);
  backdrop-filter: blur(8px);
  color: #f4efe6;
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 20px; max-width: var(--wrap); margin: 0 auto; }
.site-logo { display: flex; align-items: center; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; }
.main-nav a { color: rgba(244, 239, 230, .72); transition: color .18s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; color: rgba(244, 239, 230, .72); }
.header-phone:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: #f4efe6; padding: 6px; cursor: pointer; }
.mobile-nav { display: none; background: var(--ink); border-top: 1px solid rgba(201, 161, 84, .22); padding: 12px 20px 20px; }
.mobile-nav.open { display: block; }
.mobile-nav ul { display: block; }
.mobile-nav a { display: block; padding: 10px 0; color: rgba(244, 239, 230, .8); font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 64px 20px; }
.hero h1 { margin-top: 14px; }
.hero h1 span { color: var(--primary); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.6rem; }
.hero-stats dd { margin: 4px 0 0; }
.hero-media { position: relative; }
.hero-media img { border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(42, 35, 29, .45); object-fit: cover; }
.hero-badge { position: absolute; left: 20px; bottom: -22px; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 18px 40px -22px rgba(42,35,29,.5); font-size: 0.85rem; display: flex; gap: 10px; align-items: center; }
.hero-badge strong { display: block; }
.hero-badge span { color: var(--muted); font-size: 0.78rem; }

/* ---------- Promises ---------- */
.promises { background: var(--sand); border-bottom: 1px solid var(--border); }
.promise p:first-child { font-weight: 600; font-size: 0.92rem; }
.promise p:last-child { color: var(--muted); font-size: 0.82rem; }

/* ---------- Carousel ---------- */
.carousel { position: relative; margin-top: 36px; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 20px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.carousel-slide { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; }
.cat-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: box-shadow .25s ease; }
.cat-card:hover { box-shadow: 0 24px 44px -28px rgba(42,35,29,.5); }
.cat-card img { height: 200px; width: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.04); }
.cat-body { padding: 22px 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-body p { color: var(--muted); font-size: 0.88rem; }
.cat-arrow { margin-top: auto; color: var(--primary); display: flex; justify-content: center; }
.carousel-btn {
  position: absolute; top: 38%; width: 42px; height: 42px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--fg);
  display: grid; place-items: center; cursor: pointer; z-index: 2;
  box-shadow: 0 12px 24px -14px rgba(42,35,29,.5);
}
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); color: #14100a; }
.carousel-btn[disabled] { opacity: .35; cursor: default; }
.carousel-prev { left: -14px; } .carousel-next { right: -14px; }

/* ---------- Panels ---------- */
.panel-forest { background: var(--forest); color: var(--forest-fg); border-radius: 14px; padding: 44px 48px; }
.panel-forest p, .panel-forest .lead { color: rgba(238, 243, 238, .78); }
.panel-forest h2, .panel-forest h3 { color: var(--forest-fg); }
.step-card p:first-child { font-family: var(--font-display); font-size: 1.5rem; color: rgba(123,113,102,.7); }
.step-card p:nth-child(2) { font-weight: 600; margin-top: 12px; }
.step-card p:last-child { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.stars { color: var(--gold); letter-spacing: 2px; }
blockquote { margin: 16px 0 0; color: var(--muted); font-size: 0.92rem; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.check-list .ico { color: var(--primary); flex: 0 0 auto; margin-top: 3px; }

/* ---------- Forms ---------- */
label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--fg); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(168, 85, 46, .35); outline-offset: 1px; border-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { color: var(--muted); font-size: 0.78rem; margin-top: 12px; }

/* ---------- Planner ---------- */
.planner-steps { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 36px; }
.planner-steps li { color: var(--muted); }
.planner-steps li.is-active { color: var(--primary); font-weight: 700; }
.planner-steps li.is-done { color: var(--fg); }
.planner-panel { display: none; }
.planner-panel.is-active { display: block; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; padding: 16px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.92rem;
  transition: border-color .18s ease, background .18s ease;
}
.opt:hover { border-color: rgba(168,85,46,.5); }
.opt.is-selected { border-color: var(--primary); background: #fbf1ea; }
.opt .ico { color: var(--primary); opacity: 0; }
.opt.is-selected .ico { opacity: 1; }
.opt-card { display: block; text-align: left; padding: 20px; }
.opt-card .opt-name { font-weight: 600; margin-top: 8px; }
.opt-card .opt-desc { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
.summary-tile { background: var(--sand); border-radius: 8px; padding: 16px; }
.summary-tile dd { margin: 6px 0 0; font-weight: 600; font-size: 0.92rem; }
.planner-nav { display: flex; justify-content: space-between; margin-top: 32px; }

/* ---------- Info lists ---------- */
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; margin-bottom: 16px; }
.info-list .ico { color: var(--primary); flex: 0 0 auto; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #f4efe6; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; max-width: var(--wrap); margin: 0 auto; padding: 60px 20px; }
.site-footer p, .site-footer a, .site-footer li { color: rgba(244, 239, 230, .7); font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .eyebrow { color: var(--gold); }
.footer-links li, .footer-contact li { margin-top: 10px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .ico { color: var(--gold); flex: 0 0 auto; margin-top: 3px; }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(201, 161, 84, .4); color: var(--gold); transition: background .18s ease, color .18s ease; }
.socials a:hover { background: var(--gold); color: #0a0a0a; }
.footer-bottom { border-top: 1px solid rgba(201, 161, 84, .16); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 20px; }
.footer-bottom p { font-size: 0.76rem; color: rgba(244, 239, 230, .55); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 999px; background: #25d366;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .8);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- WP content ---------- */
.entry-content > * + * { margin-top: 18px; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content ul, .entry-content ol { list-style: disc; padding-left: 22px; }
.entry-content img { border-radius: var(--radius); }
.post-card h2 { font-size: 1.35rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Page templates ---------- */
.page-intro { padding-bottom: 26px; }
.services-hero { background: var(--ink); color: #f4efe6; }
.services-hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: center; gap: 44px; }
.services-hero-main { min-width: 0; }
.services-hero-copy { padding: 12px 0 26px; }
.services-hero-copy h1 { max-width: 630px; }
.services-hero-copy .lead { color: rgba(244, 239, 230, .76); }
.services-hero-image { height: 265px; position: relative; overflow: hidden; border-radius: var(--radius); }
.services-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.services-image-caption { position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: #f4efe6; padding: 8px 12px; font-size: .82rem; border-left: 2px solid var(--gold); }
.services-enquiry { width: 100%; padding: 30px; color: var(--fg); border-radius: var(--radius); }
.services-enquiry h2 { font-size: 1.65rem; }
.services-form-intro { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.services-form-fields { display: grid; gap: 16px; margin-top: 22px; }
.services-form-fields input, .services-form-fields select { min-height: 46px; }
.services-enquiry .form-note { text-align: center; }
.page-intro h1, .wrap > h1, .planner h1 { max-width: 850px; }
.hero-copy h1 { max-width: 640px; }
.hero-copy .lead { max-width: 560px; }
.promise { display: flex; gap: 12px; align-items: flex-start; }
.promise > .ico { color: var(--primary); flex: 0 0 auto; }
.step-card { min-height: 190px; }
.story-card { margin: 0; }
.story-card figcaption strong, .story-card figcaption span { display: block; }
.story-card figcaption span { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.planner-callout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.planner-callout-actions { display: flex; flex-direction: column; gap: 12px; }
.planner-callout-actions .btn { width: 100%; }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 36px; }
.contact-band .hero-cta { margin-top: 0; }
.package-card { display: flex; flex-direction: column; }
.package-card h2 { font-size: 1.55rem; }
.package-for { color: var(--muted); font-size: .9rem; }
.package-card > .btn { margin-top: auto; align-self: flex-start; }
.project-grid { align-items: start; }
.project-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.project-card > a { display: block; overflow: hidden; aspect-ratio: 9 / 7; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-info { padding: 22px; }
.project-info h2 { font-size: 1.28rem; margin-top: 8px; }
.project-info > p:last-child { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.about-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.about-copy { display: grid; gap: 18px; color: var(--muted); }
.studio-card > p:not(.eyebrow) { overflow-wrap: anywhere; }
.studio-card a:not(.btn) { color: var(--primary); }
.studio-stats > .card { display: grid; gap: 4px; }
.studio-stats strong { font-family: var(--font-display); font-size: 1.8rem; }
.studio-stats span { color: var(--muted); font-size: .88rem; }
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.enquiry-form { padding: 30px; }
.contact-aside .panel-forest { border-radius: var(--radius); }
.info-list li { overflow-wrap: anywhere; }
.info-list .ico { color: var(--primary); flex: 0 0 auto; }
.planner-card { margin-top: 24px; padding: 32px; }
.option-grid .opt { min-height: 64px; }
.option-grid .opt-card { min-height: 190px; }
.opt-card .ico { margin-left: auto; }
.planner-panel > h2 { font-size: 1.45rem; }
.planner-nav { gap: 12px; }
.planner-nav [hidden] { display: none; }
.nav-toggle:focus-visible, .btn:focus-visible, .opt:focus-visible, .carousel-btn:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .carousel-slide { flex-basis: calc((100% - 40px) / 3); }
  .hero-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .services-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .services-hero-copy { padding-top: 0; }
  .services-hero-image { height: 300px; }
  .services-enquiry { max-width: 600px; margin: 0 auto; }
}
@media (max-width: 780px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .carousel-slide { flex-basis: calc((100% - 20px) / 2); }
  .form-grid { grid-template-columns: 1fr; }
  .panel-forest { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .header-phone, .header-cta { display: none; }
  .section { padding: 52px 0; }
  .carousel-prev { left: 2px; } .carousel-next { right: 2px; }
  .planner-callout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .contact-band { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .step-card { min-height: 0; }
}
@media (max-width: 540px) {
  .carousel-slide { flex-basis: 100%; }
  .g4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-inner { gap: 32px; padding-top: 42px; }
  .hero-badge { left: 10px; bottom: -18px; font-size: .78rem; }
  .hero-cta .btn { width: 100%; }
  .planner-card, .enquiry-form { padding: 22px 18px; }
  .option-grid .opt-card { min-height: 0; }
  .contact-band .hero-cta, .contact-band .hero-cta .btn { width: 100%; }
  .footer-bottom .wrap { flex-direction: column; }
}
