/* =========================================================
   CapeCodBeauty.com — Clean Directory Styles
   Default palette is Beauty pink/white to prevent the red/gold flash
   before theme.js finishes loading.
   ========================================================= */

:root {
  /* Page */
  --page-bg: #fff7fb;
  --page-text: #3f2633;
  --page-soft: #fffafd;

  /* Header */
  --header-grad-start: #fff1f8;
  --header-grad-mid: #f8c9dd;
  --header-grad-end: #e889b5;
  --header-border: #c94d86;
  --header-title: #6f1f46;
  --header-subtitle: #6f1f46;
  --header-link: #7f2752;
  --header-link-hover: #b52f73;

  /* Navigation */
  --nav-bg: #f9d7e6;
  --nav-border: #e6a3c2;
  --nav-link: #722149;
  --nav-link-hover: #b52f73;

  /* Cards / listings */
  --card-bg: #ffffff;
  --card-border: #f0bfd4;
  --card-shadow: rgba(111, 31, 70, 0.16);
  --card-heading: #9c2d65;
  --card-text-muted: #6c4d5b;

  /* Letter headings */
  --letter-heading-border: #e889b5;
  --letter-heading-text: #9c2d65;

  /* A–Z chips */
  --chip-bg: #fff0f7;
  --chip-bg-hover: #f7c7dc;
  --chip-text: #7a244d;

  /* Buttons */
  --button-bg: #c83f7f;
  --button-bg-hover: #a72d68;
  --button-text: #ffffff;

  /* Filter bar */
  --filter-bg: #fff0f7;
  --filter-border: #f0bfd4;
  --filter-label: #76234c;
  --filter-select-bg: #ffffff;
  --filter-select-border: #d873a2;
  --filter-select-text: #442634;

  /* Footer */
  --footer-bg: #f8d6e6;
  --footer-text: #4b2938;
  --footer-link: #7f2752;
  --footer-link-hover: #b52f73;

  /* Links */
  --link-text: #8e2a5a;
  --link-hover: #bd3478;

  /* Gold highlighted featured nav */
  --gold-top: #fff2b8;
  --gold-mid: #f8cf4e;
  --gold-bottom: #c89516;
  --gold-text: #3d2200;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--page-text);
  line-height: 1.5;
}

