/**
 * TziPress Blocks — Frontend Styles
 * Ported 1:1 from roofers-3.html
 */

/* ═══════════════════════════════════════
   CUSTOM PROPERTIES
   ═══════════════════════════════════════ */
:root {
    --cream: #F7F4EF;
    --warm-white: #FDFBF8;
    --charcoal: #1C1C1C;
    --rust: #36A4E3;
    --rust-light: #FF6A2A;
    --stone: #8A8278;
    --light-stone: #C8C3BB;
    --mid: #E8E3DC;
    --serif: 'Poppins', sans-serif;
    --sans: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════
   SHARED / UTILITY
   ═══════════════════════════════════════ */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rust);
    font-weight: 600;
    margin-bottom: 16px;
}
.section-tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rust);
}
h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 3.8vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--charcoal);
}
.btn-primary {
    background: var(--rust);
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}
.btn-primary:hover {
    background: var(--rust-light);
    transform: translateY(-2px);
}
.btn-outline-dark {
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1.5px solid var(--mid);
    padding-bottom: 3px;
    transition: color 0.3s, border-color 0.3s;
}
.btn-outline-dark:hover {
    color: var(--rust);
    border-color: var(--rust);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s, transform 0.7s;
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s, transform 0.7s;
}
.reveal-right.visible { opacity: 1; transform: none; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════
   BLOCK WRAPPER RESET — remove WP default spacing
   ═══════════════════════════════════════ */
.wp-block-tzipress-topbar,
.wp-block-tzipress-nav,
.wp-block-tzipress-hero,
.wp-block-tzipress-facts,
.wp-block-tzipress-features,
.wp-block-tzipress-services,
.wp-block-tzipress-gallery,
.wp-block-tzipress-process,
.wp-block-tzipress-testimonials,
.wp-block-tzipress-about,
.wp-block-tzipress-team,
.wp-block-tzipress-estimate,
.wp-block-tzipress-footer,
.wp-block-tzipress-modal {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: none !important;
}

/* ═══════════════════════════════════════
   01. TOP BAR
   ═══════════════════════════════════════ */
.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--mid);
    padding: 14px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}
.top-bar a {
    color: var(--charcoal);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}
.top-bar a:hover { color: var(--rust); }
.top-bar a .icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rust);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.top-bar svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}
.top-bar .contact-label {
    font-size: 11px;
    color: var(--stone);
    font-weight: 400;
    display: block;
    line-height: 1;
}
.top-bar .contact-value {
    font-size: 16px;
    font-weight: 700;
    display: block;
    line-height: 1.4;
    color: var(--charcoal);
}
.top-bar a:hover .contact-value { color: var(--rust); }
.top-bar-divider {
    width: 1px;
    height: 36px;
    background: var(--mid);
}

/* ═══════════════════════════════════════
   02. NAVIGATION
   ═══════════════════════════════════════ */
.tzi-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 60px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.07);
    transition: box-shadow 0.3s;
}
.tzi-nav.elevated { box-shadow: 0 4px 24px rgba(0,0,0,0.09); }
.nav-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--charcoal);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo span { color: var(--rust); }
.nav-logo img {
    height: var(--logo-height, 32px);
    width: var(--logo-width, auto);
    display: block;
}
.nav-logo.has-image {
    font-size: 0; /* Hide text when image is present */
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--rust); }
.nav-cta {
    background: var(--rust);
    color: #fff;
    padding: 11px 26px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}
.nav-cta:hover { background: var(--rust-light); }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    position: relative;
    z-index: 102;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 101;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    padding: 80px 40px 40px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.mobile-nav-close:hover { background: var(--mid); }
