/* Premium Design System for New England Tax Services */

:root {
    --bg-color: #F8FAFC;
    --bg-section: #FFFFFF;
    --bg-secondary: #F1F5F9;
    --text-color: #1E293B;
    --text-muted: #64748B;
    --primary-accent: #0C4A6E;
    --primary-accent-light: #075985;
    --cta-accent: #F97316;
    --cta-accent-hover: #EA580C;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
    color: var(--text-color); 
    background: var(--bg-color);
    line-height: 1.65;
}

a { 
    color: var(--primary-accent); 
    text-decoration: none; 
    transition: var(--transition); 
}

a:hover {
    color: var(--primary-accent-light);
}

.container { 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* Premium Buttons */
.btn { 
    display: inline-block; 
    background: linear-gradient(135deg, var(--cta-accent) 0%, var(--cta-accent-hover) 100%);
    color: #fff; 
    padding: 14px 28px; 
    border-radius: 10px; 
    font-weight: 600; 
    font-size: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover { 
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.alt { 
    background: var(--white); 
    color: var(--primary-accent); 
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn.alt:hover {
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Headers */
header.head { 
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

header.head::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(12, 74, 110, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

header.head .inner {
    position: relative;
    z-index: 1;
    padding: 0;
}

h1 { 
    margin: 0 0 16px; 
    font-size: clamp(36px, 4vw, 48px); 
    line-height: 1.1; 
    color: var(--primary-accent);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 3vw, 32px);
    margin: 0 0 16px;
    color: var(--primary-accent);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 24px;
    margin: 0 0 12px;
    color: var(--text-color);
    font-weight: 600;
}

p.lead { 
    font-size: 18px; 
    color: var(--text-muted); 
    margin: 0 0 24px;
    line-height: 1.6;
}

.muted { 
    color: var(--text-muted);
    font-size: 15px;
}

/* Main Content */
main { 
    padding: 72px 0;
}

main .container {
    padding: 0 24px;
}

/* Premium Cards */
.card { 
    background: var(--white); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-accent-light);
}

.card h2 { 
    margin: 0 0 12px; 
    font-size: 24px; 
    color: var(--text-color);
    font-weight: 600;
}

.card p {
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 16px;
}

/* Grid Layouts */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px; 
}

.section {
    margin-bottom: 32px;
}

/* Lists */
ul {
    margin: 12px 0;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

ul li {
    margin: 8px 0;
}

ul li::marker {
    color: var(--cta-accent);
}

/* Pills/Badges */
.pill {
    display: inline-block;
    background: rgba(12, 74, 110, 0.1);
    color: var(--primary-accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Sticky Top Bar */
.sticky-bar {
    background-color: var(--primary-accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sticky-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.sticky-bar p {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

.sticky-bar a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

html {
    scroll-behavior: smooth;
}

/* Footer */
footer.site-footer { 
    background: #0F172A; 
    color: #E2E8F0;
}

footer .main-footer {
    padding: 56px 0 32px;
}

footer .footer-inner { 
    padding: 0; 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

footer .footer-col {
    min-width: 0;
}

footer .footer-col:first-child {
    /* First column (company info) is wider */
    max-width: none;
}

footer h4 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}

footer a { 
    color: #CBD5E1;
    transition: var(--transition);
    text-decoration: none;
}

footer a:hover {
    color: #FFFFFF;
}

footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-links li {
    margin: 8px 0;
    font-size: 14px;
}

footer .footer-links li a {
    color: #CBD5E1;
    line-height: 1.6;
}

footer .footer-links li a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

footer .footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

footer .footer-copyright {
    color: #94A3B8;
    font-size: 14px;
}

footer .footer-nav {
    display: flex;
}

footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

footer .footer-menu li {
    margin: 0;
}

footer .footer-menu li a {
    color: #CBD5E1;
    font-size: 14px;
}

footer .footer-menu li a:hover {
    color: #FFFFFF;
}

@media (max-width: 1200px) {
    footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    footer .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    footer .footer-menu {
        justify-content: center;
    }
}
