/* =========================================
   Clarity Business Accounting — Shared Styles
   ========================================= */

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

/* Design Tokens */
:root {
    --cream:        #F5F1EA;
    --cream-dark:   #EAE4D8;
    --cream-mid:    #F0EBE1;
    --green-deep:   #1A3628;
    --green-rich:   #234B38;
    --green-mid:    #3A6B52;
    --green-light:  #E8F2EC;
    --green-pale:   #F0F6F1;
    --gold:         #B8925A;
    --gold-light:   #CFA876;
    --gold-pale:    #F5EDDB;
    --charcoal:     #191917;
    --text:         #2A2A27;
    --text-mid:     #5A5A55;
    --text-light:   #9A9A92;
    --white:        #FFFFFF;

    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width:    1180px;
    --section-pad:  96px;
    --nav-h:        76px;

    --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.12;
    color: var(--charcoal);
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── Container ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-deep);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--green-rich);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26,54,40,0.28);
}

.btn-outline {
    background: transparent;
    color: var(--green-deep);
    border: 1.5px solid var(--green-deep);
}
.btn-outline:hover {
    background: var(--green-deep);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(184,146,90,0.35);
}

.btn-white {
    background: var(--white);
    color: var(--green-deep);
}
.btn-white:hover {
    background: var(--cream);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.06);
}

.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background 0.4s var(--ease-out), box-shadow 0.4s;
}
nav.scrolled {
    background: rgba(245, 241, 234, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
.nav-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--charcoal);
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    /* Removes white background on light/cream surfaces */
    mix-blend-mode: multiply;
}

/* On dark backgrounds (footer), invert to a clean white mark */
footer .logo-mark {
    mix-blend-mode: normal;
    filter: brightness(0) invert(1);
    opacity: 0.75;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-primary {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--green-deep);
    letter-spacing: 0.01em;
}
.logo-secondary {
    font-size: 9.5px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.28s var(--ease-out);
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 199;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    color: var(--green-deep);
    transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
    position: absolute;
    top: 24px; right: 28px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--charcoal);
}

/* ── Section Utilities ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.section-tag::before {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: var(--gold);
}

.section-header {
    max-width: 560px;
    margin: 0 auto 64px;
    text-align: center;
}
.section-header .section-tag { justify-content: center; }
.section-header h2 {
    font-size: clamp(30px, 3.8vw, 46px);
    font-weight: 500;
    color: var(--green-deep);
    margin-bottom: 16px;
}
.section-header p {
    font-size: 16px;
    line-height: 1.72;
    color: var(--text-mid);
}

/* ── Scroll animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

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

/* ── Credentials strip ── */
.credentials {
    background: var(--white);
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
    padding: 28px 0;
}
.credentials-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.credentials-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    white-space: nowrap;
    padding-right: 8px;
    border-right: 1px solid var(--cream-dark);
}
.credentials-logos {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    flex: 1;
}
.cred-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cred-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.3);
    opacity: 0.85;
    transition: opacity 0.2s, filter 0.2s;
}
.cred-logo:hover { opacity: 1; filter: grayscale(0); }

/* Fallback badge shown when image file is missing */
.cred-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    background: var(--green-light);
    border: 1px solid rgba(58,107,82,0.2);
    border-radius: 6px;
    padding: 8px 14px;
}
.cred-badge-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1;
}
.cred-badge-sub {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-mid);
}

.cred-number {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.cred-number-label {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}
.cred-number-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
}

.cred-divider {
    width: 1px;
    height: 36px;
    background: var(--cream-dark);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .credentials-inner { gap: 20px; }
    .credentials-label { border-right: none; padding-right: 0; }
    .cred-divider { display: none; }
}

/* ── Footer ── */
footer {
    background: var(--charcoal);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-primary { color: var(--white); }
.footer-brand .logo-secondary { color: rgba(255,255,255,0.35); }
.footer-tagline {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
    max-width: 250px;
    margin-bottom: 24px;
}
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 9px;
    transition: color 0.2s;
}
.footer-contact a:hover { color: var(--gold-light); }
.footer-col h4 {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.42);
    transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
    transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.55); }

/* ── Responsive ── */
@media (max-width: 960px) {
    :root { --section-pad: 64px; }
    .container { padding: 0 24px; }
    .nav-inner { padding: 0 24px; }
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .btn-lg { padding: 14px 28px; font-size: 14px; }
}