.mobile-nav-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--charcoal);
    fill: none;
    stroke-width: 2;
}
.mobile-nav a.mobile-nav-link {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--charcoal);
    text-decoration: none;
    padding: 16px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--mid);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s, color 0.2s;
}
.mobile-nav.open a.mobile-nav-link { opacity: 1; transform: translateX(0); }
.mobile-nav.open a.mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a.mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open a.mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a.mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open a.mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav a.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav a.mobile-nav-link:hover { color: var(--rust); }
.mobile-cta {
    margin-top: 32px;
    width: 100%;
    background: var(--rust);
    color: #fff;
    padding: 16px;
    border-radius: 4px;
    text-align: center;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s 0.3s, transform 0.3s 0.3s, background 0.2s;
}
.mobile-nav.open .mobile-cta { opacity: 1; transform: translateX(0); }
.mobile-cta:hover { background: var(--rust-light); }
.mobile-nav-contact {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s 0.35s;
}
.mobile-nav.open .mobile-nav-contact { opacity: 1; }
.mobile-nav-contact a {
    font-size: 14px !important;
    font-family: var(--sans) !important;
    font-weight: 500 !important;
    color: var(--stone) !important;
    border: none !important;
    padding: 0 !important;
    text-align: center !important;
    transform: none !important;
    opacity: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.mobile-nav-contact a svg {
    width: 14px;
    height: 14px;
    stroke: var(--rust);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   03. HERO
   ═══════════════════════════════════════ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 86vh;
}
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 80px 60px;
    background: #fff;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rust);
    font-weight: 600;
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s 0.2s forwards;
}
.hero-tag::before {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: var(--rust);
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(40px, 4.8vw, 72px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--charcoal);
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.85s 0.38s forwards;
}
.hero h1 span { color: var(--rust); }
.hero-sub {
    margin-top: 22px;
    max-width: 460px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--stone);
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.75s 0.58s forwards;
}
.hero-actions {
    margin-top: 38px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.75s 0.76s forwards;
}
.hero-trust {
    margin-top: 52px;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.95s forwards;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--stone);
}
.trust-item svg {
    width: 15px;
    height: 15px;
    stroke: var(--rust);
    fill: none;
    stroke-width: 2.2;
    flex-shrink: 0;
}
.hero-right {
    position: relative;
    overflow: hidden;
}
.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 7s ease-out;
}
.hero-right img.loaded { transform: scale(1); }
.hero-badge {
    position: absolute;
    bottom: 36px;
    left: 36px;
    background: #fff;
    border-radius: 8px;
    padding: 18px 22px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: fadeUp 0.7s 1.1s forwards;
}
.badge-num {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 800;
    color: var(--rust);
    line-height: 1;
}
.badge-label {
    font-size: 12px;
    color: var(--stone);
    line-height: 1.4;
    max-width: 90px;
}

/* ═══════════════════════════════════════
   04. FACTS COUNTER
   ═══════════════════════════════════════ */
.facts {
    background: #fff;
    border-top: 1px solid var(--mid);
    border-bottom: 1px solid var(--mid);
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.fact {
    padding: 30px 40px;
    border-right: 1px solid var(--mid);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s, transform 0.6s;
}
.fact:last-child { border-right: none; }
.fact.visible { opacity: 1; transform: none; }
.fact-number {
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--rust);
    letter-spacing: -1.5px;
}
.fact-label {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 400;
}

/* ═══════════════════════════════════════
   05. FEATURES
   ═══════════════════════════════════════ */
section.features, .features {
    background: var(--cream);
    padding: 100px 60px;
}
.features-grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.feature-card {
    background: #fff;
    padding: 44px 38px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s, transform 0.6s;
}
.feature-card.visible { opacity: 1; transform: none; }
.feature-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    background: var(--cream);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--rust);
    fill: none;
    stroke-width: 1.8;
}
.feature-card h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
    line-height: 1.3;
}
.feature-card p {
    font-size: 14px;
    line-height: 1.72;
    color: var(--stone);
}

/* ═══════════════════════════════════════
   06. SERVICES
   ═══════════════════════════════════════ */
section.services, .services {
    background: #fff;
    padding: 100px 60px;
}
.services-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.services-left p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.78;
    color: var(--stone);
    max-width: 400px;
}
.services-left .btn-primary { margin-top: 36px; }
.services-img {
    margin-top: 40px;
    height: 340px;
    overflow: hidden;
    border-radius: 6px;
}
.services-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s;
}
.services-img:hover img { transform: scale(1.04); }
.service-list {
    display: flex;
    flex-direction: column;
}
.service-item {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 26px 0;
    border-bottom: 1px solid var(--mid);
    cursor: pointer;
    transition: padding-left 0.3s;
}
.service-item:first-child { border-top: 1px solid var(--mid); }
.service-item:hover { padding-left: 6px; }
.service-num {
    font-family: var(--serif);
    font-size: 11px;
    color: var(--rust);
    font-weight: 700;
    letter-spacing: 0.06em;
    padding-top: 4px;
    flex-shrink: 0;
    display: block;
    min-width: 24px;
}
.service-info {
    flex: 1;
    min-width: 0;
}
.service-info h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 0 0 5px 0;
}
.service-info p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--stone);
}

/* ═══════════════════════════════════════
   07. GALLERY
   ═══════════════════════════════════════ */
section.gallery, .gallery {
    background: var(--cream);
    padding: 100px 60px;
}
.gallery-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 270px 270px;
    gap: 5px;
}
.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.6s;
}
.gallery-item.visible { opacity: 1; }
.gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 3; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}
.gallery-item:hover::after { background: rgba(255,79,0,0.1); }

