/* --- CSS VARIABLES (The Organic Palette) --- */
:root {
    --bg-cream: #FDFBF7;
    --text-dark: #2C3E50;
    --primary-green: #1A3C34;
    --accent-orange: #BA4F2A; /* Darkened for AA contrast */
    --accent-orange-hover: #943E20;
    --border-color: #E6E2D8;
}

/* --- RESET & BASE STYLES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Accessibility: visible focus states for keyboard users */
:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: var(--primary-green);
    line-height: 1.25;
    margin-bottom: 1rem;
}

p { margin-bottom: 1.5rem; font-weight: 400; }

a { text-decoration: none; color: inherit; transition: color 0.3s; }

img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease;
}
.btn:hover { background-color: var(--accent-orange-hover); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}
.btn-outline:hover {
    background: var(--primary-green);
    color: #fff;
    text-decoration: none;
}

/* --- HEADER & NAV --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; 
    width: auto;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a { font-size: 0.95rem; font-weight: 500; color: var(--primary-green); }
nav a:hover { color: var(--accent-orange); }

.mobile-menu-btn { display: none; }


/* --- HERO SECTION (Index) --- */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.hero .subhead {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: #4a5d6b;
}

.tagline-strip {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- PROBLEM SECTION --- */
.problem { padding: 80px 0; background-color: #f6f3ed; }
.problem-content { max-width: 700px; margin: 0 auto; text-align: center; }
.problem h2 { font-size: 2.5rem; }

/* --- SPECIALTIES / ENTITY SECTION --- */
.specialties { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
.specialties-header { text-align: center; margin-bottom: 50px; }
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.specialty-item {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
}
.specialty-item h3 { margin-bottom: 5px; color: var(--accent-orange); font-size: 1.1rem; }
.specialty-item p { font-size: 0.9rem; margin-bottom: 0px; color: #666; }


/* --- ABOUT (CHAD) SECTION (Home) --- */
.about { padding: 100px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.chad-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 10px 10px 0px var(--primary-green);
}

/* --- SERVICES SECTION --- */
.services { padding: 80px 0; border-top: 1px solid var(--border-color); }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header h2 { font-size: 2.5rem; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--primary-green); }
.service-card h3 { color: var(--accent-orange); font-size: 1.4rem; }

/* --- PROCESS SECTION --- */
.process { padding: 80px 0; background-color: #fff; }
.process-header { text-align: center; margin-bottom: 60px; }
.process-header h2 { font-size: 2.5rem; }
.process-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    counter-reset: process-counter; /* Initialize counter */
}
.process-step { 
    text-align: left; 
    padding: 20px; 
    position: relative;
}
.step-number {
    font-family: 'Merriweather', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-orange);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 0px;
    display: block;
}
.process-step h3 { font-size: 1.4rem; margin-bottom: 15px; margin-top: -20px; position: relative; z-index: 1; }
.process-step p { position: relative; z-index: 1; }

/* --- RESULTS/CHARTS --- */
.results { padding: 80px 0; background-color: var(--primary-green); color: #fff; }
.results h2 { color: #fff; text-align: center; margin-bottom: 40px; }
.results p { color: #e0e0e0; text-align: center; max-width: 600px; margin: 0 auto 50px auto; }

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.chart-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}
.chart-box p { color: var(--text-dark); margin-top: 10px; font-weight: 600; font-size: 0.9rem; margin-bottom: 0;}

/* --- PRICING --- */
.pricing { padding: 100px 0; text-align: center; }
.pricing-box {
    background: #fff;
    border: 2px solid var(--primary-green);
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 12px;
    position: relative;
}
.pricing-box::after {
    content: "NO CONTRACTS";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
}
.price-tag { font-size: 3rem; font-weight: 700; color: var(--primary-green); font-family: 'Merriweather', serif; line-height: 1; margin-bottom: 30px; }
.price-sub { font-size: 1.1rem; color: #666; margin-bottom: 10px; }

/* --- FAQ SECTION --- */
.faq { padding: 80px 0; background-color: #f6f3ed; }
.faq h2 { text-align: center; margin-bottom: 50px; }
.faq-item { margin-bottom: 20px; background: #fff; border-radius: 8px; padding: 25px; border: 1px solid var(--border-color); }
.faq-item h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--primary-green); font-weight: 700; }
.faq-item p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-dark); }

/* --- SEO INSIGHTS SECTION --- */
.seo-insights { 
    padding: 80px 0; 
    background-color: #fff; 
    border-top: 1px solid var(--border-color);
}

.insights-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.insights-header h2 { 
    font-size: 2.5rem; 
}

.insights-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

.insight-block {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-cream);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.insight-block:last-child {
    margin-bottom: 0;
}

.insight-block h3 {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.insight-block.highlight-block {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.insight-block.highlight-block h3,
.insight-block.highlight-block p,
.insight-block.highlight-block strong {
    color: #fff;
}

.insight-block.highlight-block h3 {
    color: #FFCDA0;
}

/* E-E-A-T Grid */
.eeat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.eeat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 6px;
}

.eeat-item h4 {
    color: #FFCDA0;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.eeat-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Tactics List */
.tactics-list {
    margin-top: 25px;
}

.tactic-item {
    padding: 15px 20px;
    background: #fff;
    border-left: 4px solid var(--accent-orange);
    margin-bottom: 12px;
    border-radius: 0 6px 6px 0;
}

.tactic-item:last-child {
    margin-bottom: 0;
}

.tactic-item strong {
    color: var(--primary-green);
}

/* PR Grid */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.pr-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.pr-item h4 {
    color: var(--accent-orange);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.pr-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Keywords Table */
.keywords-table-wrapper {
    overflow-x: auto;
    margin-top: 25px;
}

.keywords-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.keywords-table th,
.keywords-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.keywords-table th {
    background: var(--primary-green);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.keywords-table td {
    font-size: 0.95rem;
}

.keywords-table tr:last-child td {
    border-bottom: none;
}

.keywords-table tr:hover td {
    background: rgba(26, 60, 52, 0.05);
}

.keywords-table td strong {
    color: var(--primary-green);
}

/* Insight Links */
.insight-link {
    color: var(--accent-orange);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

.insight-link:hover {
    color: var(--accent-orange-hover);
}

.highlight-block .insight-link {
    color: #FFCDA0;
}

.highlight-block .insight-link:hover {
    color: #fff;
}

/* --- CONTACT FORM --- */
.contact { padding: 100px 0; background-color: #f6f3ed; }
.contact-form { max-width: 600px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 8px; border: 1px solid var(--border-color); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-green); font-size: 0.95rem; }
.form-input, .form-textarea, .form-select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    font-family: 'Inter', sans-serif; 
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #fff;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent-orange); outline: none; }
.form-textarea { resize: vertical; min-height: 150px; }
.submit-btn { width: 100%; cursor: pointer; border: none; }


/* --- ABOUT SPECIFIC (About Page) --- */
.bio-hero {
    padding: 80px 0 40px 0;
    border-bottom: 1px solid var(--border-color);
}
.bio-hero h1 { font-size: 3rem; }
.bio-hero .subtitle { font-size: 1.2rem; color: #666; max-width: 600px; }

.story-section { padding: 60px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

/* Ensure the button in story section has space */
.story-text .btn-outline {
    margin-top: 15px; 
}

.stack-section { padding: 60px 0; background: #fff; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 30px; }
.stack-item { background: var(--bg-cream); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); }
.stack-item h4 { font-size: 1rem; color: var(--accent-orange); margin-bottom: 5px; }
.stack-item p { font-size: 0.9rem; margin-bottom: 0; }

/* --- BIO CTA (About Page) --- */
.bio-cta {
    padding: 60px 0;
    text-align: center;
    background-color: #f6f3ed;
}
.bio-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.bio-cta p {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* --- UTILITIES & INLINE REPLACEMENTS --- */
.nav-highlight {
    color: var(--accent-orange);
    font-weight: bold;
}
.nav-highlight:hover {
    color: var(--accent-orange-hover);
}

.text-highlight {
    color: var(--accent-orange);
    font-weight: 600;
}

.about-actions {
    margin-top: 2rem;
}

.price-tag span {
    font-size: 1rem;
    font-weight: 400;
}

.contact .services-header {
    margin-bottom: 40px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-green);
    color: #fff;
    padding: 80px 0 40px 0;
    text-align: center;
}

footer h3 {
    color: #fff;
    margin-bottom: 1rem;
}

footer p {
    color: #d0d0d0;
}

footer a { 
    color: #fff;
    font-weight: 500;
}
footer a:hover { color: #FFCDA0; }

.tp-logo {
    height: 30px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.pricing-tp {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.pricing-tp .tp-logo {
    height: 35px;
}

.copy {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #8da3b3;
    line-height: 1.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Header/Nav */
    .nav-flex { flex-direction: column; gap: 15px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }

    /* Index sections */
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .chad-photo img { max-width: 400px; margin: 0 auto; display: block; }
    .charts-grid { grid-template-columns: 1fr; }
    
    /* About page sections */
    .story-grid { grid-template-columns: 1fr; }
}
