/*
Theme Name: India Wellness Directory
Theme URI: https://example.com/india-wellness-directory
Author: OpenAI
Description: A fast, mobile-first classified directory for legitimate wellness, spa, massage and hotel-spa businesses.
Version: 1.0.0
Text Domain: india-wellness-directory
Tags: directory, classifieds, wellness, responsive, accessibility-ready
*/

:root {
  --iwd-navy: #061b3a;
  --iwd-navy-2: #0b2e63;
  --iwd-blue: #1266d6;
  --iwd-blue-dark: #084aab;
  --iwd-sky: #eaf3ff;
  --iwd-ink: #15243a;
  --iwd-muted: #66758a;
  --iwd-line: #dce5ef;
  --iwd-bg: #f4f7fb;
  --iwd-card: #ffffff;
  --iwd-green: #16854b;
  --iwd-radius: 12px;
  --iwd-shadow: 0 7px 22px rgba(8, 32, 71, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--iwd-bg);
  color: var(--iwd-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--iwd-blue-dark); }
a:hover { color: var(--iwd-blue); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #f4b942; outline-offset: 3px; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--iwd-navy);
  display: block;
  height: auto;
  left: 8px;
  padding: 10px 14px;
  top: 8px;
  width: auto;
  z-index: 100000;
}
.iwd-container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.iwd-site-main { min-height: 54vh; padding: 28px 0 48px; }

