/* ============================================
   DIVERGENT.IE — Ireland's Neurodiversity Clinic Finder
   Colour Palette:
   - Deep Teal:     #0F766E
   - Teal Mid:      #14B8A6
   - Warm Coral:    #E8634A
   - Coral Dark:    #D14F38
   - Soft Cream:    #FAFBF6
   - Slate:         #1E293B
   - Mid-grey:      #6B7280
============================================ */

:root {
    --teal: #0F766E;
    --teal-dark: #0D5F58;
    --teal-mid: #14B8A6;
    --coral: #E8634A;
    --coral-dark: #D14F38;
    --cream: #FAFBF6;
    --slate: #1E293B;
    --mid-grey: #6B7280;
    --radius: 8px;
    --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--slate); line-height: 1.6; background: #fff; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-secondary { background: transparent; border: 2px solid rgba(255,255,255,0.3); color: #fff; }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15,118,110,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.logo-icon { font-size: 1.4rem; color: var(--coral); }
.logo-text { color: #fff; }
.logo-dot { color: var(--coral); }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: #fff; }
.nav-cta { background: var(--coral); color: #fff !important; padding: 8px 20px; border-radius: var(--radius); font-weight: 600; }
.nav-cta:hover { background: var(--coral-dark); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero { padding: 140px 0 80px; background: linear-gradient(135deg, #064E3B 0%, var(--teal) 50%, var(--teal-mid) 100%); color: #fff; position: relative; overflow: hidden; }
.hero-bg-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(232,99,74,0.08) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 40%); }
.hero .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,99,74,0.15); border: 1px solid rgba(232,99,74,0.4); color: var(--coral); font-size: 0.85rem; font-weight: 600; padding: 6px 16px; border-radius: 99px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-accent { color: var(--coral); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 620px; margin-bottom: 36px; line-height: 1.65; }

/* SEARCH BAR */
.hero-search { margin-bottom: 48px; }
.search-bar { display: flex; gap: 0; background: #fff; border-radius: var(--radius-lg); padding: 6px; max-width: 640px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.search-select { flex: 1; padding: 14px 16px; border: none; background: transparent; font-size: 0.95rem; color: var(--slate); font-family: inherit; cursor: pointer; appearance: auto; }
.search-select:focus { outline: none; }
.search-btn { white-space: nowrap; border-radius: var(--radius) !important; }

.hero-stats { display: flex; align-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 20px 32px; width: fit-content; }
.stat { text-align: center; padding: 0 28px; }
.stat strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--coral); }
.stat span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* SECTION TITLES */
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; text-align: center; }
.section-sub { text-align: center; color: var(--mid-grey); font-size: 1.05rem; margin-bottom: 48px; max-width: 620px; margin-left: auto; margin-right: auto; }
.subsection-title { font-size: 1.3rem; font-weight: 700; color: var(--teal); margin-bottom: 20px; }

