/* ============================================
   TILING - Warm Earthy Design
   Layout: Warm tones, terracotta accents, pattern elements
   ============================================ */

:root {
    --tl-bg: #faf8f5;
    --tl-bg-secondary: #f0ebe4;
    --tl-bg-card: #ffffff;
    --tl-primary: #c2410c;
    --tl-primary-light: #ea580c;
    --tl-secondary: #78716c;
    --tl-accent: #0d9488;
    --tl-dark: #1c1917;
    --tl-text: #44403c;
    --tl-text-secondary: #78716c;
    --tl-text-muted: #a8a29e;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--tl-bg);
    color: var(--tl-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ===== HERO ===== */
/* ===== HERO - Precision Tile Showcase ===== */
.tl-hero {
    min-height: 110vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
}
.tl-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    /* Tile grid pattern - clean geometric squares */
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: tileGlow 4s ease-in-out infinite;
}

@keyframes tileGlow {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.18; }
}
.tl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%);
}
.tl-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}
.tl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}
.tl-hero-phone {
    font-family: var(--font-heading);
    font-size: 18px;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.tl-hero-phone:hover {
    background: var(--tl-primary);
    transform: translateY(-2px);
}
.tl-hero-main {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.tl-hero-content { padding-right: 20px; }
.tl-hero-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tl-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tl-card:hover {
    transform: scale(1.02) translateX(-5px);
    background: rgba(255,255,255,0.15);
    border-color: var(--tl-primary);
    box-shadow: 0 10px 40px rgba(194, 65, 12, 0.25);
}
.tl-card-icon { font-size: 36px; flex-shrink: 0; }
.tl-card-info h3 { font-family: var(--font-heading); font-size: 18px; color: white; margin-bottom: 4px; }
.tl-card-info p { font-size: 13px; color: rgba(255,255,255,0.7); }
.tl-hero-title { font-family: var(--font-heading); font-size: clamp(36px, 4vw, 52px); line-height: 1.1; color: white; margin-bottom: 20px; }
.tl-hero-title .highlight { color: var(--tl-primary); }
.tl-hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 28px; max-width: 500px; }
.tl-hero-trust { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.tl-trust-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,0.9); }
.tl-trust-icon { width: 24px; height: 24px; background: var(--tl-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.tl-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.tl-btn-outline { background: transparent; border: 2px solid var(--tl-primary); color: var(--tl-primary); }
.tl-btn-outline:hover { background: var(--tl-primary); color: white; }
.tl-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 2; }
.tl-stat { text-align: center; padding: 20px; background: rgba(255,255,255,0.05); border-radius: 12px; }
.tl-stat-number { font-family: var(--font-heading); font-size: 32px; color: var(--tl-primary); font-weight: 600; }
.tl-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
@media (max-width: 968px) {
    .tl-hero-main { grid-template-columns: 1fr; gap: 40px; }
    .tl-hero-showcase { order: 2; }
    .tl-hero-content { order: 1; padding-left: 0; }
    .tl-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tl-hero-top { flex-direction: column; gap: 16px; text-align: center; }
    .tl-hero-showcase { grid-template-columns: 1fr; }
    .tl-hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tl-stat { padding: 16px 12px; }
    .tl-stat-number { font-size: 26px; }
}
/* ===== HERO ===== */
.tl-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 60% 50% at 100% 50%, rgba(194, 65, 12, 0.08) 0%, transparent 50%);
}

.tl-hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c2410c' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tl-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(194, 65, 12, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tl-primary);
    margin-bottom: 24px;
}

.tl-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1.1;
    color: var(--tl-dark);
    margin-bottom: 20px;
}

.tl-hero-title .highlight {
    color: var(--tl-primary);
}

.tl-hero-subtitle {
    font-size: 18px;
    color: var(--tl-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.tl-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tl-btn-outline {
    background: transparent;
    border: 2px solid var(--tl-primary);
    color: var(--tl-primary);
}

.tl-btn-outline:hover {
    background: var(--tl-primary);
    color: white;
}

.tl-hero-stats {
    display: flex;
    gap: 40px;
}

.tl-stat {
    text-align: left;
}

.tl-stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--tl-primary);
    font-weight: 600;
}

.tl-stat-label {
    font-size: 14px;
    color: var(--tl-text-secondary);
}

/* ===== HERO VISUAL ===== */
.tl-hero-visual {
    position: relative;
}

.tl-hero-image {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--tl-primary), #d97706);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    position: relative;
    overflow: hidden;
}

.tl-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 0h20v20H0zM20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}

.tl-float-card {
    position: absolute;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tl-float-card-1 {
    bottom: -20px;
    left: -20px;
}

.tl-float-card-2 {
    top: 40px;
    right: -20px;
}

.tl-float-card-icon {
    width: 44px;
    height: 44px;
    background: var(--tl-bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tl-float-card-text {
    font-size: 14px;
    color: var(--tl-text-secondary);
}

.tl-float-card-number {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--tl-dark);
}

/* ===== SECTION ===== */
.tl-section {
    padding: 100px 0;
}

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

.tl-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.tl-section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--tl-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.tl-section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    color: var(--tl-dark);
    margin-bottom: 16px;
}

.tl-section-desc {
    font-size: 16px;
    color: var(--tl-text-secondary);
}

/* ===== SERVICES ===== */
.tl-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tl-service-card {
    padding: 32px;
    background: var(--tl-bg-card);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.tl-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.tl-service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(194, 65, 12, 0.1), rgba(217, 119, 6, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.tl-service-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--tl-dark);
    margin-bottom: 12px;
}

.tl-service-card p {
    font-size: 14px;
    color: var(--tl-text-secondary);
    line-height: 1.6;
}

/* ===== SERVICES - HORIZONTAL CAROUSEL LAYOUT ===== */
.tl-services-carousel {
    margin-top: 48px;
    position: relative;
}

.tl-services-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0 40px;
    -webkit-overflow-scrolling: touch;
}

