/* ============================================
   SOMOGYI TAMÁS - Modern Plumber Website
   Complete CSS Rewrite - 2026
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --accent-light: #e0f2fe;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-warm: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
    color: var(--primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

strong {
    color: var(--text);
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar a {
    color: var(--white);
    font-weight: 500;
}

.top-bar a:hover {
    opacity: 0.85;
}

.top-bar span {
    margin: 0 10px;
    opacity: 0.5;
}

.top-bar-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-top-bar {
    display: inline-block;
    padding: 8px 22px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-top-bar:hover {
    background: var(--white);
    color: var(--primary) !important;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.logo a {
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

/* Header Right Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    border: 2px solid var(--accent);
    white-space: nowrap;
}

.btn-phone svg {
    flex-shrink: 0;
}

.btn-phone:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hamburger Button (always visible) */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0;
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   NAVIGATION DRAWER
   ============================================ */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-drawer.open {
    right: 0;
}

.nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.nav-drawer-close:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

/* Nav Links in Drawer */
.nav-links {
    padding: 0 16px;
    margin-bottom: 8px;
}

.nav-links li a {
    display: block;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Services Section in Drawer */
.nav-services-section {
    padding: 0 16px;
    margin-top: 8px;
}

.nav-services-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-lighter);
    padding: 12px 16px 8px;
    margin: 0;
}

.nav-services-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-services-list li a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-services-list li a svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-services-list li a:hover svg {
    stroke: var(--accent-hover);
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Legacy .btn-cta for footer usage */
.btn-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 2px solid var(--accent);
}

.btn-cta:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(14, 165, 233, 0.75)), url('images/plumber_hero_modern.png');
    background-size: cover;
    background-position: center;
    min-height: 550px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg), transparent);
}

.hero-overlay {
    display: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    color: var(--white);
    font-size: 3.25rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--white) !important;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    border: 2px solid var(--accent);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white) !important;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Hero Badges */
