* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1e3a5f;
    --primary-light: #2b5282;
    --secondary: #0d9488;
    --secondary-light: #14b8a6;
    --accent: #f59e0b;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

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

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-badge {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li a {
    font-weight: 500;
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-menu li a:hover, .nav-menu li a.active {
    background-color: #f1f5f9;
    color: var(--primary);
}

.nav-btn {
    background-color: var(--secondary);
    color: #ffffff !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: background-color 0.2s !important;
}

.nav-btn:hover {
    background-color: #0f766e !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #28517e 100%);
    color: #ffffff;
    padding: 4rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(20, 184, 166, 0.2);
    color: #5eead4;
    border: 1px solid rgba(94, 234, 212, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--secondary);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #0f766e;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #92400e;
}

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: #f0fdfa;
    color: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccfbf1;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Form Styles */
.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 0.2rem;
}

/* Interactive Routine Finder / Guide */
.interactive-tool {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
}

.tool-step {
    display: none;
}

.tool-step.active {
    display: block;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.option-btn {
    text-align: left;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--secondary);
    background-color: #f0fdfa;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #e2e8f0;
    padding: 3.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Legal text formatting */
.legal-page {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.legal-page h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.legal-page h2 {
    font-size: 1.35rem;
    color: var(--primary-light);
    margin: 1.75rem 0 0.75rem;
}

.legal-page p, .legal-page li {
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.legal-table th, .legal-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.9rem;
}

.legal-table th {
    background-color: #f8fafc;
    color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid var(--secondary);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 280px;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-cookie-accept {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cookie-decline {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero h1 {
        font-size: 1.85rem;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