/* THE PROBLEM */
.problem { padding: 80px 0; background: var(--cream); }
.problem-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.problem-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
.problem-text p { color: #374151; font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; }
.problem-text strong { color: var(--slate); }
.problem-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pstat { background: #fff; border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.pstat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--coral); margin-bottom: 4px; }
.pstat span { font-size: 0.85rem; color: var(--mid-grey); }

/* CLINIC DIRECTORY */
.clinics { padding: 80px 0; background: #fff; }
.clinic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.clinic-card { background: #fff; border: 1px solid #E5E7EB; border-radius: var(--radius-lg); padding: 24px; transition: box-shadow 0.2s, transform 0.2s; }
.clinic-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.clinic-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 12px; }
.clinic-header h4 { font-size: 1.15rem; font-weight: 700; color: var(--teal); }
.clinic-badge { font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.badge-online { background: rgba(20,184,166,0.12); color: var(--teal-mid); }
.badge-both { background: rgba(15,118,110,0.1); color: var(--teal); }
.badge-inperson { background: rgba(232,99,74,0.1); color: var(--coral); }
.clinic-location { font-size: 0.85rem; color: var(--mid-grey); margin-bottom: 14px; }
.clinic-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.clinic-detail { background: var(--cream); padding: 8px 12px; border-radius: var(--radius); }
.detail-label { display: block; font-size: 0.72rem; color: var(--mid-grey); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.clinic-detail strong { font-size: 0.85rem; color: var(--slate); }
.clinic-desc { font-size: 0.9rem; color: #4B5563; line-height: 1.55; }
.clinic-note { background: var(--cream); border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 32px; }
.clinic-note p { font-size: 0.9rem; color: #4B5563; line-height: 1.6; }

/* CONDITIONS */
.conditions { padding: 80px 0; background: var(--cream); }
.conditions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.condition-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; transition: transform 0.2s; }
.condition-card:hover { transform: translateY(-3px); }
.condition-icon { font-size: 2rem; margin-bottom: 14px; }
.condition-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.condition-card p { font-size: 0.9rem; color: #4B5563; line-height: 1.6; margin-bottom: 14px; }
.condition-link { font-size: 0.9rem; color: var(--coral); font-weight: 600; transition: color 0.2s; }
.condition-link:hover { color: var(--coral-dark); }

/* COST TABLE */
.costs { padding: 80px 0; background: #fff; }
.cost-table { width: 100%; border-collapse: collapse; margin-top: 0; font-size: 0.95rem; }
.cost-table thead th { background: var(--teal); color: #fff; padding: 14px 16px; text-align: left; font-weight: 600; font-size: 0.85rem; }
.cost-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.cost-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.cost-table td { padding: 14px 16px; border-bottom: 1px solid #E5E7EB; color: #374151; }
.cost-table tr:nth-child(even) td { background: var(--cream); }
.cost-table td strong { color: var(--coral); }
.cost-note { font-size: 0.9rem; color: var(--mid-grey); margin-top: 20px; line-height: 1.6; }

/* WORKPLACE */
.workplace { padding: 80px 0; background: linear-gradient(135deg, #064E3B 0%, var(--teal) 100%); color: #fff; }
.workplace-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.workplace-text h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; }
.workplace-text p { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.65; margin-bottom: 16px; }
.workplace-links { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.workplace-stats { display: grid; gap: 16px; }
.wstat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.wstat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--coral); margin-bottom: 4px; }
.wstat span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* LIST YOUR CLINIC */
.list-clinic { padding: 80px 0; background: var(--cream); }
.list-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.list-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.list-text p { color: var(--mid-grey); font-size: 1.05rem; line-height: 1.65; margin-bottom: 24px; }
.list-benefits { list-style: none; padding: 0; }
.list-benefits li { padding: 8px 0; padding-left: 28px; position: relative; font-size: 0.95rem; color: #4B5563; }
.list-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.list-form { background: #fff; padding: 32px; border-radius: var(--radius-lg); border: 1px solid #E5E7EB; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.list-form h3 { font-size: 1.2rem; margin-bottom: 20px; text-align: center; }
.list-form input,
.list-form select,
.list-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #D1D5DB; border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; margin-bottom: 12px; background: #fff; }
.list-form input:focus,
.list-form select:focus,
.list-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,0.1); }
.form-note { font-size: 0.8rem; color: var(--mid-grey); text-align: center; margin-top: 10px; }

/* DISCLAIMER */
.disclaimer { padding: 32px 0; background: var(--cream); border-top: 1px solid #E5E7EB; }
.disclaimer p { font-size: 0.85rem; color: var(--mid-grey); line-height: 1.65; }

/* FOOTER */
.site-footer { background: #111; color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.5); }
.footer-links-group h4 { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links-group a { display: block; font-size: 0.9rem; margin-bottom: 10px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links-group a:hover { color: var(--coral); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom nav a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom nav a:hover { color: rgba(255,255,255,0.7); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--teal); padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-nav.active { display: flex; }
    .nav-toggle { display: block; }
    .search-bar { flex-direction: column; gap: 8px; padding: 12px; }
    .search-select { padding: 12px; }
    .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
    .stat { padding: 8px 0; }
    .stat-divider { width: 60px; height: 1px; }
    .problem-grid { grid-template-columns: 1fr; }
    .problem-stats { grid-template-columns: 1fr 1fr; }
    .clinic-grid { grid-template-columns: 1fr; }
    .clinic-details { grid-template-columns: 1fr; }
    .conditions-grid { grid-template-columns: 1fr 1fr; }
    .cost-table { font-size: 0.82rem; }
    .cost-table th, .cost-table td { padding: 10px 8px; }
    .workplace-inner { grid-template-columns: 1fr; }
    .list-inner { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .conditions-grid { grid-template-columns: 1fr; }
    .problem-stats { grid-template-columns: 1fr; }
    .cost-table { display: block; overflow-x: auto; }
}