a {
  color: var(--link-text);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* =========================================================
   Header and Navigation
   ========================================================= */

header {
  background: linear-gradient(
    to bottom,
    var(--header-grad-start) 0%,
    var(--header-grad-mid) 58%,
    var(--header-grad-end) 100%
  );
  color: var(--header-title);
  text-align: center;
  padding: 18px 10px 14px;
  border-bottom: 3px solid var(--header-border);
}

header h1 {
  margin: 0;
  color: var(--header-title);
  font-size: clamp(1.8rem, 5vw, 2.45rem);
  letter-spacing: 0.04em;
}

header p {
  margin: 4px 0;
  color: var(--header-subtitle);
  font-size: 0.95rem;
}

header a {
  color: var(--header-link);
}

header a:hover {
  color: var(--header-link-hover);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin: 12px auto 0;
  padding: 8px 6px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  max-width: 980px;
}

nav a {
  display: inline-block;
  color: var(--nav-link);
  font-size: 0.96rem;
  font-weight: 800;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
}

nav a:hover {
  color: var(--nav-link-hover);
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

nav a.nav-featured {
  background: linear-gradient(180deg, var(--gold-top) 0%, var(--gold-mid) 55%, var(--gold-bottom) 100%);
  color: var(--gold-text) !important;
  border: 1px solid rgba(255, 238, 170, 0.95);
  box-shadow: 0 2px 8px rgba(111, 31, 70, 0.25), inset 0 1px 0 rgba(255,255,255,0.65);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

nav a.nav-featured:hover {
  background: linear-gradient(180deg, #fff7cf 0%, #ffdc64 55%, #d69a1a 100%);
  color: #2b1600 !important;
}

/* =========================================================
   Layout, Banner, Filters
   ========================================================= */

.container,
.featured-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.banner-container {
  width: 100%;
  margin: 10px 0 15px;
  text-align: center;
}

.main-banner {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(111, 31, 70, 0.14);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto 12px;
  padding: 10px;
  background: var(--filter-bg);
  border-top: 1px solid var(--filter-border);
  border-bottom: 1px solid var(--filter-border);
}

.filter-bar > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-bar label {
  color: var(--filter-label);
  font-weight: 800;
}

.filter-bar select,
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--filter-select-border);
  border-radius: 8px;
  background: var(--filter-select-bg);
  color: var(--filter-select-text);
  font: inherit;
}

.filter-bar select {
  width: auto;
  min-width: 150px;
  font-weight: 700;
}

/* =========================================================
   Directory Listings
   ========================================================= */

.letters-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1rem;
  padding: 0 0.75rem;
}

.letters-index a {
  padding: 0.4rem 0.6rem;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
}

.letters-index a:hover {
  background: var(--chip-bg-hover);
  text-decoration: none;
}

.letter-section {
  margin-top: 2rem;
}

.letter-section h2 {
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  color: var(--letter-heading-text);
  border-bottom: 2px solid var(--letter-heading-border);
}

.directory-list,
ul.theaters-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-item,
ul.theaters-list li {
  margin: 0.5rem 0;
  padding: 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 2px 5px var(--card-shadow);
}

.directory-item h3,
ul.theaters-list li a.name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.directory-item h3 a.name,
ul.theaters-list li a.name {
  color: var(--card-heading);
  font-weight: 900;
}

.directory-item .address,
.directory-item .town,
.directory-item .phone,
ul.theaters-list li .address,
ul.theaters-list li .phone {
  display: block;
  margin-top: 0.2rem;
  color: var(--card-text-muted);
  font-size: 0.86rem;
}

.directory-item .address a,
.directory-item .phone a,
ul.theaters-list li a.address,
ul.theaters-list li a.phone {
  color: var(--card-text-muted);
  font-weight: 600;
}

.directory-item .meta {
  margin-top: 0.45rem;
  color: var(--card-text-muted);
  font-size: 0.82rem;
}

.featured-badge-link {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 207, 78, 0.24);
  border: 1px solid rgba(200, 149, 22, 0.55);
  color: #6e4300 !important;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.featured-badge-link:hover {
  background: rgba(248, 207, 78, 0.35);
  text-decoration: none;
}

/* =========================================================
   Promo Blocks
   ========================================================= */

.promo-block {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #fff0f7;
  border: 1px solid var(--card-border);
  border-radius: 0.85rem;
  box-shadow: 0 2px 6px var(--card-shadow);
}

.promo-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.promo-image {
  max-width: 80px;
  height: auto;
  border-radius: 0.5rem;
}

.promo-content {
  flex: 1;
}

.promo-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.promo-text {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.promo-cta {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--button-bg);
  border-radius: 999px;
  color: var(--button-bg);
  font-size: 0.8rem;
  font-weight: 900;
}

/* =========================================================
   Featured Beauty and Get Featured Pages
   ========================================================= */

.featured-hero,
.get-featured-hero,
.intro-box,
.cta-box,
.featured-price-card,
.featured-empty {
  margin: 16px 0;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 3px 10px var(--card-shadow);
}

.featured-hero,
.get-featured-hero {
  background: radial-gradient(circle at top left, #fff0f7 0%, #ffffff 70%);
}

.featured-hero h2,
.get-featured-hero h2,
.intro-box h2,
.cta-box h2,
.featured-price-card h3 {
  margin-top: 0;
  color: var(--card-heading);
}

.featured-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.featured-card {
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--card-shadow);
}

.featured-image {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
}

.featured-content {
  padding: 13px 15px;
}

.featured-title {
  margin: 0;
  color: var(--card-heading);
  font-size: 1.08rem;
}

