/* ============================================
   Roy M Roberts CPA — Custom Styles
   Clean Minimalist | Forest Green + Off-White
   ============================================ */

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

:root {
    --green-900: #0d1f15;
    --green-800: #1a3a2a;
    --green-700: #1e4d35;
    --green-600: #236042;
    --green-500: #2d7a54;
    --green-400: #4a9e74;
    --green-100: #d1e8d9;
    --green-50:  #eaf5ee;

    --cream:     #f7f4ef;
    --cream-light:#faf8f5;
    --cream-dark:#ede8df;
    --white:     #ffffff;

    --text-primary:   #1a1a18;
    --text-secondary: #4a4a44;
    --text-muted:     #7a7a72;
    --text-light:     #f5f0e8;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Inter', system-ui, sans-serif;

    --nav-height: 72px;
    --container-max: 1200px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-700);
    color: var(--text-light);
    border-color: var(--green-700);
}

.btn-primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 58, 42, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(245, 240, 232, 0.5);
}

.btn-outline:hover {
    background: rgba(245, 240, 232, 0.1);
    border-color: var(--text-light);
}

.btn-outline-light {
    background: transparent;
    color: var(--green-700);
    border-color: var(--green-700);
}

.btn-outline-light:hover {
    background: var(--green-700);
    color: var(--text-light);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(247, 244, 239, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--cream-dark);
}

.navbar.scrolled .nav-logo .logo-text {
    color: var(--text-primary);
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover {
    color: var(--green-700);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    z-index: 1001;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-light);
    border: 1px solid rgba(245, 240, 232, 0.4);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .logo-mark {
    color: var(--green-700);
    border-color: var(--green-700);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
}

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

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.8);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    border: 1px solid rgba(245, 240, 232, 0.4);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: rgba(245, 240, 232, 0.1);
    border-color: var(--text-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-light);
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--text-primary);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--text-primary);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, 
            #0d1f15 0%, 
            #1a3a2a 25%, 
            #1e4d35 50%, 
            #236042 75%, 
            #2d7a54 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(45, 122, 84, 0.3) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(26, 58, 42, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 80% 20%, rgba(74, 158, 116, 0.15) 0%, transparent 60%);
}

/* Subtle grain texture */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-headline br {
    display: block;
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.7);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 240, 232, 0.4);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-500);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-line {
    width: 48px;
    height: 1px;
    background: var(--green-400);
    margin: 0 auto;
}

/* --- Services --- */
.services {
    padding: 7rem 0;
    background: var(--cream-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--green-100);
    box-shadow: 0 8px 32px rgba(26, 58, 42, 0.06);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
    margin-bottom: 1.5rem;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* --- About --- */
.about {
    padding: 7rem 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 2px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 560/680;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.about-content .section-line {
    margin: 0 0 2rem 0;
}

.about-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--green-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Why Us --- */
.why {
    padding: 7rem 0;
    background: var(--cream-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.why-item {
    padding: 2.5rem;
    border: 1px solid var(--cream-dark);
    border-radius: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.why-item:hover {
    border-color: var(--green-100);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--green-100);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color var(--transition);
}

.why-item:hover .why-number {
    color: var(--green-200);
}

.why-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.why-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* --- CTA --- */
.cta {
    padding: 7rem 0;
    background: 
        linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, var(--green-700) 100%);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(74, 158, 116, 0.12) 0%, transparent 70%);
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.5);
    margin-bottom: 1rem;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.cta-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
    padding: 7rem 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-info .section-line {
    margin: 0 0 2rem 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green-600);
    border: 1px solid var(--green-100);
    border-radius: 2px;
}

.contact-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--green-700);
}

.map-container {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--cream-dark);
}

/* --- Form --- */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 2px;
    padding: 2.5rem;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--cream-light);
    border: 1px solid var(--cream-dark);
    border-radius: 2px;
    outline: none;
    transition: all var(--transition);
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--green-400);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(45, 122, 84, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--green-700);
    background: var(--green-50);
    border-radius: 2px;
}

/* --- Footer --- */
.footer {
    background: var(--green-900);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand .logo-mark {
    color: var(--text-light);
    border-color: rgba(245, 240, 232, 0.2);
    width: 40px;
    height: 40px;
}

.footer-brand .logo-text {
    color: var(--text-light);
    font-size: 1.125rem;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.4);
    max-width: 280px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.35);
}

.footer-bottom a {
    color: rgba(245, 240, 232, 0.5);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--text-light);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--green-900);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 2rem;
        gap: 1.5rem;
        transition: right var(--transition);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu .nav-link {
        color: rgba(245, 240, 232, 0.8);
        font-size: 0.9375rem;
    }

    .nav-menu .nav-cta {
        color: var(--text-light);
        border-color: rgba(245, 240, 232, 0.3);
        margin-top: 1rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero-headline {
        font-size: clamp(1.875rem, 7vw, 2.75rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        aspect-ratio: 4/3;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-wrapper {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .services,
    .about,
    .why,
    .cta,
    .contact {
        padding: 4.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
