/* === Kontrola dřevostaveb — Main Stylesheet === */

/* --- Custom Properties --- */
:root {
    --color-primary: #302A20;
    --color-accent: #13A538;
    --color-accent-hover: #0e8a2d;
    --color-secondary: #FFBC7D;
    --color-text: #302A20;
    --color-text-light: #6B6B6B;
    --color-bg: #ffffff;
    --color-bg-alt: #FDF7F0;
    --color-bg-warm: #F8F2EB;
    --color-bg-dark: #302A20;
    --color-border: #DFDADA;
    --color-button: #13A538;
    --color-success: #13A538;
    --color-error: #dc2626;

    --font-family: 'Archivo', Arial, Helvetica, sans-serif;
    --font-heading: 'Alfa Slab One', Georgia, serif;
    --font-secondary: 'Roboto Slab', Georgia, serif;
    --max-width: 1140px;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 400;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; font-family: var(--font-family); font-weight: 600; }

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    font-size: 14px;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-warm {
    background: var(--color-bg-warm);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-secondary);
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Admin bar --- */
.admin-bar {
    background: var(--color-accent);
    color: #fff;
    padding: 4px 24px;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-bar a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--color-accent);
}

.site-logo img {
    height: 45px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

.nav-cta {
    margin-left: 8px;
}

.nav-cta .btn {
    white-space: nowrap;
    color: #fff;
}

.nav-cta .btn:hover {
    color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    margin: 0 24px;
    border-radius: 20px;
    background-size: cover;
    background-position: center right;
    min-height: 600px;
    display: flex;
    align-items: stretch;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 25, 18, 0.88) 0%, rgba(30, 25, 18, 0.7) 45%, rgba(30, 25, 18, 0.1) 75%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: left;
}

.hero .hero-label {
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.15;
}

.hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 520px;
    font-family: var(--font-secondary);
    line-height: 1.7;
}

.hero h1,
.hero .hero-label {
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Subpage hero (with background image, half height) */
.hero-sub {
    min-height: 300px;
}

.hero-sub .hero-content {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* Subpage hero (no background image — fallback) */
.hero-simple {
    color: var(--color-text);
    background: var(--color-bg-alt);
    min-height: auto;
    margin: 0;
    border-radius: 0;
}

.hero-simple h1 {
    color: var(--color-accent);
}

.hero-simple .hero-subtitle {
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .hero {
        margin: 0 12px;
        min-height: 500px;
        background-position: 70% center;
    }

    .hero-sub {
        min-height: 220px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(30, 25, 18, 0.85) 0%, rgba(30, 25, 18, 0.6) 60%, rgba(30, 25, 18, 0.3) 100%);
    }

    .hero-content {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    line-height: 1.4;
    font-family: var(--font-family);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--color-button);
    color: #fff;
    border-color: var(--color-button);
}

.btn-primary:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-button);
    border-color: var(--color-button);
}

.btn-outline:hover {
    background: var(--color-button);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

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

/* --- Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}

.step {
    position: relative;
    text-align: center;
    counter-increment: step;
    padding: 32px 24px;
    background: var(--color-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(19, 165, 56, 0.3);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* --- Service cards --- */
.service-card {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
    margin-bottom: 32px;
}

.service-card-featured .service-card-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 400px;
}

.service-card-featured .service-card-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.service-card-featured .service-card-body {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-featured .service-card-body h3 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.service-card-featured .service-card-body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.service-card.has-video {
    cursor: pointer;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.service-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-thumb img {
    transform: scale(1.05);
}

.service-play {
    appearance: none;
    border: none;
    font: inherit;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s;
}

.service-card:hover .service-play {
    opacity: 1;
    background: var(--color-accent);
}

.service-play svg {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.service-card-body {
    padding: 20px 24px;
    flex: 1;
}

.service-card-body h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--color-text);
}

.service-card-body p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* --- Video modal --- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.video-modal-content {
    position: relative;
    max-width: 400px;
    max-height: 90vh;
    width: 100%;
}

.video-modal-content video {
    width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

/* --- Info section --- */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.info-text h2 {
    margin-bottom: 20px;
}

.info-text p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* --- Errors list --- */
.errors-list {
    list-style: none;
    padding: 0;
}

.errors-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--color-text);
}

.errors-list li::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #D32F2F;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* --- Team section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 540px));
    justify-content: center;
    gap: 40px;
}

