/*
Theme Name: Renovation Basements
Theme URI: https://renovationbasements.ca
Description: Professional WordPress theme for Renovation Basements, a basement renovation company in Toronto/GTA
Version: 1.0.0
Author: Renovation Basements
Author URI: https://renovationbasements.ca
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renovation-basements
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

/* ========================================
   CSS RESET & NORMALIZATION
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: #333;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: #E65D00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: #cc4d00; }

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li { margin-bottom: 0.5rem; }

blockquote {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #E65D00;
    font-style: italic;
    color: #666;
}

code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f9f9f9;
    font-weight: 700;
}

/* LAYOUT & GRID */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    grid-template-areas: "content sidebar";
}

.main-content-full { display: block; }

main { grid-area: content; }

aside { grid-area: sidebar; }

/* TYPOGRAPHY */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #666; }
.text-small { font-size: 0.875rem; }
.text-large { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.line-height-tight { line-height: 1.2; }
.line-height-relaxed { line-height: 1.8; }

/* HEADER & NAVIGATION */

header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* ── HEADER INNER ROW ── */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1.5rem;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    line-height: 0;
}

.site-logo img,
.site-logo a img,
.custom-logo {
    height: 56px !important;
    width: auto !important;
    max-width: 180px;
    display: block;
}

/* Site-nav wrapper */
.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Nav list – targets both WordPress-generated ul and the fallback */
.site-nav ul,
.site-nav .menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav li { margin: 0 !important; }

.site-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: #222;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: #E65D00;
    background: rgba(230,93,0,0.08);
}

/* Header right: phone + hamburger */
.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.phone-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #E65D00;
    color: #fff !important;
    font-weight: 700;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
    text-decoration: none;
}

.phone-cta:hover { background: #cc4d00; color: #fff !important; }
.phone-icon { font-size: 0.95rem; }

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #E65D00;
    border-radius: 5px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: #E65D00;
}

/* Legacy classes kept for compatibility */
.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.site-title a {
    color: #333;
}