/* Header */
.iwd-site-header { background: var(--iwd-navy); color: #fff; box-shadow: 0 2px 9px rgba(0, 0, 0, .16); }
.iwd-header__bar { min-height: 64px; display: flex; align-items: center; gap: 24px; }
.iwd-brand { color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; letter-spacing: -.015em; white-space: nowrap; }
.iwd-brand:hover { color: #fff; }
.iwd-brand__mark { color: #68afff; margin-right: 5px; }
.iwd-nav { margin-left: auto; }
.iwd-nav ul { margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; list-style: none; }
.iwd-nav a { color: #dceaff; display: block; text-decoration: none; font-weight: 650; padding: 9px 11px; border-radius: 7px; font-size: .92rem; }
.iwd-nav a:hover, .iwd-nav .current-menu-item > a { background: rgba(255,255,255,.12); color: #fff; }
.iwd-nav-toggle { display: none; margin-left: auto; border: 1px solid rgba(255,255,255,.45); border-radius: 7px; padding: 7px 10px; color: #fff; background: transparent; }

/* Buttons and controls */
.iwd-button, .iwd-contact-button {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.iwd-button:hover, .iwd-contact-button:hover { transform: translateY(-1px); text-decoration: none; }
.iwd-button--primary { background: var(--iwd-blue); color: #fff; }
.iwd-button--primary:hover { background: var(--iwd-blue-dark); color: #fff; }
.iwd-button--quiet { background: #edf4ff; color: var(--iwd-blue-dark); }
.iwd-button--quiet:hover { background: #dceaff; color: var(--iwd-blue-dark); }
.iwd-contact-button--call { background: var(--iwd-navy-2); color: #fff; }
.iwd-contact-button--call:hover { background: var(--iwd-navy); color: #fff; }
.iwd-contact-button--whatsapp { background: #e6f8ec; color: #087a39; }
.iwd-contact-button--whatsapp:hover { background: #d0f0dc; color: #05662e; }
.iwd-contact-actions { display: grid; gap: 6px; }

/* Hero and search */
.iwd-hero { background: linear-gradient(122deg, var(--iwd-navy) 0%, #0d3e82 100%); color: #fff; padding: 42px 0 36px; }
.iwd-hero__inner { max-width: 840px; }
.iwd-kicker { margin: 0 0 6px; color: #90c3ff; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.iwd-hero h1 { margin: 0; color: #fff; font-size: clamp(1.8rem, 3.7vw, 2.8rem); line-height: 1.14; letter-spacing: -.03em; }
.iwd-hero__lead { margin: 11px 0 20px; color: #dbeaff; max-width: 670px; }
.iwd-search-panel { background: #fff; color: var(--iwd-ink); border-radius: var(--iwd-radius); padding: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.iwd-search-form { display: grid; gap: 9px; grid-template-columns: minmax(180px, 1.3fr) minmax(140px, .8fr) minmax(145px, .8fr) auto; }
.iwd-field { min-width: 0; }
.iwd-field label { display: block; font-size: .76rem; font-weight: 750; color: var(--iwd-muted); margin: 0 0 3px 2px; }
.iwd-field input, .iwd-field select {
  width: 100%; min-height: 42px; border: 1px solid #cdd9e7; border-radius: 7px; padding: 8px 10px; color: var(--iwd-ink); background: #fff;
}
.iwd-search-submit { align-self: end; }
.iwd-filter-reset { font-size: .84rem; align-self: center; justify-self: start; }

/* Directory headings */
.iwd-page-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 4px 0 20px; }
.iwd-page-intro h1, .iwd-section-heading h2 { margin: 0; color: var(--iwd-navy); line-height: 1.18; letter-spacing: -.025em; }
.iwd-page-intro h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.iwd-page-intro p { margin: 7px 0 0; color: var(--iwd-muted); max-width: 740px; }
.iwd-result-count { margin: 0; color: var(--iwd-muted); font-size: .9rem; white-space: nowrap; }
.iwd-section { margin: 38px 0; }
.iwd-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.iwd-section-heading h2 { font-size: 1.42rem; }
.iwd-section-heading p { margin: 4px 0 0; color: var(--iwd-muted); }

/* Compact classified cards */
.iwd-listings { display: grid; gap: 12px; }
.iwd-card { background: var(--iwd-card); border: 1px solid var(--iwd-line); border-radius: var(--iwd-radius); box-shadow: 0 2px 8px rgba(8, 32, 71, .035); display: grid; grid-template-columns: 164px 1fr auto; gap: 15px; min-width: 0; padding: 10px; }
.iwd-card:hover { border-color: #bbcfeb; box-shadow: var(--iwd-shadow); }
.iwd-card__image { align-self: stretch; min-height: 112px; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, #edf5ff, #d9eaff); }
.iwd-card__image img { width: 100%; height: 100%; min-height: 112px; object-fit: cover; }
.iwd-card__placeholder { height: 100%; min-height: 112px; display: grid; place-items: center; color: #4d78af; font-size: .78rem; font-weight: 750; text-align: center; padding: 10px; }
.iwd-card__body { min-width: 0; padding: 1px 0; }
.iwd-card__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 5px; }
.iwd-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #eaf3ff; color: #174f98; font-size: .73rem; font-weight: 780; line-height: 1.5; }
.iwd-badge--featured { background: #fff3cf; color: #865d00; }
.iwd-location { color: var(--iwd-muted); font-size: .8rem; }
.iwd-card h2 { margin: 0; font-size: 1.07rem; line-height: 1.27; letter-spacing: -.01em; }
.iwd-card h2 a { color: var(--iwd-navy); text-decoration: none; }
.iwd-card h2 a:hover { color: var(--iwd-blue); }
.iwd-card__excerpt { color: #4b5b70; font-size: .9rem; margin: 6px 0 0; }
.iwd-card__address { color: var(--iwd-muted); font-size: .82rem; margin: 5px 0 0; }
.iwd-card__actions { align-self: center; display: grid; gap: 6px; min-width: 126px; }
.iwd-card__actions .iwd-contact-button { min-height: 35px; padding: 6px 10px; font-size: .8rem; }
.iwd-card__view { font-size: .81rem; text-align: center; padding: 2px; }

/* Location links and informational content */
.iwd-location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.iwd-location-link { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--iwd-line); border-radius: 9px; color: var(--iwd-navy); font-weight: 700; padding: 10px 12px; text-decoration: none; }
.iwd-location-link:hover { background: var(--iwd-sky); border-color: #bdd4f1; color: var(--iwd-blue-dark); }
.iwd-location-link span { color: var(--iwd-muted); font-size: .82rem; font-weight: 600; }
.iwd-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.iwd-info-card { padding: 18px; background: #fff; border: 1px solid var(--iwd-line); border-radius: var(--iwd-radius); }
.iwd-info-card h3 { margin: 0 0 6px; color: var(--iwd-navy); font-size: 1rem; }
.iwd-info-card p { color: var(--iwd-muted); margin: 0; font-size: .91rem; }
.iwd-content-panel { background: #fff; border: 1px solid var(--iwd-line); border-radius: var(--iwd-radius); padding: clamp(20px, 4vw, 34px); }
.iwd-content-panel h2, .iwd-content-panel h3 { color: var(--iwd-navy); line-height: 1.23; }
.iwd-content-panel p, .iwd-content-panel li { color: #46566c; }

/* Single listing */
.iwd-breadcrumb { margin: 0 0 14px; color: var(--iwd-muted); font-size: .88rem; }
.iwd-breadcrumb a { color: var(--iwd-blue-dark); text-decoration: none; }
.iwd-single { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.iwd-single__media { overflow: hidden; border: 1px solid var(--iwd-line); border-radius: var(--iwd-radius); background: #e8f1fc; }
.iwd-single__media img { width: 100%; max-height: 440px; object-fit: cover; }
.iwd-single__placeholder { min-height: 265px; display: grid; place-items: center; color: #4d78af; font-weight: 750; }
.iwd-single__header { margin: 17px 0; }
.iwd-single__header h1 { margin: 6px 0 0; color: var(--iwd-navy); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.16; letter-spacing: -.03em; }
.iwd-single__taxonomy { color: var(--iwd-muted); font-size: .9rem; }
.iwd-single__body { background: #fff; border: 1px solid var(--iwd-line); border-radius: var(--iwd-radius); padding: clamp(18px, 4vw, 30px); }
.iwd-single__body > :first-child { margin-top: 0; }
.iwd-single__body > :last-child { margin-bottom: 0; }
.iwd-contact-card { background: #fff; border: 1px solid var(--iwd-line); border-radius: var(--iwd-radius); box-shadow: var(--iwd-shadow); padding: 17px; position: sticky; top: 16px; }
.iwd-contact-card h2 { color: var(--iwd-navy); font-size: 1.06rem; margin: 0 0 5px; }
.iwd-contact-card p { color: var(--iwd-muted); font-size: .86rem; margin: 0 0 12px; }
.iwd-contact-card .iwd-contact-actions { display: grid; gap: 8px; }
.iwd-contact-card .iwd-contact-button { width: 100%; }
.iwd-address-card { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--iwd-line); color: #4c5a6c; font-size: .89rem; }
.iwd-address-card strong { color: var(--iwd-navy); display: block; margin-bottom: 3px; }

.iwd-pagination { margin-top: 24px; }
.iwd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 5px; }
.iwd-pagination a, .iwd-pagination .current { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--iwd-line); background: #fff; text-decoration: none; }
.iwd-pagination .current { background: var(--iwd-navy); color: #fff; border-color: var(--iwd-navy); }
.iwd-empty { background: #fff; border: 1px dashed #b8c8da; border-radius: var(--iwd-radius); padding: 28px; text-align: center; color: var(--iwd-muted); }
.iwd-empty h2 { color: var(--iwd-navy); margin-top: 0; }

/* WordPress basics */
.alignwide { max-width: 1160px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: 8px; }
.wp-block-quote { border-left: 4px solid var(--iwd-blue); margin-left: 0; padding-left: 18px; color: #42526a; }
.iwd-site-footer { margin-top: 28px; background: #04152e; color: #bdd0e9; padding: 34px 0; }
.iwd-footer__inner { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.iwd-footer__title { color: #fff; font-weight: 800; margin: 0 0 5px; }
.iwd-footer__copy { margin: 0; font-size: .87rem; max-width: 660px; }
.iwd-footer__nav ul { padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; list-style: none; }
.iwd-footer__nav a { color: #d8e6f8; text-decoration: none; font-size: .87rem; padding: 5px 7px; display: block; }

@media (max-width: 820px) {
  .iwd-header__bar { min-height: 59px; flex-wrap: wrap; gap: 0; }
  .iwd-nav-toggle { display: inline-flex; }
  .iwd-nav { display: none; width: 100%; margin: 6px 0 11px; }
  .iwd-nav.is-open { display: block; }
  .iwd-nav ul { display: grid; gap: 2px; }
  .iwd-nav a { padding: 9px; }
  .iwd-search-form { grid-template-columns: 1fr 1fr; }
  .iwd-search-submit { grid-column: span 2; }
  .iwd-search-submit .iwd-button { width: 100%; }
  .iwd-card { grid-template-columns: 136px 1fr; gap: 12px; }
  .iwd-card__image, .iwd-card__image img, .iwd-card__placeholder { min-height: 104px; }
  .iwd-card__actions { grid-column: 1 / -1; grid-template-columns: 1fr; min-width: 0; }
  .iwd-card__view { grid-column: 1 / -1; }
  .iwd-location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .iwd-single { grid-template-columns: 1fr; }
  .iwd-contact-card { position: static; }
}
@media (max-width: 540px) {
  .iwd-container { width: min(100% - 22px, 1160px); }
  .iwd-site-main { padding: 20px 0 38px; }
  .iwd-hero { padding: 29px 0 25px; }
  .iwd-search-form { grid-template-columns: 1fr; }
  .iwd-search-submit { grid-column: auto; }
  .iwd-page-intro, .iwd-section-heading, .iwd-footer__inner { display: block; }
  .iwd-result-count { margin-top: 8px; }
  .iwd-card { grid-template-columns: 106px 1fr; padding: 8px; gap: 10px; }
  .iwd-card__image, .iwd-card__image img, .iwd-card__placeholder { min-height: 88px; }
  .iwd-card h2 { font-size: .98rem; }
  .iwd-card__excerpt { display: none; }
  .iwd-card__actions { margin-top: 1px; }
  .iwd-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iwd-info-grid { grid-template-columns: 1fr; }
  .iwd-footer__nav ul { justify-content: flex-start; margin-top: 12px; }
}