/* ═══════════════════════════════════════
   07b. LIGHTBOX
   ═══════════════════════════════════════ */
.tzi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.tzi-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.tzi-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}
.tzi-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}
.tzi-lightbox-close:hover { opacity: 1; transform: scale(1.1); }
.tzi-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    padding: 0;
}
.tzi-lightbox-arrow:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.tzi-lightbox-prev { left: 20px; }
.tzi-lightbox-next { right: 20px; }
.tzi-lightbox-img-wrap {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tzi-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
}
.tzi-lightbox.open .tzi-lightbox-img {
    opacity: 1;
    transform: scale(1);
}
.tzi-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-family: var(--sans);
    letter-spacing: 0.05em;
}
@media (max-width: 680px) {
    .tzi-lightbox-arrow { width: 40px; height: 40px; }
    .tzi-lightbox-prev { left: 10px; }
    .tzi-lightbox-next { right: 10px; }
    .tzi-lightbox-close { top: 12px; right: 12px; }
    .tzi-lightbox-img { max-width: 96vw; max-height: 80vh; }
}

/* ═══════════════════════════════════════
   08. PROCESS
   ═══════════════════════════════════════ */
section.process, .process {
    background: #fff;
    padding: 100px 60px;
}
.process-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.process-cards {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.process-card {
    background: var(--cream);
    border-radius: 8px;
    padding: 36px 24px 32px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s, transform 0.6s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.process-card.visible { opacity: 1; transform: none; }
.process-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.process-card-num {
    font-family: var(--serif);
    font-size: 11px;
    font-weight: 700;
    color: var(--rust);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.process-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s;
}
.process-card:hover .process-card-icon { background: var(--rust); }
.process-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--rust);
    fill: none;
    stroke-width: 1.8;
    transition: stroke 0.3s;
}
.process-card:hover .process-card-icon svg { stroke: #fff; }
.process-card h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}
.process-card p {
    font-size: 13px;
    line-height: 1.68;
    color: var(--stone);
}

/* ═══════════════════════════════════════
   09. TESTIMONIALS
   ═══════════════════════════════════════ */
section.testimonials, .testimonials {
    background: var(--cream);
    padding: 100px 60px;
}
.testi-slider-wrap {
    margin-top: 56px;
    overflow: visible;
}
.testi-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    transform: none !important;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
    background: #fff;
    padding: 40px 36px;
    border-radius: 6px;
    flex: 0 0 calc(33.333% - 15px);
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s, transform 0.6s;
}
.testi-card.visible { opacity: 1; transform: none; }
.testi-quote {
    font-family: var(--serif);
    font-size: 52px;
    line-height: 0.5;
    color: var(--rust);
    margin-bottom: 16px;
    display: block;
    font-weight: 800;
}
.testi-text {
    font-size: 15px;
    line-height: 1.78;
    color: var(--charcoal);
    font-style: italic;
    margin-bottom: 26px;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
.testi-name {
    font-size: 14px;
    font-weight: 600;
}
.testi-role {
    font-size: 12px;
    color: var(--stone);
    margin-top: 2px;
}
.stars {
    color: var(--rust);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.testi-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}
.testi-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--mid);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.testi-btn:hover { background: var(--rust); border-color: var(--rust); }
.testi-btn:hover svg { stroke: #fff; }
.testi-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--stone);
    fill: none;
    stroke-width: 2;
    transition: stroke 0.2s;
}
.testi-dots {
    display: flex;
    gap: 7px;
}
.testi-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--light-stone);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.testi-dot.active {
    background: var(--rust);
    transform: scale(1.25);
}

/* ═══════════════════════════════════════
   10. ABOUT US
   ═══════════════════════════════════════ */
section.about-us, .about-us {
    background: #fff;
    padding: 100px 60px;
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}
.about-img {
    position: relative;
    height: 560px;
    overflow: hidden;
    border-radius: 8px;
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s;
}
.about-img:hover img { transform: scale(1.03); }
.about-badge {
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 14px;
}
.about-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.about-badge-num {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--rust);
    line-height: 1;
}
.about-badge-label {
    font-size: 11px;
    color: var(--stone);
    margin-top: 2px;
    font-weight: 500;
}
.about-lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--charcoal);
    margin-top: 20px;
    font-weight: 500;
}
.about-body {
    font-size: 15px;
    line-height: 1.78;
    color: var(--stone);
    margin-top: 16px;
}
.about-stats {
    display: flex;
    margin-top: 40px;
    border-top: 1px solid var(--mid);
    border-bottom: 1px solid var(--mid);
}
.about-stat {
    flex: 1;
    padding: 24px 0;
    text-align: center;
    border-right: 1px solid var(--mid);
}
.about-stat:last-child { border-right: none; }
.about-stat-num {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 800;
    color: var(--rust);
    line-height: 1;
    letter-spacing: -1px;
}
.about-stat-label {
    font-size: 11px;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 5px;
    font-weight: 500;
}

