/* ============================================
   CTS4Taxes — Professional Tax Services
   Clean Minimalist · Plum + Amber
   ============================================ */

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

:root {
    --plum: #4A2040;
    --plum-dark: #351730;
    --plum-light: #6B3060;
    --plum-faint: #F5F0F3;
    --amber: #C8963E;
    --amber-light: #D4A04A;
    --amber-faint: #FDF8EE;
    --plum-accent: #8B4570;
    
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-tertiary: #7A7A7A;
    --text-light: #9A9A9A;
    
    --bg-white: #FFFFFF;
    --bg-off: #FAFAFA;
    --bg-cream: #FDF9F5;
    --bg-plum: #4A2040;
    
    --line: #E8E4E6;
    --line-light: #F0ECEC;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    --max-width: 1200px;
    --header-h: 80px;
}

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

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

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

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

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

/* ---------- PAGE LINES (decorative) ---------- */
.page-line-left,
.page-line-right {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-light);
    z-index: 100;
    pointer-events: none;
}

.page-line-left { left: calc(50% - 580px); }
.page-line-right { right: calc(50% - 580px); }

@media (max-width: 1160px) {
    .page-line-left, .page-line-right { display: none; }
}

@media (max-width: 768px) {
    .page-line-left, .page-line-right { display: none; }
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-light);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
}

.logo-mark {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--plum);
}

.logo-slash {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--amber);
    margin: 0 2px;
}

.logo-name {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--plum);
}

.nav a:hover::after {
    width: 100%;
}

.header-cta {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--plum);
    border: 1px solid var(--plum);
    padding: 0.5rem 1.25rem;
    transition: all 0.25s ease;
}

.header-cta:hover {
    background: var(--plum);
    color: var(--bg-white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 900px) {
    .nav, .header-cta { display: none; }
    .menu-toggle { display: flex; }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-nav a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: color 0.25s ease;
}

.mobile-nav a:hover {
    color: var(--plum);
}

.mobile-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--line);
}

.mobile-contact a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    transition: color 0.25s ease;
}

.mobile-contact a:hover {
    color: var(--plum);
}

/* ---------- 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.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--plum);
    color: var(--bg-white);
    border-color: var(--plum);
}

.btn-primary:hover {
    background: var(--plum-dark);
    border-color: var(--plum-dark);
}

.btn-outline {
    background: transparent;
    color: var(--plum);
    border-color: var(--plum);
}

.btn-outline:hover {
    background: var(--plum);
    color: var(--bg-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--bg-white);
    color: var(--plum);
}

.btn-full {
    width: 100%;
}

/* ---------- HERO ---------- */
.hero {
    padding-top: var(--header-h);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-left {
    padding-right: var(--space-lg);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--space-lg);
}

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

.hero-headline em {
    font-style: italic;
    color: var(--plum);
}

.hero-subhead {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
}

.hero-image-wrap {
    position: relative;
}

.hero-image-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 600/780;
    object-fit: cover;
    filter: grayscale(10%);
}

.hero-accent-line {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 1px;
    background: var(--amber);
}

.hero-stats {
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.hero-stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--plum);
}

.stat-divider {
    width: 1px;
    background: var(--line);
    align-self: stretch;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        padding-top: var(--space-2xl);
    }
    .hero-left {
        padding-right: 0;
        order: 2;
    }
    .hero-right {
        order: 1;
    }
    .hero-image-wrap img {
        aspect-ratio: 4/3;
    }
    .hero-accent-line { display: none; }
    .hero-stats-inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .stat-divider { display: none; }
}

/* ---------- SECTION COMMON ---------- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ---------- SERVICES ---------- */
.services {
    padding: var(--space-4xl) 0;
    background: var(--bg-white);
}

.services .section-header {
    margin-bottom: var(--space-3xl);
}

.services .section-title {
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    background: var(--bg-white);
    padding: var(--space-2xl);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    background: var(--plum-faint);
}

.service-card:hover .service-number {
    color: var(--plum);
}

.service-card:hover .service-title {
    color: var(--plum);
}

.service-number {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    transition: color 0.3s ease;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    transition: color 0.3s ease;
}

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

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

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

/* ---------- ABOUT ---------- */
.about {
    padding: var(--space-4xl) 0;
    background: var(--bg-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-image-col {
    position: relative;
}

.about-image-col img {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 580/720;
    object-fit: cover;
    filter: grayscale(10%);
}

.about-image-caption {
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.caption-divider {
    color: var(--amber);
}

.about-content-col {
    padding-top: var(--space-lg);
}

.about-content-col .section-title {
    margin-bottom: var(--space-xl);
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

.about-values {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--line);
}

.value-line {
    width: 32px;
    height: 1px;
    background: var(--amber);
    flex-shrink: 0;
}

.value-item span {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .about-image-col img {
        max-width: 100%;
        aspect-ratio: 4/3;
    }
    .about-content-col {
        padding-top: 0;
    }
}

/* ---------- APPROACH ---------- */
.approach {
    padding: var(--space-4xl) 0;
    background: var(--bg-white);
}

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

.approach-header .section-title {
    max-width: 600px;
    margin: 0 auto;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.approach-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: var(--line);
}

.approach-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--plum);
    border: 1px solid var(--plum);
    border-radius: 50%;
    background: var(--bg-white);
    position: relative;
    z-index: 1;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 260px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .approach-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
    .approach-steps::before { display: none; }
}

@media (max-width: 500px) {
    .approach-steps {
        grid-template-columns: 1fr;
    }
}

/* ---------- CTA SECTION ---------- */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--plum);
    position: relative;
    overflow: hidden;
}

.cta-bg-line {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content .section-eyebrow {
    color: var(--amber-light);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--bg-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.cta-desc {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin: 0 auto var(--space-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-outline-light:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--plum-dark);
}

/* ---------- CONTACT ---------- */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--bg-white);
}

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

.contact-info .section-title {
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    color: var(--plum);
}

.contact-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    line-height: 1.6;
}

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

.contact-hours {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--line);
}

.contact-hours h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.contact-hours p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg-off);
    border: 1px solid var(--line);
    padding: 0.875rem 1rem;
    outline: none;
    transition: border-color 0.25s ease;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--plum-faint);
    border: 1px solid var(--plum);
    color: var(--plum);
    font-size: 0.9375rem;
    font-weight: 400;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-mark { color: var(--bg-white); }
.footer-brand .logo-slash { color: var(--amber); }
.footer-brand .logo-name { color: var(--bg-white); }

.footer-brand p {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--bg-white);
    margin-bottom: var(--space-md);
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a,
.footer-contact a {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--amber-light);
}

.footer-contact li:last-child {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
