/* ============================================
   Riley's Bookkeeping Service — Stylesheet
   Bold editorial style · Teal + Slate Grey
   ============================================ */

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

:root {
    --teal-900: #042f2e;
    --teal-800: #0F766E;
    --teal-700: #0d9488;
    --teal-600: #14b8a6;
    --teal-50: #f0fdfa;
    --slate-950: #0c1922;
    --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;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(12, 25, 34, 0.08);
    --shadow-md: 0 4px 20px rgba(12, 25, 34, 0.10);
    --shadow-lg: 0 8px 40px rgba(12, 25, 34, 0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.938rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--slate-900);
}

.nav__logo-icon {
    color: var(--teal-800);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__links a {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: var(--transition);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-800);
    transition: var(--transition);
}

.nav__links a:hover {
    color: var(--teal-800);
}

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

.nav__cta {
    background: var(--teal-800);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 500;
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background: var(--teal-700);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-800);
    padding: 8px;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-700);
    padding: 8px;
}

.mobile-menu__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--slate-800);
    padding: 8px 16px;
    transition: var(--transition);
}

.mobile-menu__link:hover {
    color: var(--teal-800);
}

.mobile-menu__cta {
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--teal-800);
    color: var(--white);
    padding: 14px 40px;
    border-radius: var(--radius);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--slate-950);
    padding: 120px 0 0;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 20px;
}

.hero__headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.08;
}

.hero__headline em {
    color: var(--teal-500);
    font-style: italic;
}

.hero__subheadline {
    font-size: 1.125rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
}

.hero__image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 6/7;
}

.hero__image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Stat Cards */
.stat-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: float 4s ease-in-out infinite;
}

.stat-card__number {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--teal-800);
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card--1 {
    top: 12%;
    left: -32px;
    animation-delay: 0s;
}

.stat-card--2 {
    bottom: 20%;
    left: -24px;
    animation-delay: 1.3s;
}

.stat-card--3 {
    bottom: 6%;
    right: -20px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    animation-delay: 2.6s;
}

.stat-card--3 svg {
    color: var(--teal-700);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: 80px;
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header__eyebrow {
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 12px;
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-header__title--light {
    color: var(--white);
}

.section-header__subtitle {
    font-size: 1.063rem;
    color: var(--slate-500);
    line-height: 1.7;
}

.section-header__subtitle--light {
    color: var(--slate-400);
}

/* ---------- Services ---------- */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-600);
    background: var(--white);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--teal-800);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--teal-700);
    transform: scale(1.05);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: var(--slate-50);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--teal-800);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.938rem;
    box-shadow: var(--shadow-md);
}

.about__badge svg {
    flex-shrink: 0;
}

.about__content .section-header__title {
    text-align: left;
}

.about__text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--slate-700);
}

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

/* ---------- Process ---------- */
.process {
    padding: 100px 0;
    background: var(--teal-800);
    position: relative;
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.process__step {
    position: relative;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.process__step:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.process__step-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.process__step-title {
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 12px;
}

.process__step-desc {
    font-size: 0.938rem;
    color: var(--slate-300);
    line-height: 1.7;
}

.process__step-line {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.3);
}

/* ---------- Trust ---------- */
.trust {
    padding: 100px 0;
    background: var(--white);
}

.trust__container {
    max-width: 900px;
    text-align: center;
}

.trust__quote {
    position: relative;
    margin-bottom: 56px;
}

.trust__quote-mark {
    color: var(--teal-200);
    margin-bottom: 24px;
}

.trust__text {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 400;
    font-style: italic;
    color: var(--slate-800);
    line-height: 1.5;
    max-width: 760px;
    margin: 0 auto 20px;
}

.trust__author {
    font-family: var(--font-sans);
    font-size: 0.938rem;
    font-style: normal;
    color: var(--slate-500);
    font-weight: 500;
}

.trust__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.trust__stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-800);
}

.trust__stat-label {
    font-size: 0.813rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.trust__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--slate-200);
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background: var(--slate-50);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__info .section-header__title {
    text-align: left;
}

.contact__text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__detail svg {
    color: var(--teal-700);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.contact__detail-value {
    font-size: 1rem;
    color: var(--slate-800);
    font-weight: 500;
}

.contact__detail-value a {
    color: var(--teal-800);
    transition: var(--transition);
}

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

/* ---------- Form ---------- */
.contact__form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.938rem;
    color: var(--slate-800);
    background: var(--slate-50);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-700);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--teal-50);
    border: 1px solid var(--teal-600);
    border-radius: var(--radius);
    color: var(--teal-800);
    font-size: 0.938rem;
    font-weight: 500;
    margin-top: 16px;
}

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

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

/* ---------- Footer ---------- */
.footer {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: 64px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--slate-800);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__logo-icon {
    color: var(--teal-600);
}

.footer__tagline {
    font-size: 0.938rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.938rem;
}

.footer__contact a {
    color: var(--slate-400);
    transition: var(--transition);
}

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

.footer__bottom {
    padding: 24px 0;
}

.footer__bottom p {
    font-size: 0.813rem;
    color: var(--slate-600);
    text-align: center;
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__container {
        gap: 40px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__container {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .stat-card--1 {
        left: -12px;
        top: 8%;
    }

    .stat-card--2 {
        left: -8px;
    }

    .stat-card--3 {
        right: -8px;
    }

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

    .about__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        max-width: 400px;
        margin: 0 auto;
    }

    .about__badge {
        right: 0;
        bottom: -16px;
    }

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

    .process__steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__form-wrapper {
        padding: 32px 24px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .trust__stats {
        flex-direction: column;
        gap: 24px;
    }

    .trust__stat-divider {
        width: 40px;
        height: 1px;
    }
}

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

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .stat-card {
        padding: 12px 16px;
    }

    .stat-card__number {
        font-size: 1.125rem;
    }

    .stat-card--1 {
        left: 0;
    }

    .stat-card--2 {
        left: 0;
    }

    .stat-card--3 {
        right: 0;
    }
}
