/* ── Brand tokens ── */
:root {
  --navy:       #023047;
  --teal:       #219ebc;
  --sky:        #8ecae6;
  --orange:     #fb8500;
  --orange-dark:#d97200;
  --white:      #ffffff;
  --off-white:  #f5f9fc;
  --text:       #1a2530;
  --text-muted: #56717f;
  --border:     #d1e8f0;
  --card-bg:    #ffffff;
  --radius:     10px;
  --radius-sm:  6px;
  --shadow-sm:  0 1px 3px rgba(2,48,71,.08), 0 1px 2px rgba(2,48,71,.05);
  --shadow:     0 4px 12px rgba(2,48,71,.10), 0 2px 4px rgba(2,48,71,.06);
  --shadow-md:  0 8px 24px rgba(2,48,71,.12), 0 4px 8px rgba(2,48,71,.06);
  --transition: 160ms ease;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  color: var(--navy);
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--navy); }

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

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 4rem;
}
.section--tight { padding-block: 2.5rem; }
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section--muted { background: #edf4f8; }

/* ── Typography scale ── */
.text-xs   { font-size: .75rem; }
.text-sm   { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }

.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.text-muted    { color: var(--text-muted); }
.text-teal     { color: var(--teal); }
.text-navy     { color: var(--navy); }
.text-orange   { color: var(--orange); }
.text-white    { color: var(--white); }
.text-center   { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #01243b;
  border-color: #01243b;
  color: var(--white);
}

.btn-sm {
  padding: .45rem 1rem;
  font-size: .8rem;
}

/* ── Business card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.business-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.business-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.business-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 8/5;
}
.business-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.business-card:hover .business-card__img-wrap img {
  transform: scale(1.04);
}

.business-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.business-card__title {
  font-family: 'Bitter', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.business-card__title a {
  color: inherit;
  text-decoration: none;
}
.business-card__title a:hover { color: var(--teal); }

.business-card__excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.business-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #e8f5fb;
  color: var(--teal);
  border: 1px solid #c8e8f5;
}

/* ── Section header ── */
.section-header {
  margin-bottom: 2.5rem;
}
.section-header--center { text-align: center; }
.section-label {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: .75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.7;
}
.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ── Divider ── */
.divider {
  width: 3.5rem;
  height: 3px;
  background: var(--orange);
  border: none;
  border-radius: 2px;
  margin-block: 1rem;
}
.divider--center { margin-inline: auto; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .32;
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 600px;
}
.hero__title {
  font-family: 'Bitter', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Category grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,48,71,.82) 0%, rgba(2,48,71,.1) 60%);
}
.category-card__label {
  position: relative;
  z-index: 1;
  padding: 1rem;
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── Business profile ── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.profile-main {}
.profile-sidebar {
  position: sticky;
  top: 1.5rem;
}

.profile-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.profile-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}
.profile-body p { margin-bottom: 1.1rem; }
.profile-body h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.profile-body h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.profile-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-body a:hover { color: var(--navy); }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.sidebar-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--sky);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .65rem;
  line-height: 1.45;
}
.contact-item svg {
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--teal);
}
.map-embed {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius-sm);
  display: block;
}

/* ── Blog/news card ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card__img {
  aspect-ratio: 8/5;
  object-fit: cover;
  width: 100%;
}
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__title {
  font-family: 'Bitter', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--teal); }
.blog-card__excerpt { font-size: .9rem; color: var(--text-muted); flex: 1; margin-bottom: 1rem; }

/* ── Directory sidebar ── */
.directory-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}
.directory-sidebar { position: sticky; top: 1.5rem; }
.category-list { list-style: none; }
.category-list li { border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
.category-list a:hover { color: var(--teal); }

/* ── Search bar ── */
.search-bar {
  display: flex;
  gap: .5rem;
  max-width: 540px;
}
.search-bar input {
  flex: 1;
  padding: .7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.search-bar input:focus { border-color: var(--teal); }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  padding: .7rem 1.25rem;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

/* ── Page header (inner pages) ── */
.page-header {
  background: var(--navy);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}
.page-header .breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
}
.page-header .breadcrumb a { color: var(--sky); }
.page-header .breadcrumb a:hover { color: var(--white); }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .875rem;
  border: 2px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pagination a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pagination .current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-logo { margin-inline: auto; margin-bottom: 1.5rem; max-width: 160px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* ── Newsletter signup ── */
.newsletter {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}
.newsletter h2 { color: var(--white); margin-bottom: .75rem; font-size: 1.875rem; }
.newsletter p { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1.05rem; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  max-width: 440px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1rem;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.6); }
.newsletter-form button {
  padding: .75rem 1.5rem;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.newsletter-note { font-size: .8rem; color: rgba(255,255,255,.45); margin-top: .75rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .directory-layout { grid-template-columns: 1fr; }
  .directory-sidebar { position: static; }
}
@media (max-width: 768px) {
  .section { padding-block: 2.75rem; }
  .hero { min-height: 55vh; }
  .card-grid, .blog-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: column; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .container { padding-inline: 1rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