.badge-container {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.circle-badge {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    border: 3px solid var(--accent);
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    line-height: 1.1;
    box-shadow: var(--shadow-lg);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.circle-badge:hover {
    transform: rotate(0deg) scale(1.05);
}

.circle-badge.accent {
    border-color: var(--primary);
}

.circle-badge span.big {
    font-size: 1.75rem;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.circle-badge span.small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    padding: 80px 0;
    background: var(--bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 10px;
}

.step-item {
    text-align: center;
    padding: 40px 30px;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Connector line between steps */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 62px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--border);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 80px 0;
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

/* Legacy emoji icon support */
.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* Sub-services */
.sub-services {
    margin-top: 48px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.sub-services h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.sub-services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sub-services-list a {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-alt);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.sub-services-list a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 80px 0;
    background: var(--bg);
}

.side-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

.main-text-part h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.main-text-part p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-list {
    margin-top: 24px;
}

.about-list li {
    padding: 10px 0;
    font-size: 1.05rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list li svg {
    flex-shrink: 0;
}

.image-stack img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: 80px 0;
    background: var(--bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* ============================================
   TERRITORY / SERVICE AREA SECTION
   ============================================ */
.territory-section {
    padding: 80px 0;
    background: var(--bg);
}

.territory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.territory-grid h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.territory-grid p {
    line-height: 1.8;
}

.territory-cta {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
}

.territory-cta p {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 2rem;
    position: relative;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.cta-section .btn-secondary {
    background: var(--white) !important;
    color: var(--primary) !important;
    border-color: var(--white);
    font-size: 1.1rem;
    padding: 16px 40px;
    position: relative;
}

.cta-section .btn-secondary:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   PAGE CONTENT (Subpages)
   ============================================ */
.page-content {
    padding: 60px 20px;
    min-height: 60vh;
}

.page-content h2:first-child {
    font-size: 2rem;
    margin-bottom: 8px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.page-content h3 {
    margin-top: 36px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--accent);
    font-size: 1.3rem;
}

.page-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.page-content p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 900px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 20px;
    padding-left: 0;
}

.page-content ul li {
    padding: 6px 0 6px 28px;
    position: relative;
    line-height: 1.7;
    color: var(--text-light);
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.page-content ul li a {
    color: var(--accent);
    font-weight: 500;
}

.page-content ul li a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.page-content ol {
    counter-reset: step;
}

.page-content ol li {
    padding: 8px 0 8px 40px;
    position: relative;
    line-height: 1.7;
    color: var(--text-light);
    counter-increment: step;
}

.page-content ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

.page-content .phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.top-link {
    margin-top: 20px;
}

.top-link a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.top-link a:hover {
    color: var(--accent-hover);
}

/* ============================================
   IMAGE LAYOUTS (Subpages)
   ============================================ */
.image-row {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.image-row .service-image {
    flex: 1;
    min-width: 200px;
}

.image-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-stack.large {
    margin-top: 20px;
}

.service-image {
    margin: 20px 0;
}

.service-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    transition: var(--transition);
}

.service-image img:hover {
    box-shadow: var(--shadow-lg);
}

.service-image p {
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-lighter);
}

/* ============================================
   PRICING TABLE
   ============================================ */
.pricing-section {
    padding: 0;
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 30px 0;
}

.pricing-table thead {
    background: var(--primary);
}

.pricing-table thead th {
    color: var(--white);
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table tbody tr {
    background: var(--white);
    transition: var(--transition);
}

.pricing-table tbody tr:nth-child(even) {
    background: var(--bg-alt);
}

.pricing-table tbody tr:hover {
    background: var(--accent-light);
}

.pricing-table td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-light);
}

.pricing-table td:last-child {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.pricing-note {
    background: var(--accent-light);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
    margin: 24px 0;
    font-size: 0.95rem;
}

.pricing-note p {
    margin: 0;
    color: var(--text);
}

/* ============================================
   RELATED SERVICES
   ============================================ */
.related-services {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.related-services h3 {
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.related-links a {
    display: inline-block;
    padding: 10px 22px;
    background: var(--bg-alt);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.related-links a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-container {
    text-align: center;
    padding: 100px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-container h1 {
    font-size: 6rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    font-weight: 800;
}

.error-container h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.error-container p {
    margin-bottom: 30px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .step-item:not(:last-child)::after {
        display: none;
    }

    .side-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .territory-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .top-bar {
        padding: 8px 0;
        font-size: 0.8rem;
    }

    .top-bar-text {
        font-size: 0.9rem;
    }

    /* Mobile phone button */
    .btn-phone .phone-text {
        display: none;
    }

    .btn-phone {
        padding: 10px;
        border-radius: var(--radius-sm);
    }

    /* Hero mobile */
    .hero {
        min-height: 450px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .badge-container {
        top: 15px;
        left: 15px;
        gap: 10px;
    }

    .circle-badge {
        width: 80px;
        height: 80px;
    }

    .circle-badge span.big {
        font-size: 1.4rem;
    }

    .circle-badge span.small {
        font-size: 0.55rem;
    }

    /* Steps mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-item {
        padding: 24px 20px;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Section spacing */
    .services,
    .how-it-works,
    .about-section,
    .testimonials,
    .territory-section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Page content mobile */
    .page-content {
        padding: 40px 16px;
    }

    .page-content h2:first-child {
        font-size: 1.6rem;
    }

    /* Image layouts mobile */
    .image-row {
        flex-direction: column;
    }

    /* Pricing mobile */
    .pricing-table {
        font-size: 0.85rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.7rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .badge-container {
        display: none;
    }

    .container {
        padding: 0 16px;
    }

    .sub-services-list {
        flex-direction: column;
        align-items: center;
    }

    .related-links {
        flex-direction: column;
        align-items: center;
    }
}