.tl-services-track::-webkit-scrollbar {
    height: 8px;
}

.tl-services-track::-webkit-scrollbar-track {
    background: var(--tl-bg-alt);
    border-radius: 4px;
}

.tl-services-track::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--tl-primary), var(--tl-accent));
    border-radius: 4px;
}

.tl-service-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.tl-service-num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--tl-primary);
    opacity: 0.1;
    line-height: 1;
}

.tl-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tl-dot.active {
    background: var(--tl-primary);
    width: 24px;
    border-radius: 5px;
}

/* Hide original grid - replaced by carousel */
.tl-services-grid {
    display: none !important;
}

/* ===== PROJECTS ===== */
.tl-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tl-project {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--tl-bg-secondary);
}

.tl-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tl-project:hover img {
    transform: scale(1.1);
}

.tl-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tl-project:hover .tl-project-overlay {
    opacity: 1;
}

.tl-project-overlay h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: white;
}

/* ===== TESTIMONIALS ===== */
.tl-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tl-testimonial {
    padding: 32px;
    background: var(--tl-bg-card);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.tl-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #d97706;
    font-size: 18px;
}

.tl-testimonial-quote {
    font-size: 15px;
    color: var(--tl-text);
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
}

.tl-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tl-testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--tl-primary), var(--tl-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.tl-testimonial-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--tl-dark);
    margin-bottom: 2px;
}

.tl-testimonial-info span {
    font-size: 13px;
    color: var(--tl-text-muted);
}

/* ===== CTA ===== */
.tl-cta {
    padding: 100px 0;
    background: var(--tl-dark);
    text-align: center;
    position: relative;
}

.tl-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    color: white;
    margin-bottom: 16px;
}

.tl-cta-desc {
    font-size: 18px;
    color: var(--tl-text-muted);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.tl-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tl-btn-white {
    background: white;
    color: var(--tl-primary);
}

.tl-btn-white:hover {
    background: var(--tl-bg-secondary);
    transform: translateY(-2px);
}

.tl-btn-ghost {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.tl-btn-ghost:hover {
    background: white;
    color: var(--tl-dark);
}

/* ===== FOOTER ===== */
.tl-footer {
    padding: 60px 0 40px;
    background: var(--tl-bg-secondary);
}

.tl-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.tl-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tl-footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tl-primary), var(--tl-primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tl-footer-logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--tl-dark);
}

.tl-footer-text {
    font-size: 14px;
    color: var(--tl-text-muted);
}

.tl-footer-links {
    display: flex;
    gap: 24px;
}

.tl-footer-links a {
    font-size: 14px;
    color: var(--tl-text-secondary);
    transition: color 0.2s;
}

.tl-footer-links a:hover { color: var(--tl-primary); }

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FAQ ===== */
.tl-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tl-faq-item {
    background: var(--tl-white);
    border: 1px solid var(--tl-border);
    border-radius: 8px;
    overflow: hidden;
}

.tl-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--tl-dark);
    text-align: left;
    transition: background 0.2s;
}

.tl-faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.tl-faq-question span {
    flex: 1;
    padding-right: 16px;
}

.tl-faq-icon {
    flex-shrink: 0;
    color: var(--tl-primary);
    transition: transform 0.3s;
}

.tl-faq-item.active .tl-faq-icon {
    transform: rotate(180deg);
}

.tl-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tl-faq-answer p {
    padding: 0 24px 20px;
    color: var(--tl-text);
    line-height: 1.7;
    margin: 0;
}

.tl-faq-item.active .tl-faq-answer {
    max-height: 200px;
}

/* ===== SERVICE AREAS ===== */
.tl-areas {
    background: linear-gradient(135deg, var(--tl-light) 0%, #fff 100%);
    padding: 80px 0;
}

.tl-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.tl-area-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.tl-area-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--tl-accent);
}

.tl-area-item h3 {
    font-size: 1.25rem;
    color: var(--tl-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.tl-area-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tl-areas-note {
    text-align: center;
    margin-top: 32px;
    color: #666;
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .tl-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tl-hero-visual { display: none; }
    
    .tl-hero-subtitle { margin-left: auto; margin-right: auto; }
    
    .tl-hero-actions { justify-content: center; }
    
    .tl-hero-stats { justify-content: center; }
    
    .tl-services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .tl-projects-grid { grid-template-columns: repeat(2, 1fr); }
    
    .tl-testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .tl-nav { display: none; }
    
    .tl-phone { display: none; }
    
    .tl-services-grid,
    .tl-projects-grid { grid-template-columns: 1fr; }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--tl-primary);
    outline-offset: 2px;
}