/* =============================================
   Michael A. Davis, CPA — Website Styles
   Classic & Elegant · Teal + Slate Grey
   ============================================= */

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

:root {
    /* Palette */
    --teal-900: #134e4a;
    --teal-800: #115e59;
    --teal-700: #0d9488;
    --teal-600: #0f766e;
    --teal-500: #14b8a6;
    --teal-100: #ccfbf1;
    --teal-50:  #f0fdfa;
    
    --slate-950: #0c1929;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    
    --white: #ffffff;
    --cream: #faf9f7;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-950);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.8125rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--teal-700);
    color: var(--white);
    border-color: var(--teal-700);
}

.btn--primary:hover {
    background-color: var(--teal-800);
    border-color: var(--teal-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn--ghost {
    background-color: transparent;
    color: var(--teal-700);
    border-color: var(--teal-700);
}

.btn--ghost:hover {
    background-color: var(--teal-50);
    transform: translateY(-1px);
}

.btn--full {
    width: 100%;
}

/* ---------- Section Headings ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-600);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow var(--transition-base);
}

.nav.scrolled {
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__logo-mark {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--teal-700);
    background-color: var(--teal-50);
    border: 1.5px solid var(--teal-200);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.05em;
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--slate-900);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-700);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav__link:hover {
    color: var(--teal-700);
    background-color: var(--teal-50);
}

.nav__link--cta {
    background-color: var(--teal-700);
    color: var(--white) !important;
    margin-left: var(--space-sm);
}

.nav__link--cta:hover {
    background-color: var(--teal-800);
    color: var(--white) !important;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--slate-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Mobile nav */
.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero ========== */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--teal-50) 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: var(--space-lg);
}

.hero__headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    color: var(--slate-950);
    margin-bottom: var(--space-xl);
    line-height: 1.15;
}

.hero__subhead {
    font-size: 1.125rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xl);
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
}

.hero__trust-item svg {
    color: var(--teal-700);
    flex-shrink: 0;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image-wrapper img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
}

.hero__image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--teal-700);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.hero__image-badge {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    background-color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.hero__badge-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
}

.hero__badge-sub {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ========== Services ========== */
.services {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    padding: var(--space-2xl);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background-color: var(--white);
}

.service-card:hover {
    border-color: var(--teal-700);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.1);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-md);
    color: var(--teal-700);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
    color: var(--white);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--slate-900);
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ========== About ========== */
.about {
    padding: var(--space-4xl) 0;
    background-color: var(--slate-50);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image-wrapper img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.about__image-accent {
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--teal-700);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.25;
}

.about__eyebrow {
    margin-bottom: var(--space-md);
}

.about__title {
    margin-bottom: var(--space-xl);
}

.about__body {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.about__value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-800);
}

.about__value-icon {
    color: var(--teal-700);
    flex-shrink: 0;
}

/* ========== Why Choose Us ========== */
.why-us {
    padding: var(--space-4xl) 0;
    background-color: var(--slate-950);
}

.why-us__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.why-us__title {
    color: var(--white);
}

.why-us__lead {
    font-size: 1.0625rem;
    color: var(--slate-400);
    line-height: 1.75;
    max-width: 440px;
}

.why-us__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.stat-card {
    background-color: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--teal-700);
    transform: translateY(-2px);
}

.stat-card__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-500);
    margin-bottom: var(--space-sm);
}

.stat-card__label {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.5;
}

/* ========== Contact ========== */
.contact {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact__title {
    margin-bottom: var(--space-lg);
}

.contact__desc {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 460px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact__detail {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.contact__detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-md);
    color: var(--teal-700);
    flex-shrink: 0;
}

.contact__detail-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: 2px;
}

.contact__detail-value {
    display: block;
    font-size: 1rem;
    color: var(--slate-800);
    line-height: 1.5;
}

.contact__link {
    color: var(--teal-700);
    transition: color var(--transition-fast);
}

.contact__link:hover {
    color: var(--teal-600);
    text-decoration: underline;
}

/* ---------- Contact Form ---------- */
.contact__form {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact__form-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    color: var(--slate-950);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--slate-800);
    background-color: var(--white);
    border: 1.5px solid var(--slate-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:hover {
    border-color: var(--slate-400);
}

.form-input:focus {
    border-color: var(--teal-700);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-2xl);
    text-align: center;
    background-color: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.form-success svg {
    color: var(--teal-700);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--slate-700);
    line-height: 1.6;
}

/* ========== Footer ========== */
.footer {
    background-color: var(--slate-950);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--slate-800);
    margin-bottom: var(--space-xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__logo-mark {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--teal-500);
    letter-spacing: 0.05em;
}

.footer__logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--slate-500);
    max-width: 280px;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer__links a {
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--teal-500);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .hero__container {
        gap: var(--space-2xl);
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us__inner {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-lg);
        border-bottom: 1px solid var(--slate-200);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
    }
    
    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav__link {
        padding: var(--space-md);
    }
    
    .nav__link--cta {
        margin-left: 0;
        text-align: center;
        margin-top: var(--space-sm);
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: var(--space-2xl);
    }
    
    .hero__subhead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .hero__trust {
        justify-content: center;
    }
    
    .hero__image-wrapper {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero__image-wrapper img {
        height: 400px;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about__container {
        grid-template-columns: 1fr;
    }
    
    .about__image-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about__image-wrapper img {
        height: 400px;
    }
    
    .about__values {
        grid-template-columns: 1fr;
    }
    
    .why-us__stats {
        grid-template-columns: 1fr;
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__top {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero__headline {
        font-size: 1.75rem;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
}