/* ═══════════════════════════════════════
   11. TEAM
   ═══════════════════════════════════════ */
section.team, .team {
    background: var(--cream);
    padding: 100px 60px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s, transform 0.6s;
}
.team-card.visible { opacity: 1; transform: none; }
.team-photo {
    height: 260px;
    overflow: hidden;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s;
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info {
    padding: 28px 26px 32px;
}
.team-info h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}
.team-role {
    font-size: 12px;
    color: var(--rust);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.team-info p {
    font-size: 13px;
    line-height: 1.68;
    color: var(--stone);
}

/* ═══════════════════════════════════════
   12. ESTIMATE SECTION
   ═══════════════════════════════════════ */
.estimate-section {
    position: relative;
    padding: 100px 60px;
    overflow: hidden;
}
.estimate-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.estimate-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 1;
}
.estimate-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}
.estimate-left .section-tag { color: var(--rust); }
.estimate-left h2 { color: #fff; }
.estimate-left p {
    font-size: 15px;
    line-height: 1.78;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    margin-top: 18px;
}
.estimate-perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.perk {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}
.perk-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rust);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.perk-check svg {
    width: 11px;
    height: 11px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
}
.estimate-form {
    background: #fff;
    border-radius: 10px;
    padding: 48px 44px;
    box-shadow: 0 8px 60px rgba(0,0,0,0.2);
}
.estimate-form h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}
.estimate-form .sub {
    font-size: 14px;
    color: var(--stone);
    margin-bottom: 32px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-field.full { grid-column: span 2; }
.form-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
}
.form-field input,
.form-field select,
.form-field textarea {
    border: 1.5px solid var(--mid);
    border-radius: 4px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--sans);
    color: var(--charcoal);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--rust);
}
.form-field textarea {
    resize: vertical;
    min-height: 84px;
}
.form-submit {
    width: 100%;
    padding: 15px;
    margin-top: 6px;
    background: var(--rust);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--sans);
    transition: background 0.3s, transform 0.2s;
}
.form-submit:hover {
    background: var(--rust-light);
    transform: translateY(-2px);
}
.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--light-stone);
    margin-top: 12px;
}
.form-success {
    display: none;
    text-align: center;
    padding: 30px 0;
}
.form-success svg {
    width: 54px;
    height: 54px;
    stroke: var(--rust);
    fill: none;
    stroke-width: 1.5;
    margin: 0 auto 18px;
    display: block;
}
.form-success h4 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}
.form-success p {
    font-size: 14px;
    color: var(--stone);
}

/* ═══════════════════════════════════════
   13. FOOTER
   ═══════════════════════════════════════ */
.tzi-footer {
    background: #f3f0eb;
    color: var(--stone);
    padding: 72px 60px 32px;
    border-top: 1px solid var(--mid);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 56px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--mid);
}
.footer-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 16px;
}
.footer-logo span { color: var(--rust); }
.footer-logo img {
    height: 32px;
    width: auto;
    display: block;
}
.footer-logo.has-image {
    font-size: 0; /* Hide text when image is present */
}
.footer-desc {
    font-size: 13px;
    line-height: 1.8;
    max-width: 260px;
}
.footer-col h4 {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--charcoal);
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-col a {
    font-size: 13px;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--rust); }
