/*
Theme Name: Tell It Like It Is Bookkeeping
Theme URI: https://tellitlikeitisbookkeeping.com
Author: NlinkSolution
Author URI: https://www.nlinksolution.com
Description: A professional, fully customizable WordPress theme for Tell It Like It Is Bookkeeping LLC. Built with Customizer support, Services and Testimonials CPTs, Google reCAPTCHA v3, and AJAX contact form.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tellitlikeit
Tags: one-page, business, customizer, custom-post-types, responsive-layout
*/

/* ===== CSS VARIABLES ===== */
:root {
    --navy: #1B2E4A;
    --navy-dark: #0F1E33;
    --olive: #6B7F3B;
    --olive-light: #8B9D6B;
    --sage: #A8B88C;
    --cream: #F7F6F2;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --shadow-sm: 0 1px 3px rgba(27,46,74,0.08);
    --shadow-md: 0 4px 16px rgba(27,46,74,0.10);
    --shadow-lg: 0 12px 40px rgba(27,46,74,0.12);
    --radius: 8px;
    --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1.25; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== UTILITY ===== */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
    color: var(--olive); margin-bottom: 12px;
}
.section-eyebrow::before {
    content: ''; width: 32px; height: 2px; background: var(--olive);
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--gray-600); max-width: 620px; line-height: 1.75; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius); font-weight: 600;
    font-size: 0.95rem; border: none; cursor: pointer;
    transition: all var(--transition); font-family: 'Inter', sans-serif;
}
.btn-primary {
    background: var(--olive); color: var(--white);
}
.btn-primary:hover { background: var(--olive-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
    background: transparent; color: var(--white); border: 2px solid var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-outline {
    background: transparent; color: var(--olive); border: 2px solid var(--olive);
}
.btn-outline:hover { background: var(--olive); color: var(--white); }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--navy-dark); color: rgba(255,255,255,0.85);
    font-size: 0.82rem; padding: 8px 0;
}
.top-bar .container {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--sage); }
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }
.top-bar i { margin-right: 5px; color: var(--sage); }

/* ===== HEADER ===== */
.header {
    background: var(--white); position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px; padding-bottom: 12px;
    transition: padding var(--transition);
}
.header.scrolled .container {
    padding-top: 6px; padding-bottom: 6px;
}
.text-logo { line-height: 1.15; }
.text-logo .brand-name {
    font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
    color: var(--navy); display: block; white-space: nowrap;
}
.text-logo .brand-tagline {
    font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px;
    color: var(--olive); display: block;
}
.logo-image {
    height: 90px;
    width: auto;
    display: block;
    transition: height var(--transition);
}
.header.scrolled .logo-image {
    height: 65px;
}
.nav-links {
    display: flex; align-items: center; gap: 28px;
}
.nav-links a {
    font-size: 0.8rem; font-weight: 600; color: var(--gray-600);
    position: relative; padding: 4px 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--olive); transition: width var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta {
    background: var(--olive); color: var(--white) !important; padding: 10px 22px;
    border-radius: var(--radius); font-weight: 600; font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}
.nav-links a.nav-cta::after { display: none !important; }
.nav-links a.nav-cta:hover { background: var(--olive-light) !important; color: var(--white) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: 8px; z-index: 1100;
    width: 40px; height: 40px; align-items: center; justify-content: center;
}
.hamburger span {
    display: block; width: 24px; height: 2.5px; background: var(--navy);
    border-radius: 2px; transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); z-index: 1050; flex-direction: column;
    justify-content: center; align-items: center; gap: 28px;
    opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav.open { display: flex; opacity: 1; }
