/* ============================================================
   Cedar Bookkeeping LLC — Main Stylesheet
   Color Scheme: Navy Blue (#1B2A4A) + Warm Gold (#C9A84C)
   Fonts: Cormorant Garamond (headings) + Inter (body)
   ============================================================ */

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d2d2d;
    background-color: #fafaf8;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1B2A4A;
}

.section {
    padding: 100px 0;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 16px;
}

.section__title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1B2A4A;
}

.section__desc {
    font-size: 1.125rem;
    color: #5a5a5a;
    line-height: 1.8;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn--primary {
    background-color: #C9A84C;
    color: #1B2A4A;
    border-color: #C9A84C;
}

.btn--primary:hover {
    background-color: #b8942e;
    border-color: #b8942e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn--outline {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 44px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ----- HEADER / NAVIGATION ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

.header--scrolled {
    background-color: rgba(27, 42, 74, 0.97);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__img {
    height: 200px;
    width: auto;
    display: block;
}

.logo__img--footer {
    height: 220px;
}

.logo__icon {
    font-size: 1.5rem;
    color: #C9A84C;
    line-height: 1;
}

.logo__text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo__llc {
    font-weight: 400;
    font-size: 0.85rem;
    color: #C9A84C;
}

/* Navigation */
.nav__list {
    display: flex;
    gap: 36px;
}

.nav__link {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C9A84C;
    transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
    color: #fff;
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger__line {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger--active .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #1B2A4A;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900"><rect fill="%231B2A4A" width="1440" height="900"/><path fill="%23213a60" opacity="0.3" d="M0,500 C360,400 720,600 1440,450 L1440,900 L0,900 Z"/><path fill="%23213a60" opacity="0.15" d="M0,650 C480,550 960,750 1440,600 L1440,900 L0,900 Z"/></svg>');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.92) 0%, rgba(27, 42, 74, 0.7) 100%);
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.hero__split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero__text {
    text-align: left;
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero__title--accent {
    color: #C9A84C;
    font-style: italic;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__photo-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background-color: #f5f3ee;
    padding: 24px 0;
    border-bottom: 1px solid rgba(27, 42, 74, 0.06);
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-bar__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a8a8a;
}

.trust-bar__items {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trust-bar__item {
    font-size: 0.9rem;
    color: #1B2A4A;
    font-weight: 500;
}

.trust-bar__item--dot {
    color: #C9A84C;
    font-size: 1.2rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: #fff;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background-color: #fafaf8;
    border: 1px solid #e8e6e0;
    border-radius: 12px;
    padding: 40px 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #C9A84C, #b8942e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 42, 74, 0.08);
    border-color: #C9A84C;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    color: #C9A84C;
    margin-bottom: 24px;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1B2A4A;
}

.service-card__desc {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background-color: #1B2A4A;
    padding: 80px 0;
    text-align: center;
}

.cta-banner__inner {
    max-width: 650px;
}

.cta-banner__title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 16px;
}

.cta-banner__desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: #fff;
}

.about__content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.about__image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 100px;
}

.about__photo {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(27, 42, 74, 0.12);
}

.about__text p {
    font-size: 1.05rem;
    color: #5a5a5a;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about__values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about__value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about__value-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #C9A84C;
    color: #1B2A4A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.about__value h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1B2A4A;
    margin-bottom: 4px;
}

.about__value p {
    font-size: 0.9rem;
    color: #7a7a7a;
    margin-bottom: 0;
}

.about__image-placeholder {
    background-color: #f5f3ee;
    border: 2px dashed #d4d0c8;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    color: #8a8a8a;
}

.about__image-icon {
    font-size: 3rem;
    color: #C9A84C;
    display: block;
    margin-bottom: 12px;
}

.about__image-placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background-color: #fafaf8;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid #e8e6e0;
    border-radius: 12px;
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 42, 74, 0.06);
}

.testimonial-card__stars {
    color: #C9A84C;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.testimonial-card__text {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #1B2A4A;
    color: #C9A84C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.testimonial-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1B2A4A;
}

.testimonial-card__role {
    font-size: 0.8rem;
    color: #8a8a8a;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: #fff;
}

.contact__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}


.contact__info-logo {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e6e0;
    text-align: center;
}

.contact__info-logo-img {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.contact__info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background-color: #f5f3ee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A84C;
}

.contact__info-icon svg {
    width: 20px;
    height: 20px;
}

.contact__info-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a8a8a;
    margin-bottom: 4px;
}

.contact__link {
    font-size: 1.05rem;
    color: #1B2A4A;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact__link:hover {
    color: #C9A84C;
}

.contact__text {
    font-size: 1.05rem;
    color: #1B2A4A;
}

/* Form */
.contact__form {
    background-color: #fafaf8;
    border: 1px solid #e8e6e0;
    border-radius: 12px;
    padding: 40px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1B2A4A;
    margin-bottom: 8px;
}

.form__required {
    color: #C9A84C;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border: 1.5px solid #e0ddd6;
    border-radius: 6px;
    background-color: #fff;
    color: #2d2d2d;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form__input:focus {
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form__input::placeholder {
    color: #b0b0b0;
}

.form__input--error {
    border-color: #d32f2f;
}

.form__input--error:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.form__textarea {
    min-height: 130px;
    resize: vertical;
}

.form__error {
    display: none;
    font-size: 0.8rem;
    color: #d32f2f;
    margin-top: 6px;
}

.form__error--visible {
    display: block;
}

.form__disclaimer {
    font-size: 0.8rem;
    color: #8a8a8a;
    text-align: center;
    margin-top: 16px;
}

/* Form success state */
.form__success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form__success--visible {
    display: block;
}

.form__success-icon {
    font-size: 3rem;
    color: #C9A84C;
    margin-bottom: 16px;
}

.form__success h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form__success p {
    color: #5a5a5a;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1B2A4A;
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.footer__heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C9A84C;
    margin-bottom: 20px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a,
.footer__contact a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: #C9A84C;
}

.footer__contact p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer__tagline-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0;
    text-align: center;
}

.footer__tagline-img {
    max-width: 900px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        position: static;
    }

    .about__photo {
        max-width: 320px;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__text {
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__photo-img {
        max-width: 340px;
    }

    .hero__title {
        font-size: 2.6rem;
        white-space: normal;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .section__header {
        margin-bottom: 40px;
    }

    /* Navigation */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #1B2A4A;
        padding: 100px 40px 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav--open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 24px;
    }

    .nav__link {
        font-size: 1.3rem;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero__title {
        font-size: 2rem;
        white-space: normal;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero__photo-img {
        max-width: 280px;
    }

    .logo__img {
        height: 100px;
    }

    .logo__img--footer {
        height: 110px;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-banner__title {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer__brand .logo {
        justify-content: center;
    }

    /* Contact form */
    .contact__form {
        padding: 24px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.7rem;
        white-space: normal;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .trust-bar__inner {
        flex-direction: column;
        gap: 8px;
    }
}