.footer-contact p {
    font-size: 13px;
    line-height: 1.9;
}
.footer-contact strong {
    color: var(--charcoal);
    font-weight: 600;
}
.footer-bottom {
    padding-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom p { font-size: 12px; }
.footer-bottom a {
    color: var(--rust);
    text-decoration: none;
}

/* ═══════════════════════════════════════
   14. MODAL
   ═══════════════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,0.55);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    padding: 48px 44px;
    position: relative;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.3s;
    margin: 0 20px;
}
.modal-backdrop.open .modal { transform: none; }
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover { background: var(--mid); }
.modal-close svg {
    width: 14px;
    height: 14px;
    stroke: var(--stone);
    fill: none;
    stroke-width: 2;
}
.modal h3 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}
.modal > p {
    font-size: 14px;
    color: var(--stone);
    margin-bottom: 26px;
    line-height: 1.6;
}
.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.modal-success svg {
    width: 52px;
    height: 52px;
    stroke: var(--rust);
    fill: none;
    stroke-width: 1.5;
    margin: 0 auto 18px;
    display: block;
}
.modal-success h4 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}
.modal-success p {
    font-size: 14px;
    color: var(--stone);
}

/* ═══════════════════════════════════════
   RESPONSIVE — 1100px
   ═══════════════════════════════════════ */
@media (max-width: 1100px) {
    .top-bar, .tzi-nav { padding: 14px 28px; }
    .top-bar { gap: 24px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    section, .features, .services, .gallery, .process, .testimonials,
    .about-us, .team, .estimate-section, .tzi-footer {
        padding: 72px 28px;
    }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-right { height: 400px; }
    .facts { grid-template-columns: repeat(2, 1fr); padding: 0 28px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .services-inner, .estimate-inner, .about-inner { grid-template-columns: 1fr; gap: 48px; }
    .about-img { height: 380px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; height: 200px; }
    .process-cards { grid-template-columns: 1fr 1fr; gap: 14px; justify-items: center; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .testi-card { flex: 0 0 calc(50% - 11px); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .modal { padding: 36px 28px; }
    .testi-text { font-size: 14px; line-height: 1.7; }
    .testi-quote { font-size: 40px; margin-bottom: 12px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 680px
   ═══════════════════════════════════════ */
@media (max-width: 680px) {
    .top-bar { flex-wrap: wrap; gap: 12px; justify-content: space-around; padding: 14px 20px; }
    .top-bar-divider { display: none; }
    .top-bar a { flex: 0 0 auto; }

    /* Hero */
    .hero-left { padding: 40px 20px; }
    .hero-left h1 { font-size: 32px; line-height: 1.15; }
    .hero-sub { font-size: 14px; }
    .hero-right { height: 260px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline-dark { width: 100%; text-align: center; }
    .hero-trust { flex-direction: column; gap: 8px; }
    .hero-badge { bottom: 12px; right: 12px; padding: 14px 16px; }
    .badge-num { font-size: 28px; }

    /* Sections general */
    section, .features, .services, .gallery, .process, .testimonials,
    .about-us, .team, .estimate-section, .tzi-footer {
        padding: 56px 20px;
    }
    section h2, .features h2, .services h2, .gallery h2, .process h2,
    .testimonials h2, .about-us h2, .team h2, .estimate-section h2 {
        font-size: 26px;
    }

    /* Facts — compact 4-col tabular row */
    .facts { grid-template-columns: repeat(4, 1fr); padding: 0; gap: 0; }
    .fact { padding: 20px 8px; text-align: center; border-right: 1px solid var(--mid); }
    .fact:last-child { border-right: none; }
    .fact-number { font-size: 22px; letter-spacing: -0.5px; }
    .fact-label { font-size: 9px; margin-top: 2px; }

    /* Features */
    .features-grid, .team-grid { grid-template-columns: 1fr; }

    /* Services */
    .service-list { gap: 0; }
    .service-item { padding: 16px 0; gap: 14px; }
    .service-info h3 { font-size: 15px; }
    .service-info p { font-size: 12px; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 200px; }

    /* Process */
    .process-cards { grid-template-columns: 1fr; gap: 12px; justify-items: center; }
    .process-card { padding: 28px 22px; }

    /* Testimonials */
    .testimonials { padding: 56px 20px; }
    .testi-card { flex: 0 0 100%; padding: 28px 22px; }
    .testi-text { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
    .testi-quote { font-size: 36px; margin-bottom: 10px; }
    .stars { font-size: 14px; margin-bottom: 6px; }
    .testi-name { font-size: 14px; }
    .testi-role { font-size: 11px; }
    .testi-avatar { width: 36px; height: 36px; font-size: 12px; }
    .testi-controls { margin-top: 24px; gap: 10px; }

    /* About */
    .about-img { height: 300px; }
    .about-lead { font-size: 15px; }
    .about-body { font-size: 13px; }
    .about-stats { flex-direction: column; }
    .about-stat { border-right: none; border-bottom: 1px solid var(--mid); padding: 16px 0; }
    .about-stat:last-child { border-bottom: none; }
    .about-badge { bottom: 12px; left: 12px; padding: 14px 16px; gap: 10px; }

    /* Team */
    .team-card .team-photo { height: 200px; }

    /* Estimate */
    .estimate-form { padding: 28px 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: span 1; }
    .estimate-left h2 { font-size: 24px; }
    .estimate-left p { font-size: 14px; }
    .perk { font-size: 13px; }

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

    /* Modal */
    .modal { padding: 28px 20px; max-width: 100%; margin: 16px; }
}
