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

:root {
  --primary: #1a7a6d;
  --primary-dark: #0f5248;
  --primary-light: #e6f5f2;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --grey-bg: #f5f7fa;
  --border: #ddd;
  --green: #28a745;
  --red: #dc3545;
  --max-width: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.site-logo:hover { text-decoration: none; }

.site-nav { display: flex; gap: 24px; align-items: center; }

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--white); text-decoration: none; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 20px;
}

/* Search Box */
.search-box {
  max-width: 500px;
  margin: 0 auto 20px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.05rem;
  border: none;
  border-radius: 8px;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-box input::placeholder { color: #999; }

.call-cost {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 8px;
}

.call-cost strong { font-weight: 600; }

/* Category Tags */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 10px;
}

.category-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.category-tag:hover { background: var(--primary); color: var(--white); text-decoration: none; }

/* Directory Grid */
.directory {
  padding: 40px 20px 60px;
  background: var(--grey-bg);
}

.directory h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--primary-dark);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.company-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.company-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.company-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.company-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.company-card .category {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.company-card .card-number {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 6px;
  letter-spacing: 1px;
  text-decoration: none;
  margin-bottom: 8px;
}

.company-card .card-number:hover { background: var(--primary); color: var(--white); text-decoration: none; }

.company-card .card-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Info Section */
.info-section {
  padding: 60px 20px;
}

.info-section .container { max-width: var(--max-width); }

.info-section h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.info-section p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.info-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.info-section li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* Company List (category pages) */
.company-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.company-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 10px;
}

.company-list .company-name {
  font-weight: 600;
  color: var(--text);
}

.company-list .company-number {
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

/* Phone number button (used on company pages) */
.phone-number {
  display: inline-block;
  background: var(--white);
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 800;
  padding: 16px 40px;
  border-radius: 8px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  transition: transform 0.2s;
  text-decoration: none;
}

.phone-number:hover {
  transform: scale(1.03);
  text-decoration: none;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 16px 24px;
  margin: 30px auto;
  max-width: var(--max-width);
  font-size: 0.85rem;
  color: #856404;
  line-height: 1.5;
}

.disclaimer-banner strong { color: #664d03; }

/* Ad Slots */
.ad-slot {
  text-align: center;
  margin: 20px auto;
  max-width: 728px;
  min-height: 90px;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 40px 20px;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.footer-col a:hover { color: var(--white); }

.footer-col p { margin-bottom: 6px; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom p { margin-bottom: 4px; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: var(--white);
  padding: 16px 20px;
  z-index: 1000;
  display: none;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.85rem;
  flex: 1;
  min-width: 250px;
}

.cookie-banner a { color: #8bb8e8; }

.cookie-buttons { display: flex; gap: 10px; }

.btn {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; }

.btn-accept { background: var(--green); color: var(--white); }
.btn-reject { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.3); }

/* FAQ Accordion */
.faq-list { margin: 20px 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 20px;
  cursor: pointer;
  background: var(--grey-bg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item[open] summary { border-bottom: 1px solid var(--border); }

.faq-item p {
  padding: 14px 20px;
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* Content Pages (privacy, terms) */
.content-page {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.content-page h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 30px 0 12px;
}

.content-page p, .content-page li {
  color: var(--text-light);
  margin-bottom: 12px;
}

.content-page ul { padding-left: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 1.6rem; }
  .phone-number { font-size: 1.5rem; padding: 12px 24px; }

  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary-dark); padding: 16px 20px; gap: 12px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .directory { padding: 30px 16px; }
  .directory-grid { grid-template-columns: 1fr; }

  .category-tags { padding: 20px 16px 0; }

  .company-list li { flex-direction: column; gap: 8px; text-align: center; }

  .footer-inner { grid-template-columns: 1fr; }

  .cookie-inner { flex-direction: column; text-align: center; }
}
