/* Cornwall Hairdressers & Salons — Comprehensive Theme Stylesheet */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --primary-navy: #0f172a;
  --cornwall-blue: #1e3a8a;
  --ocean-teal: #0d9488;
  --teal-hover: #14b8a6;
  --teal-light: #ccfbf1;
  --sand-amber: #d97706;
  --sand-light: #fef3c7;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.15);
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  margin-top: 0;
  font-weight: 700;
  line-height: 1.25;
}

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

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Banner Demo */
.banner-demo {
  background: #fffbeeb0;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

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

.demo-badge {
  background-color: #d97706;
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Header & Nav */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--cornwall-blue), var(--ocean-teal));
  color: #ffffff;
  border-radius: 10px;
}

.brand-highlight {
  color: var(--ocean-teal);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-weight: 500;
  color: var(--primary-navy);
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--ocean-teal);
  border-bottom-color: var(--ocean-teal);
}

.primary-nav-btn {
  background-color: var(--ocean-teal);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.primary-nav-btn:hover {
  background-color: var(--teal-hover);
  transform: translateY(-1px);
}

/* Main Container */
.main-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn {
  background-color: var(--ocean-teal);
  color: #ffffff;
}

.primary-btn:hover {
  background-color: var(--teal-hover);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.secondary-btn {
  background-color: #ffffff;
  color: var(--primary-navy);
  border: 1px solid var(--border-subtle);
}

.secondary-btn:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.reset-btn {
  background-color: #f1f5f9;
  color: var(--text-muted);
}

/* Hero Section */
.hair-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0d9488 100%);
  color: #ffffff;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #5eead4;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hair-hero h1 {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 720px;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Search Box */
.hero-search-box {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  gap: 0.5rem;
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.name-field {
  flex: 2;
}

.select-field {
  flex: 1.2;
}

.search-icon, .field-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-field input, .search-field select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-main);
}

.hero-search-btn {
  background-color: var(--ocean-teal);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.hero-search-btn:hover {
  background-color: var(--teal-hover);
}

/* Stats Cards */
.hero-stats {
  display: flex;
  gap: 1.5rem;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.8rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Section Blocks */
.section-block {
  margin-bottom: 3.5rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.flex-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* Town Pills */
.town-pills, .quick-town-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.town-pill, .town-chip {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--primary-navy);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.town-pill:hover, .town-chip:hover {
  border-color: var(--ocean-teal);
  color: var(--ocean-teal);
  background-color: var(--teal-light);
}

.town-chip.on {
  background-color: var(--ocean-teal);
  color: #ffffff;
  border-color: var(--ocean-teal);
}

/* Category Cards Grid */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--ocean-teal);
  box-shadow: var(--shadow-md);
}

.cat-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cat-icon-box {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 10px;
  flex-shrink: 0;
}

.cat-title {
  font-size: 1.05rem;
  margin: 0 0 0.2rem 0;
  color: var(--primary-navy);
}

.cat-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Salon Grid Cards */
.salon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.salon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.salon-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.salon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.salon-type-badge {
  background-color: var(--sand-light);
  color: var(--sand-amber);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.location-tag {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
}

.salon-name {
  font-size: 1.3rem;
  margin: 0 0 0.85rem 0;
}

.salon-name a {
  color: var(--primary-navy);
}

.salon-name a:hover {
  color: var(--ocean-teal);
}

.salon-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.feature-tag {
  background-color: #f1f5f9;
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.verified-tag {
  background-color: var(--teal-light);
  color: #0f766e;
  font-weight: 600;
}

.claimed-tag {
  background-color: #dbeafe;
  color: #1e40af;
  font-weight: 600;
}

.btn-card-action {
  display: block;
  text-align: center;
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--primary-navy);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background-color: var(--ocean-teal);
  color: #ffffff;
  border-color: var(--ocean-teal);
}

/* Why Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Directory Form & Filters */
.directory-header-block {
  margin-bottom: 1.5rem;
}

.directory-searchbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.search-input-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--ocean-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.filter-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.chip-filter {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chip-filter:hover, .chip-filter.on {
  background: var(--ocean-teal);
  color: #ffffff;
  border-color: var(--ocean-teal);
}

.chip-filter.on .chip-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.chip-badge {
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Profile Page Styling */
.crumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.crumb-current {
  color: var(--primary-navy);
  font-weight: 600;
}

.profile-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.profile-type-pill {
  background-color: var(--sand-amber);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.profile-badge {
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.verified-badge {
  background-color: #0d9488;
  color: #ffffff;
}

.claimed-badge {
  background-color: #2563eb;
  color: #ffffff;
}

.profile-location-pill {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.profile-title {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.profile-subtitle {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.profile-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

}

.profile-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.profile-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.provenance-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.provenance-table th, .provenance-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  font-size: 0.95rem;
}

.provenance-table th {
  width: 35%;
  color: var(--text-muted);
  font-weight: 600;
}

.score-tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.tag-high {
  background-color: #dcfce7;
  color: #15803d;
}

.tag-medium {
  background-color: #fef9c3;
  color: #a16207;
}

.signals-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.signals-list li {
  padding: 0.35rem 0;
  font-size: 0.925rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.signal-icon {
  color: var(--ocean-teal);
  font-weight: bold;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.full-width {
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--primary-navy);
  color: #f8fafc;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--ocean-teal);
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cornwall-flag-note {
  font-size: 0.85rem;
  color: #5eead4;
  margin-top: 1rem;
  font-weight: 500;
}

.footer-head {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer-bottom a {
  color: #5eead4;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-search-box {
    flex-direction: column;
  }
  .profile-content-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hair-hero h1 {
    font-size: 2rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 0.75rem;
  }
}