.site-title a:hover {
    color: #E65D00;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu a:hover,
.menu .current-menu-item > a {
    color: #E65D00;
    border-bottom-color: #E65D00;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
}

.cta-button {
    background-color: #E65D00;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    background-color: #cc4d00;
    color: #fff;
}

.cta-button a {
    color: #fff;
}

.cta-button a:hover {
    color: #fff;
}

/* BREADCRUMBS */

.breadcrumbs {
    margin: 1rem 0;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumbs a {
    color: #E65D00;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: #999;
}

/* BUTTONS & FORMS */

button, .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #E65D00;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    vertical-align: middle;
}

button:hover, .button:hover {
    background-color: #cc4d00;
    transform: translateY(-2px);
}

button:active, .button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.button-secondary {
    background-color: #666;
}

.button-secondary:hover {
    background-color: #555;
}

.button-outline {
    background-color: transparent;
    color: #E65D00;
    border: 2px solid #E65D00;
}

.button-outline:hover {
    background-color: #E65D00;
    color: #fff;
}

.button-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.button-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.button-block {
    display: block;
    width: 100%;
}

form { margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #E65D00;
    box-shadow: 0 0 0 3px rgba(230, 93, 0, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.form-error {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

input.has-error,
textarea.has-error,
select.has-error {
    border-color: #d32f2f;
}

.form-success {
    color: #388e3c;
    background-color: #f1f8e9;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* HERO SECTIONS */

.hero {
    background: linear-gradient(135deg, #E65D00 0%, #cc4d00 100%);
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero .cta-button {
    background-color: #fff;
    color: #E65D00;
    font-weight: 700;
}

.hero .cta-button:hover {
    background-color: #f0f0f0;
}

.hero-with-bg {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-with-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(230, 93, 0, 0.8);
}

.hero-with-bg .hero-content {
    position: relative;
    z-index: 2;
}

/* CARDS & BOXES */

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card-text {
    color: #666;
    margin-bottom: 1rem;
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* Service Cards */
.service-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #E65D00;
    box-shadow: 0 4px 16px rgba(230, 93, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: #333;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Location Cards */
.location-card {
    background: #fff;
    border-left: 4px solid #E65D00;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.location-card h3 {
    margin-top: 0;
    color: #E65D00;
}

.location-info {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

.location-info strong {
    color: #333;
}

/* SECTIONS */

section {
    padding: 3rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.section-light {
    background-color: #f9f9f9;
}

.section-dark {
    background-color: #333;
    color: #fff;
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
    color: #fff;
}

/* FAQ ACCORDION */

.faq-accordion {
    margin-bottom: 2rem;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question.active {
    background-color: #E65D00;
    color: #fff;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1rem 1.5rem;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 0;
}

/* CALCULATOR STYLES */

.calculator-section {
    background: linear-gradient(135deg, #E65D00 0%, #cc4d00 100%);
    color: #fff;
    padding: 3rem 1rem;
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card {
    background: #fff;
    color: #333;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.calculator-title {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calculator-form-group {
    margin-bottom: 1.5rem;
}

.calculator-form-group label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.price-display {
    background-color: #f0f0f0;
    border: 2px solid #E65D00;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #E65D00;
}

.calculator-output {
    display: none;
}

.calculator-output.active {
    display: block;
}

.calculator-submit-area {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.calculator-submit-area .button {
    width: 100%;
}

/* BLOG STYLES */

.post {
    margin-bottom: 2rem;
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    margin: 0 0 0.5rem;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
}

.post-meta a {
    color: #E65D00;
}

.post-thumbnail {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.post-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #E65D00;
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.nav-post {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.nav-post-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #E65D00;
    transition: color 0.3s ease;
}

.nav-post:hover .nav-post-title {
    color: #cc4d00;
}

.comments {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.comment {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.comment-text {
    color: #666;
}

/* FOOTER */

footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #E65D00;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #E65D00;
}

.footer-contact {
    color: #ccc;
    line-height: 1.8;
}

.footer-contact a {
    color: #E65D00;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #555;
    color: #999;
    font-size: 0.875rem;
}

/* UTILITY CLASSES */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-gap {
    display: flex;
    gap: 1rem;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
        border-bottom: 1px solid #f0f0f0;
    }

    nav.active {
        max-height: 300px;
    }

    .menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .menu a {
        display: block;
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .site-header {
        flex-wrap: wrap;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .col-6 { grid-column: span 1; }
    .col-4 { grid-column: span 1; }
    .col-3 { grid-column: span 1; }
    .col-2 { grid-column: span 1; }

    .main-content {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "sidebar";
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    section {
        padding: 2rem 1rem;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .hero::before {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }

    .menu { gap: 0; }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 1.5rem 1rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    button, .button {
        padding: 0.625rem 1.25rem;
    }
}

/* ACCESSIBILITY */

:focus-visible {
    outline: 2px solid #E65D00;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #E65D00;
    outline-offset: 2px;
}

/* PRINT STYLES */

@media print {
    header, footer, nav, .menu-toggle {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p {
        page-break-inside: avoid;
    }
}

/* ============================================================
   PROGRAMMATIC PAGE STYLES
   service.php / location.php / service-location.php
   ============================================================ */

/* ── Breadcrumbs ── */
.breadcrumbs {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #666;
}
.breadcrumbs .container {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}
.breadcrumbs a { color: #E65D00; }
.breadcrumbs span[aria-hidden] { margin: 0 0.4rem; color: #bbb; }

/* ── Section shared ── */
section { padding: 60px 0; }
.section-subtitle {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* ── Hero (service / location pages) ── */
.service-hero,
.location-hero,
.sl-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}
.service-hero h1,
.location-hero h1,
.sl-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}
.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 1.5rem;
}
.hero-pricing {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.price-highlight {
    background: #E65D00;
    color: #fff;
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}
.price-range { color: rgba(255,255,255,0.75); font-size: 0.95rem; align-self: center; }
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.hero-trust-signals {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
}
.hero-trust-signals span::before {
    content: '✓ ';
    color: #E65D00;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: #E65D00;
    color: #fff !important;
    border-color: #E65D00;
}
.btn-primary:hover { background: #cc4d00; border-color: #cc4d00; }
.btn-secondary {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-full { width: 100%; text-align: center; display: block; }

/* On white background, secondary button */
.service-cta .btn-secondary,
.location-cta .btn-secondary,
.sl-cta .btn-secondary {
    color: #E65D00 !important;
    border-color: #E65D00;
}
.service-cta .btn-secondary:hover,
.location-cta .btn-secondary:hover,
.sl-cta .btn-secondary:hover {
    background: rgba(230,93,0,0.08);
}

/* ── Definition Block (AI SEO) ── */
.definition-block { background: #fef7f2; padding: 40px 0; }
.definition-card {
    border-left: 4px solid #E65D00;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.definition-card h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.definition-text { font-size: 1.05rem; color: #333; margin: 0; }

/* ── Content wrapper ── */
.content-wrapper { max-width: 800px; }
.intro-text { font-size: 1.1rem; color: #444; margin-bottom: 1.5rem; }

/* ── Process steps ── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.process-step {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.step-number {
    width: 40px;
    height: 40px;
    background: #E65D00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p  { font-size: 0.9rem; color: #555; margin: 0; }

/* ── Benefits ── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.benefit-card {
    background: #fff;
    border-top: 3px solid #E65D00;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.benefit-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #E65D00; }
.benefit-card p  { font-size: 0.9rem; color: #555; margin: 0; }

/* Alternating section backgrounds */
.service-process,
.sl-process { background: #f8f9fa; }

/* ── Features list ── */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}
.features-list li {
    padding: 0.6rem 0.8rem 0.6rem 2.2rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    position: relative;
    font-size: 0.95rem;
    color: #444;
    margin: 0;
}
.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0.8rem;
    color: #E65D00;
    font-weight: 700;
}

/* ── FAQ ── */
.faq-list { margin-top: 1.5rem; }
.faq-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question h3 {
    font-size: 1rem;
    margin: 0;
    color: #222;
    font-weight: 600;
}
.faq-question::after {
    content: '+';
    color: #E65D00;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
    content: '−';
}
.faq-answer {
    padding: 0 1.5rem 1.2rem;
    border-top: 1px solid #f0f0f0;
}
.faq-answer p { color: #555; font-size: 0.95rem; margin: 1rem 0 0; }

/* ── Service grid (areas, related) ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.service-card {
    display: block;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.service-card:hover {
    border-color: #E65D00;
    box-shadow: 0 4px 16px rgba(230,93,0,0.12);
    transform: translateY(-2px);
}
.service-card h3,
.service-card h4 {
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.4rem;
}
.service-card p { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
.price-badge {
    display: inline-block;
    background: #fef7f2;
    color: #E65D00;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(230,93,0,0.2);
}

/* ── Location grid ── */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.location-card {
    display: block;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.location-card:hover {
    border-color: #E65D00;
    box-shadow: 0 3px 12px rgba(230,93,0,0.1);
}
.location-card h3 { font-size: 0.9rem; margin-bottom: 0.3rem; color: #222; }
.region-badge,
.postal-codes {
    font-size: 0.78rem;
    color: #888;
}

/* ── Location quick-facts / stats ── */
.location-stats,
.location-quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.stat-item,
.fact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.stat-label,
.fact-label {
    display: block;
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}
.stat-value,
.fact-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #E65D00;
}

/* ── Detail / challenge cards ── */
.details-grid,
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.detail-card,
.challenge-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.detail-card h3,
.challenge-card h3 { font-size: 1rem; color: #222; margin-bottom: 0.75rem; }
.detail-card ul,
.challenge-card ul { padding-left: 1.2rem; margin: 0; }
.detail-card li,
.challenge-card li { font-size: 0.9rem; color: #555; margin-bottom: 0.35rem; }

/* ── Region group (service areas section) ── */
.region-group { margin-bottom: 2rem; }
.region-group h3 {
    font-size: 1rem;
    color: #E65D00;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0f0f0;
}
.location-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.location-links li { margin: 0; }
.location-links a {
    display: block;
    padding: 0.4rem 0.6rem;
    font-size: 0.88rem;
    color: #444;
    border-radius: 4px;
    transition: all 0.15s;
}
.location-links a:hover { color: #E65D00; background: rgba(230,93,0,0.06); }

/* ── Map wrapper ── */
.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}
.map-address {
    font-style: normal;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}
.map-address a { color: #E65D00; }

/* ── CTA sections ── */
.service-cta,
.location-cta,
.sl-cta,
.services-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.service-cta h2,
.location-cta h2,
.sl-cta h2,
.services-cta h2 { color: #fff; margin-bottom: 0.75rem; }
.service-cta p,
.location-cta p,
.sl-cta p,
.services-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.cta-address {
    font-style: normal;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin-top: 1rem;
}

/* ── Blog cards ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.post-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.post-thumbnail img { width: 100%; height: 200px; object-fit: cover; }
.post-card-content { padding: 1.25rem; }
.post-date { font-size: 0.8rem; color: #999; display: block; margin-bottom: 0.5rem; }
.post-card h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.post-card h2 a { color: #222; }
.post-card h2 a:hover { color: #E65D00; }
.post-card p { font-size: 0.9rem; color: #666; margin-bottom: 0.75rem; }
.read-more { color: #E65D00; font-weight: 600; font-size: 0.9rem; }

/* ── 404 page ── */
.error-404-page .container { max-width: 700px; text-align: center; padding: 80px 1rem; }
.error-content h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.error-suggestions, .error-contact { text-align: left; margin: 2rem 0; }
.error-suggestions ul { columns: 2; }

/* ── Scroll animations ── */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.4s; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ── Back to top ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: #E65D00;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(230,93,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 9999;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: #cc4d00; }

/* ── Mobile overrides for programmatic pages ── */
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; gap: 0.5rem; }
    .site-nav { order: 3; width: 100%; max-height: 0; overflow: hidden; transition: max-height 0.3s; }
    .site-nav.is-open { max-height: 400px; }
    .site-nav ul, .site-nav .menu { flex-direction: column; }
    .site-nav a { border-bottom: 1px solid #f0f0f0; padding: 0.75rem 1rem; }
    .menu-toggle { display: flex !important; }
    .phone-cta .phone-number { display: none; }
    .phone-cta .phone-icon { font-size: 1.2rem; }
    .phone-cta { padding: 0.55rem 0.75rem; }

    .service-hero h1, .location-hero h1, .sl-hero h1 { font-size: 1.7rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-trust-signals { font-size: 0.78rem; gap: 0.75rem; }
    .process-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .details-grid, .challenges-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .cta-buttons { flex-direction: column; align-items: center; }
    section { padding: 40px 0; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-posts-grid { grid-template-columns: 1fr; }
}

/* ============================================
   BLOG PAGE (home.php)
   ============================================ */

.blog-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 0 50px;
    color: #fff;
}

.blog-hero .breadcrumbs { margin-bottom: 1rem; }
.blog-hero .breadcrumbs ol { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.blog-hero .breadcrumbs li { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.blog-hero .breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 0.5rem; }
.blog-hero .breadcrumbs a { color: rgba(255,255,255,0.8); text-decoration: none; }
.blog-hero .breadcrumbs a:hover { color: #E65D00; }

.blog-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.blog-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0;
}

/* Blog Layout: 2/3 posts + 1/3 sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 3rem 0;
    align-items: start;
}

/* Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder svg {
    width: 80px;
    height: 60px;
}

.blog-card-content {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.blog-card-cat {
    background: rgba(230,93,0,0.1);
    color: #E65D00;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.35;
}

.blog-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover { color: #E65D00; }

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.blog-read-more {
    color: #E65D00;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s;
    margin-top: auto;
}

.blog-read-more:hover { gap: 0.5rem; }

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.no-posts h2 { margin-bottom: 0.75rem; }
.no-posts p { color: #555; margin-bottom: 1.5rem; }

/* Blog Pagination */
.blog-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.blog-pagination .page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.blog-pagination .page-numbers li a:hover { border-color: #E65D00; color: #E65D00; }
.blog-pagination .page-numbers li .current { background: #E65D00; border-color: #E65D00; color: #fff; }

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #E65D00;
}

.sidebar-widget p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.sidebar-topics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-topics li a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.sidebar-topics li:last-child a { border-bottom: none; }
.sidebar-topics li a::before { content: '→'; color: #E65D00; font-size: 0.8rem; }
.sidebar-topics li a:hover { color: #E65D00; }

.sidebar-cta {
    background: linear-gradient(135deg, #E65D00, #cc5200);
    color: #fff;
}

.sidebar-cta .widget-title,
.sidebar-cta h3 {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.sidebar-cta p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; }

.btn-block { display: block; text-align: center; width: 100%; }

/* Single Blog Post */
.single-post-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header .breadcrumbs { margin-bottom: 1rem; }

.post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
    color: #1a1a2e;
}

.post-meta-bar {
    display: flex;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: #888;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
}

.post-meta-bar time { font-weight: 600; }
.post-category-tag {
    background: rgba(230,93,0,0.1);
    color: #E65D00;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.post-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 16/7;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.post-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: #1a1a2e; }
.post-body h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: #1a1a2e; }
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body strong { color: #1a1a2e; }
.post-body a { color: #E65D00; }
.post-body a:hover { text-decoration: underline; }
.post-body blockquote {
    border-left: 4px solid #E65D00;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(230,93,0,0.05);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-body table th {
    background: #1a1a2e;
    color: #fff;
    padding: 0.6rem 1rem;
    text-align: left;
}

.post-body table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.post-body table tr:nth-child(even) td { background: #f9f9f9; }

/* Post CTA box */
.post-cta-box {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    text-align: center;
}

.post-cta-box h3 { color: #fff; margin: 0 0 0.75rem; }
.post-cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; }
.post-cta-box .btn { margin: 0 0.4rem; }