.featured-sub {
  margin: 2px 0 10px;
  color: var(--card-text-muted);
  font-size: 0.9rem;
}

.featured-desc {
  margin: 0 0 10px;
  color: var(--page-text);
  font-size: 0.95rem;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.featured-btn,
.cta-button,
.stripe-button,
.featured-upgrade-button,
#share-btn,
.product-card .buy-button,
.form button,
button[type="submit"] {
  display: inline-block;
  padding: 10px 14px;
  background: var(--button-bg);
  color: var(--button-text) !important;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.featured-btn:hover,
.cta-button:hover,
.stripe-button:hover,
.featured-upgrade-button:hover,
#share-btn:hover,
.product-card .buy-button:hover,
.form button:hover,
button[type="submit"]:hover {
  background: var(--button-bg-hover);
  color: #ffffff !important;
  text-decoration: none;
}

.featured-btn:not(.primary) {
  background: #fff0f7;
  color: var(--button-bg) !important;
  border: 1px solid var(--button-bg);
}

.featured-btn:not(.primary):hover {
  background: #f7c7dc;
  color: var(--button-bg-hover) !important;
}

.featured-note {
  margin: 10px 0 0;
  color: var(--card-text-muted);
  font-size: 0.82rem;
}

.featured-price {
  margin: 6px 0;
  color: var(--card-heading);
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.featured-price small {
  display: block;
  margin-top: 4px;
  color: var(--card-text-muted);
  font-size: 0.9rem;
}

.featured-benefits,
.featured-steps {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.featured-benefits li,
.featured-steps li {
  background: #fff7fb;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
}

.featured-benefits strong {
  color: var(--card-heading);
}

.featured-steps {
  counter-reset: step;
}

.featured-steps li {
  position: relative;
  padding-left: 48px;
}

.featured-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--button-bg);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 900;
}

.back-to-listings {
  margin: 14px 0 6px;
  text-align: center;
  font-size: 0.95rem;
}

.featured-empty {
  border-style: dashed;
  text-align: center;
}

@media (min-width: 700px) {
  .featured-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: stretch;
  }

  .featured-image {
    height: 100%;
    max-height: none;
  }
}

@media (min-width: 760px) {
  .featured-benefits {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   Forms and Shop
   ========================================================= */

.category-heading {
  margin: 0 0 1rem;
  color: var(--card-heading);
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
}

.form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 2px 8px var(--card-shadow);
}

.form label {
  display: block;
  margin-top: 0.8rem;
  color: var(--filter-label);
  font-weight: 800;
}

#services-group {
  background: #fff7fb;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.65rem;
}

#services-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.15rem 0.6rem 0.15rem 0;
  color: var(--page-text);
  font-weight: 600;
}

#form-status {
  color: var(--card-heading);
  font-weight: 800;
}

.share-container {
  padding: 10px 0;
  text-align: center;
}

.shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 2px 5px var(--card-shadow);
  text-align: center;
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.product-card h3 {
  margin: 0.5rem 0 0.25rem;
  color: var(--card-heading);
  font-size: 1rem;
}

.product-card .price {
  margin-bottom: 0.5rem;
  color: var(--card-text-muted);
  font-size: 0.9rem;
}

.product-card .buy-button {
  margin-top: auto;
}

/* =========================================================
   Footer and Mobile
   ========================================================= */

.site-footer {
  margin-top: 24px;
  padding: 14px 8px 18px;
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--nav-border);
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--footer-link);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--footer-link-hover);
}

@media (max-width: 640px) {
  header {
    padding-left: 8px;
    padding-right: 8px;
  }

  nav {
    border-radius: 18px;
  }

  nav a {
    margin: 0.05rem;
    padding: 0.4rem 0.58rem;
    font-size: 0.9rem;
  }

  .promo-inner {
    align-items: flex-start;
  }

  .promo-image {
    max-width: 64px;
  }
}
