/* ==========================================================================
   Interior Directory India - Core Stylesheet
   Pure Vanilla CSS, Zero Dependencies, Minimal, Fast, SEO-Optimized
   ========================================================================== */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f4f5f7;
  --surface-elevated: #ffffff;
  --border: #e2e4e8;
  --border-subtle: #eeeff2;
  --text: #191c21;
  --text-muted: #5a6270;
  --text-dim: #828a98;
  --accent: #9c5427; /* Architectural terracotta */
  --accent-hover: #80421d;
  --accent-light: #faf2ec;
  --accent-border: #f0d5c2;
  --tag-bg: #f1f3f6;
  --tag-text: #343a46;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --max-w: 1120px;
  --gap: 1.5rem;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

main {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-dot {
  color: var(--accent);
}

.brand-sub {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 0.5rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff !important;
}

.btn-nav:hover {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Breadcrumb Navigation (SEO Essential)
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: 0.85rem 0;
  font-size: 0.84rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--border);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero & Page Headers
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.page-title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Quick Links & Chips Bar (Sub-navigation)
   -------------------------------------------------------------------------- */
.subnav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.subnav-pill:hover, .subnav-pill.active {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Filter Section (City Hub Page)
   -------------------------------------------------------------------------- */
.filter-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 820px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

.filter-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}

.filter-control:focus {
  border-color: var(--text);
}

.btn-filter-reset {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.btn-filter-reset:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Directory Grid & Designer Cards
   -------------------------------------------------------------------------- */
.directory-section {
  padding: 2rem 0 4rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.studio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.studio-card:hover {
  border-color: var(--text-dim);
  box-shadow: var(--shadow-md);
}

.studio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
}

.studio-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.studio-name a {
  color: var(--text);
}

.studio-name a:hover {
  color: var(--accent);
}

.badge-featured {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.studio-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.studio-locality {
  font-weight: 500;
  color: var(--text);
}

.studio-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex: 1 0 auto;
}

.studio-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.spec-tag {
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.studio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.studio-exp {
  color: var(--text-dim);
}

.studio-exp strong {
  color: var(--text);
}

.btn-card-view {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.btn-card-view:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   City Hub Tiles (Homepage)
   -------------------------------------------------------------------------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.city-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: block;
  transition: all 0.15s ease;
}

.city-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.city-card.active {
  border-left: 4px solid var(--accent);
}

.city-card.disabled {
  background: var(--surface-muted);
  opacity: 0.65;
  cursor: not-allowed;
}

.city-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.city-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.city-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.city-status.live {
  background: #e6f4ea;
  color: #137333;
}

.city-status.soon {
  background: var(--tag-bg);
  color: var(--text-dim);
}

.city-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Single Designer Profile Page Layout
   -------------------------------------------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

@media (max-width: 820px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-main-content h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.profile-main-content p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #2b2e35;
  margin-bottom: 1.25rem;
}

.profile-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.92rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-val {
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.contact-val a {
  color: var(--accent);
}

.contact-val a:hover {
  text-decoration: underline;
}

.stat-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.stat-pill {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.stat-pill span {
  color: var(--text-dim);
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
}

.stat-pill strong {
  color: var(--text);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Forms ("List Your Studio")
   -------------------------------------------------------------------------- */
.form-card {
  max-width: 680px;
  margin: 2.5rem auto 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--text);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.form-alert.success {
  background: #e6f4ea;
  border: 1px solid #ceead6;
  color: #137333;
}

.form-alert.error {
  background: #fce8e6;
  border: 1px solid #fad2cf;
  color: #c5221f;
}

/* --------------------------------------------------------------------------
   Informational Boxes & SEO Blocks
   -------------------------------------------------------------------------- */
.info-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.info-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-heading {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a {
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Utility & Empty States
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Article, Legal & Content Pages (AdSense Compliance)
   -------------------------------------------------------------------------- */
.prose-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.prose-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.prose-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.prose-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  line-height: 1.3;
}

.prose-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.prose-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.prose-content ul, .prose-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.prose-content li {
  margin-bottom: 0.5rem;
}

.prose-content strong {
  color: var(--text);
}

.prose-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-callout {
  background: var(--surface-muted);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.75rem 0;
}

.prose-callout p {
  margin-bottom: 0;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.about-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.about-feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.about-feature-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Guide Tables & FAQ Styles */
.guide-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.guide-table th {
  background: var(--surface-muted);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.guide-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  line-height: 1.5;
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:hover td {
  background: var(--surface-muted);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  background: var(--surface);
}

.faq-question {
  padding: 1.25rem 1.5rem 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.35;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), border-color var(--transition);
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.guide-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.guide-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.guide-card h3 a {
  color: var(--text);
}

.guide-card h3 a:hover {
  color: var(--accent);
}

.guide-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.guide-card-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hidden {
  display: none !important;
}