.mobile-nav a {
    font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy);
    font-weight: 600;
}
.mobile-nav a:hover { color: var(--olive); }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0.18;
}
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; min-width: 0; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(107,127,59,0.2); border: 1px solid rgba(107,127,59,0.3);
    color: var(--sage); padding: 8px 18px; border-radius: 30px;
    font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem); color: var(--white);
    margin-bottom: 20px; max-width: 600px;
}
.hero h1 span { color: var(--sage); }
.hero p {
    font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 520px;
    margin-bottom: 32px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
    flex: 0 0 420px;
    border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 480px; object-fit: cover; }

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--cream); padding: 40px 0; border-bottom: 1px solid var(--gray-200);
}
.trust-items {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item {
    display: flex; align-items: center; gap: 12px;
    font-weight: 600; color: var(--navy); font-size: 0.95rem;
}
.trust-item i { font-size: 1.4rem; color: var(--olive); }

/* ===== ABOUT ===== */
.about { padding: 100px 0; }
.about .container { display: flex; gap: 60px; align-items: center; }
.about-image { flex: 0 0 460px; border-radius: 12px; overflow: hidden; position: relative; }
.about-image img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
.about-image-accent {
    position: absolute; bottom: -16px; right: -16px; width: 180px; height: 180px;
    border: 3px solid var(--olive); border-radius: 12px; z-index: -1;
}
.about-content { flex: 1; }
.about-content p { margin-bottom: 20px; color: var(--gray-600); }
.about-values {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0;
}
.about-value {
    display: flex; align-items: center; gap: 10px;
    font-weight: 500; color: var(--navy); font-size: 0.95rem;
}
.about-value i { color: var(--olive); font-size: 1rem; }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--cream); }
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    margin-top: 48px;
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .services-grid .service-card {
        grid-column: span 2;
    }
    .services-grid .service-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .services-grid .service-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}
.service-card {
    background: var(--white); border-radius: 12px; padding: 36px 28px;
    box-shadow: var(--shadow-sm); transition: all var(--transition);
    border: 1px solid transparent; text-align: center;
}
.service-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg);
    border-color: var(--sage);
}
.service-icon {
    width: 64px; height: 64px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(107,127,59,0.12), rgba(107,127,59,0.06));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.service-icon i { font-size: 1.5rem; color: var(--olive); }
.service-card h3 {
    font-size: 1.15rem; margin-bottom: 12px; font-family: 'Inter', sans-serif;
    font-weight: 700; color: var(--navy);
}
.service-card p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; }

/* ===== WHY CHOOSE US ===== */
.why-us { padding: 100px 0; }
.why-us .container { display: flex; gap: 60px; align-items: center; }
.why-us-content { flex: 1; }
.why-us-image { flex: 0 0 480px; border-radius: 12px; overflow: hidden; }
.why-us-image img { width: 100%; height: 440px; object-fit: cover; border-radius: 12px; }
.why-us-list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.why-us-item { display: flex; gap: 16px; }
.why-us-item-icon {
    flex: 0 0 48px; height: 48px; border-radius: 10px;
    background: rgba(107,127,59,0.1);
    display: flex; align-items: center; justify-content: center;
}
.why-us-item-icon i { color: var(--olive); font-size: 1.1rem; }
.why-us-item h4 {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem;
    color: var(--navy); margin-bottom: 4px;
}
.why-us-item p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; }

/* ===== PROCESS ===== */
.process { padding: 100px 0; background: var(--navy); color: var(--white); }
.process .section-eyebrow { color: var(--sage); }
.process .section-eyebrow::before { background: var(--sage); }
.process .section-title { color: var(--white); }
.process .section-subtitle { color: rgba(255,255,255,0.7); }
.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    margin-top: 48px;
}
.process-step { text-align: center; position: relative; }
.process-step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--olive); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; margin: 0 auto 20px;
    font-family: 'Playfair Display', serif;
}
.process-step h3 {
    color: var(--white); font-size: 1.05rem; margin-bottom: 8px;
    font-family: 'Inter', sans-serif; font-weight: 600;
}
.process-step p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 100px 0; background: var(--cream); }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    margin-top: 48px;
}
.testimonial-card {
    background: var(--white); border-radius: 12px; padding: 32px;
    box-shadow: var(--shadow-sm); position: relative;
}
.testimonial-stars { color: #F59E0B; margin-bottom: 16px; font-size: 0.9rem; }
.testimonial-card p {
    font-size: 0.95rem; color: var(--gray-600); line-height: 1.75;
    margin-bottom: 20px; font-style: italic;
}
.testimonial-author {
    display: flex; align-items: center; gap: 12px;
    border-top: 1px solid var(--gray-200); padding-top: 16px;
}
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--gray-400); }

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--olive) 0%, #4A5C28 100%);
    text-align: center; color: var(--white);
}
.cta-banner h2 {
    color: var(--white); font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 16px;
}
.cta-banner p {
    font-size: 1.05rem; opacity: 0.9; max-width: 560px;
    margin: 0 auto 32px; line-height: 1.7;
}
.cta-banner-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    margin-top: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 16px; }
.contact-info-icon {
    flex: 0 0 52px; height: 52px; border-radius: 10px;
    background: rgba(107,127,59,0.1);
    display: flex; align-items: center; justify-content: center;
}
.contact-info-icon i { color: var(--olive); font-size: 1.1rem; }
.contact-info-item h4 {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.95rem;
    color: var(--navy); margin-bottom: 4px;
}
.contact-info-item p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }
.contact-info-item a { color: var(--olive); font-weight: 500; }
.contact-info-item a:hover { text-decoration: underline; }

