/* Honest Quote - Premium Shared Styles */

:root {
    /* Primary - Refined Green Palette */
    --primary-900: #0f3d21;
    --primary-800: #14532d;
    --primary-700: #166534;
    --primary-600: #16a34a;
    --primary-500: #22c55e;
    --primary-400: #4ade80;
    --primary-300: #86efac;
    --primary-200: #bbf7d0;
    --primary-100: #dcfce7;
    --primary-50: #f0fdf4;
    
    /* Neutral - Sophisticated Grays */
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    /* Shadows - Enterprise depth system */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 14px -3px rgba(22, 163, 74, 0.35);
    --shadow-primary-lg: 0 8px 24px -4px rgba(22, 163, 74, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    font-feature-settings: 'cv11', 'ss01';
}

/* Header - Premium glass effect */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

header:hover {
    background: rgba(255, 255, 255, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, var(--primary-500) 0%, var(--primary-700) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-base);
}

.logo:hover .logo-mark {
    transform: scale(1.05);
    box-shadow: var(--shadow-primary-lg);
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--white);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hero Section - Golden Ratio Positioning (38.2% from top) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    padding-top: calc(60px + 20vh); /* Golden ratio: ~38.2% from top */
    padding-bottom: 6rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.hero {
    text-align: center;
    padding: 0 2rem;
    max-width: 600px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--gray-950);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1875rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Form - Enterprise polish */
form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        var(--shadow-xl);
    transition: var(--transition-base);
}

form:focus-within {
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.15),
        0 0 0 4px rgba(34, 197, 94, 0.08),
        var(--shadow-xl);
}

input {
    flex: 1;
    min-width: 180px;
    padding: 1.125rem 1.5rem;
    font-size: 1.0625rem;
    font-family: inherit;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    color: var(--gray-900);
    transition: var(--transition-fast);
    letter-spacing: 0.02em;
}

input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
    letter-spacing: 0;
}

button {
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(145deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    box-shadow: var(--shadow-primary);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, var(--primary-600) 0%, var(--primary-700) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

button:hover::before {
    opacity: 1;
}

button span,
button {
    position: relative;
    z-index: 1;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-primary);
}

/* Article Section - Premium content styling */
.article-section {
    background: var(--white);
    padding: 6rem 2rem;
    position: relative;
}

.article-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 800px);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.article-container {
    max-width: 720px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.article-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-950);
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.article-header .divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-400) 0%, var(--primary-600) 100%);
    border-radius: var(--radius-full);
    margin: 0 auto;
}

.article-content {
    font-size: 1.0625rem;
    color: var(--gray-700);
    line-height: 1.85;
    letter-spacing: -0.005em;
}

.article-content p {
    margin-bottom: 1.875rem;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.875rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.875rem;
}

/* Guides Section - Premium card layout */
.guides-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 6rem 2rem;
    position: relative;
}

.guides-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.guides-container {
    max-width: 1200px;
    margin: 0 auto;
}

.guides-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.guides-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--gray-950);
    letter-spacing: -0.035em;
    margin-bottom: 0.875rem;
}

.guides-header p {
    font-size: 1.0625rem;
    color: var(--gray-500);
    letter-spacing: -0.01em;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* States Section - Clean grid */
.states-section {
    background: var(--white);
    padding: 6rem 2rem;
    position: relative;
}

.states-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.states-container {
    max-width: 1200px;
    margin: 0 auto;
}

.states-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.states-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--gray-950);
    letter-spacing: -0.035em;
    margin-bottom: 0.875rem;
}

.states-header p {
    font-size: 1.0625rem;
    color: var(--gray-500);
    letter-spacing: -0.01em;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.625rem;
}

.state-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.125rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.state-link:hover {
    background: var(--white);
    border-color: var(--primary-200);
    color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.state-link svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary-500);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    opacity: 0.8;
}

.state-link:hover svg {
    opacity: 1;
    stroke: var(--primary-600);
}

.guide-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 1.125rem;
}

.guide-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.guide-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, var(--primary-50) 0%, var(--white) 100%);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.guide-card:hover .guide-card-icon {
    background: linear-gradient(145deg, var(--primary-100) 0%, var(--primary-50) 100%);
    border-color: var(--primary-200);
}

.guide-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-600);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition-fast);
}

.guide-card:hover .guide-card-icon svg {
    stroke: var(--primary-700);
}

.guide-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.guide-card-content p {
    font-size: 0.875rem;
    color: var(--gray-500);
    letter-spacing: -0.005em;
}

/* Footer - Clean finish */
footer {
    padding: 2rem 3rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    letter-spacing: -0.005em;
}

footer a {
    color: var(--gray-600);
    text-decoration: none;
    margin: 0 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary-600);
}

/* Responsive - Mobile-first refinements */
@media (max-width: 768px) {
    header {
        padding: 0.875rem 1.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-section {
        padding-top: calc(60px + 15vh);
        padding-bottom: 4rem;
    }

    .hero {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .hero p {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
    }

    form {
        flex-direction: column;
        padding: 0.625rem;
        border-radius: var(--radius-lg);
    }

    input {
        min-width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    button {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .article-section {
        padding: 4rem 1.5rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
        margin-top: 2.5rem;
    }

    .guides-section {
        padding: 4rem 1.5rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .guide-card {
        padding: 1.25rem;
    }
    
    .guide-card-icon {
        width: 46px;
        height: 46px;
    }
    
    .states-section {
        padding: 4rem 1.5rem;
    }
    
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .state-link {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    footer {
        padding: 1.5rem;
    }

    footer a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 400px) {
    .states-grid {
        grid-template-columns: 1fr;
    }
}