.team-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e5e5e5;
    padding: 32px;
    transition: box-shadow 0.3s ease;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-card .team-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.team-card blockquote {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    font-family: var(--font-secondary);
    font-style: italic;
    padding-left: 0;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 64px 0;
    background: var(--color-button);
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    font-size: 1.125rem;
    font-family: var(--font-secondary);
}

.cta-section .btn-outline {
    color: #fff;
    border-color: #fff;
}

.cta-section .btn-outline:hover {
    background: #fff;
    color: var(--color-button);
}

/* --- Pricing cards --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e5e5;
}

.pricing-card.featured {
    border-color: var(--color-accent);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-family);
    margin-bottom: 4px;
}

.pricing-card .price-note {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.pricing-card .pricing-features {
    text-align: left;
    margin-bottom: 28px;
}

.pricing-card .pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card .pricing-features li::before {
    content: '\2713';
    color: var(--color-accent);
    font-weight: 700;
}

/* --- Checklist --- */
.checklist-group {
    margin-bottom: 32px;
}

.checklist-group h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

.checklist-group ul {
    list-style: none;
    padding: 0;
}

.checklist-group li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.checklist-group li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(19, 165, 56, 0.15);
}

.form-control[aria-invalid="true"] {
    border-color: var(--color-error);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%237A7A7A' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 4px;
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.form-message.success {
    color: var(--color-success);
    background: rgba(19, 165, 56, 0.08);
}

.form-message.error {
    color: var(--color-error);
    background: rgba(220, 38, 38, 0.08);
}

/* Honeypot */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --- Contact info --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-item:hover .contact-info-icon {
    background: var(--color-accent);
    color: #fff;
}

.contact-info-text h4 {
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* --- Map --- */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
}

.site-footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.site-footer p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.site-footer ul li {
    margin-bottom: 8px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-credit a:hover {
    color: #fff;
}

/* === Micro-interactions === */

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.35s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Focus visible ring */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Admin inline edit === */
.admin-bar ~ .site-header {
    border-top: none;
}

[data-edit] {
    transition: outline 0.2s ease;
}

[data-edit]:hover {
    outline: 1px dashed var(--color-accent);
    outline-offset: 4px;
}

[data-edit]:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.admin-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 2px solid var(--color-accent);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes flashSave {
    0%, 100% { background: transparent; }
    50% { background: rgba(19, 165, 56, 0.1); }
}

.flash-save {
    animation: flashSave 0.6s ease;
}

/* --- Info photo in text sections --- */
.info-photo {
    margin-top: 24px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

/* --- Video slider --- */
.video-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    overflow: hidden;
}

.video-slider-track {
    display: flex;
    gap: 16px;
    will-change: transform;
    padding: 8px 0;
}

.video-slider-item {
    flex: 0 0 180px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-slider-item img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: opacity 0.2s;
}

.video-slider-item:hover img {
    opacity: 0.8;
}

.video-slider-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.video-slider-item:hover .video-slider-play {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.video-slider-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 10px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
}

.video-slider-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: var(--color-text);
}

.video-slider-arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

@media (max-width: 768px) {
    .video-slider-arrow { display: none; }
    .video-slider { padding: 0 16px; }
    .video-slider-item { flex: 0 0 150px; }
    .video-slider-item img { height: 266px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.admin-toolbar-count {
    font-weight: 600;
    color: var(--color-accent);
}

/* === Responsive === */

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .section { padding: 64px 0; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .info-section { gap: 32px; }
    .pricing-grid { gap: 24px; }
}

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

    .section { padding: 48px 0; }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 16px 0;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0 24px;
    }

    .main-nav a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .hero { padding: 56px 0 48px; }
    .hero h1 { font-size: 2.25rem; }
    .hero .hero-subtitle { font-size: 1.125rem; }
    .hero-buttons { flex-direction: column; align-items: center; }

    /* Grids */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .info-section { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }

    /* Featured service card */
    .service-card-featured {
        grid-template-columns: 1fr;
    }
    .service-card-featured .service-card-thumb {
        min-height: 280px;
    }
    .service-card-featured .service-card-body {
        padding: 24px;
    }
    .service-card-featured .service-card-body h3 {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Map */
    .map-container { height: 300px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.75rem; }
    .btn-lg { padding: 14px 28px; font-size: 1rem; }
}