.contact-form {
    background: var(--cream); border-radius: 12px; padding: 36px;
}
.contact-form h3 {
    font-size: 1.3rem; margin-bottom: 24px;
    font-family: 'Inter', sans-serif; font-weight: 700;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy);
    margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200);
    border-radius: var(--radius); font-family: 'Inter', sans-serif;
    font-size: 0.92rem; background: var(--white); color: var(--gray-800);
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--olive);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; margin-top: 4px; justify-content: center; }
.form-success {
    display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success i { font-size: 3rem; color: var(--olive); margin-bottom: 16px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--gray-600); }
.form-fields.hide { display: none; }

/* Form notice */
.form-notice {
    padding: 12px 16px; border-radius: var(--radius);
    font-size: 0.88rem; margin-bottom: 16px;
}
.form-notice.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.form-notice.success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }

/* ===== MAP ===== */
.map-section { position: relative; }
.map-section iframe { width: 100%; height: 350px; border: 0; display: block; filter: grayscale(30%); }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .text-logo { margin-bottom: 16px; }
.footer-brand .text-logo .brand-name { color: var(--white); }
.footer-brand .text-logo .brand-tagline { color: var(--sage); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer h4 {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.95rem;
    color: var(--white); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
    font-size: 0.88rem; color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer ul a:hover { color: var(--sage); }
.footer-contact-item {
    display: flex; gap: 10px; font-size: 0.88rem; align-items: flex-start;
}
.footer-contact-item i { color: var(--sage); margin-top: 3px; font-size: 0.85rem; }
.footer-bottom {
    padding: 24px 0; text-align: center; font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--sage); }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== STICKY MOBILE CTA ===== */
.mobile-cta-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--navy); padding: 12px 20px; z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-cta-bar a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--olive); color: var(--white); padding: 14px;
    border-radius: var(--radius); font-weight: 700; font-size: 1rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 0.72rem; }
    .nav-links a.nav-cta { font-size: 0.72rem; padding: 8px 16px; }
}

@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .nav-links { display: none; }
    .logo-image { height: 60px !important; }
    .hero .container { flex-direction: column; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-image { flex: none; width: 100%; max-width: 520px; }
    .hero-image img { height: 360px; }
    .about .container { flex-direction: column; }
    .about-image { flex: none; width: 100%; }
    .about-image img { height: 340px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid .service-card:nth-child(5) {
        grid-column: 1 / span 2;
        justify-self: center;
        width: calc(50% - 14px);
    }
    .why-us .container { flex-direction: column; }
    .why-us-image { flex: none; width: 100%; }
    .why-us-image img { height: 360px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero { min-height: auto; padding: 80px 0 60px; }
    .hero-buttons { justify-content: center; }
    .about { padding: 70px 0; }
    .about-image-accent { display: none; }
    .services { padding: 70px 0; }
    .services-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .services-grid .service-card:nth-child(5) {
        grid-column: auto;
        justify-self: auto;
        width: auto;
    }
    .why-us { padding: 70px 0; }
    .process { padding: 70px 0; }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
    .testimonials { padding: 70px 0; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .contact { padding: 70px 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .mobile-cta-bar { display: block; }
    .footer { padding-bottom: 80px; }
    .about-values { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-image img { height: 260px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .process-steps { grid-template-columns: 1fr; }
}
