/* --- CSS VARIABLES (FRIENDLY PRO THEME) --- */
:root {
    /* Backgrounds */
    --white: #ffffff;
    --off-white: #f8fafc;  
    --deep-blue: #0f172a;  /* Dark Navy for Text/Nav */
    
    /* Text Colors */
    --text-main: #334155;  /* Soft dark grey */
    --text-light: #64748b; /* Lighter grey */
    
    /* Accents */
    --primary-blue: #0284c7; 
    --primary-hover: #0369a1;
    --success-green: #16a34a; 
    
    --main-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Mobile Line Break Utility (Hidden on Desktop) */
.mobile-break { display: none; }

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--main-gradient);
    color: white; 
    border: none;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-main);
    margin-left: 1rem;
}
.btn-ghost:hover { 
    border-color: var(--primary-blue); 
    color: var(--primary-blue);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--deep-blue);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.gradient-text {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- GLOBAL SECTION SPACING --- */
section {
    padding: 6rem 0; /* 96px Top/Bottom Padding */
    position: relative;
    width: 100%;
}

/* --- SPECIFIC SECTION COLORS --- */
#contact { background-color: var(--deep-blue); color: var(--white); padding: 6rem 0; }
.section-grey { background-color: var(--off-white); border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.section-light { background-color: var(--white); }
.industry-section { background-color: var(--white); border-bottom: 1px solid #e2e8f0; }

/* --- NAVBAR --- */
.navbar {
    background-color: var(--deep-blue);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    position: relative;
    z-index: 100;
}

.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { height: 80px; width: auto; }
.nav-menu { display: flex; gap: 2.5rem; }

.nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--white); text-decoration: underline; }

/* HAMBURGER */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s; background-color: white; }

/* --- HERO SECTION --- */
.hero {
    background-color: var(--off-white);
    color: var(--deep-blue);
    padding: 6rem 0 8rem 0;
    border-bottom: 1px solid #e2e8f0;
    z-index: 5; 
}

.hero-bg-arrows {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 800px; opacity: 0.05; z-index: 1; pointer-events: none; 
    filter: invert(1);
}

.hero-container-split { 
    display: grid; 
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; 
    gap: 0 4rem; 
    align-items: center; 
    position: relative; 
    z-index: 2; 
}

/* 1. TOP TEXT (Headline) */
.hero-text-top { 
    grid-column: 1;
    grid-row: 1;
    position: relative; 
    z-index: 2; 
    align-self: end; 
    margin-bottom: 0.5rem;
}

/* 2. BOTTOM ACTIONS (Pills + Buttons) */
.hero-text-bottom { 
    grid-column: 1;
    grid-row: 2;
    position: relative; 
    z-index: 2; 
    align-self: start;
    margin-top: 0;
}

/* 3. IMAGE (Spans both rows to center vertically) */
.hero-visual-side { 
    grid-column: 2;
    grid-row: 1 / span 2; /* Occupy full height */
    align-self: center;   /* Center image vertically */
}

/* --- CANADIAN BADGE (DESKTOP DEFAULT) --- */
.canadian-badge {
    position: absolute;
    z-index: 99; /* Keeps it on top of the hero image */
    right: -100px; 
    top: -30px;
    width: 150px; 
    height: auto;
    transform: rotate(-10deg); 
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2));
}

.canadian-badge:hover {
    transform: rotate(0deg) scale(1.1);
}

.hero-text-top h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; color: var(--deep-blue); }
.hero-sub { font-size: 1.15rem; color: var(--text-main); margin-bottom: 0; max-width: 500px; }

/* HERO BUTTONS (CONTAINER) */
.hero-btns { display: flex; gap: 1.5rem; margin-top: 2rem; flex-direction: row; justify-content: flex-start; align-items: center; }

/* --- HERO VISUALS --- */
.lifestyle-container { position: relative; max-width: 600px; margin-left: auto; }

.hero-img-main { border-radius: 24px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); border: 8px solid white; width: 100%; height: 480px; object-fit: cover; display: block; }

/* Floating Badges Base */
.floating-badge { position: absolute; background: white; padding: 12px 18px; border-radius: 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.12); border: 1px solid #e2e8f0; z-index: 2; min-width: 180px; }
.check-icon { background: var(--success-green); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.check-icon i { font-size: 1.2rem; }
.icon-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; flex-shrink: 0; }
.icon-circle i { font-size: 1.2rem; }
.floating-badge strong { display: block; color: var(--deep-blue); font-size: 0.9rem; line-height: 1.2; }
.floating-badge span { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }

/* Badge Positioning */
.badge-bottom-left { bottom: 20px; left: -30px; animation: float-card 6s ease-in-out infinite; }
.badge-top-right { top: 20px; right: -25px; animation: float-card 7s ease-in-out infinite; animation-delay: 1s; }
.badge-mid-left { top: 25%; left: -45px; animation: float-card 5s ease-in-out infinite; animation-delay: 2s; }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* --- INDUSTRIES GRID --- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.ind-card { background: var(--off-white); border: 1px solid #e2e8f0; border-radius: 12px; padding: 2rem; text-align: center; transition: transform 0.2s ease; }
.ind-card:hover { transform: translateY(-5px); border-color: var(--primary-blue); background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.ind-icon { font-size: 3rem; margin-bottom: 1rem; display: block; color: var(--primary-blue); }
.ind-card h4 { font-size: 1.1rem; color: var(--deep-blue); font-weight: 700; margin-bottom: 0.5rem; }
.ind-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.4; }

/* --- SCENARIOS / LIFESTYLE --- */
.scenario-wrapper { display: flex; align-items: center; gap: 4rem; margin-top: 3rem; }
.scenario-image-col { flex: 1; }
.scenario-img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: block; }
.scenario-content-col { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }

/* --- CONTACT --- */
.form-box { background: rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: #cbd5e1; }
.form-control { width: 100%; padding: 0.8rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: var(--white); border-radius: 6px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--primary-blue); background: rgba(255,255,255,0.2); }
.check-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.check-icon-small { color: var(--success-green); font-size: 1.5rem; line-height: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* --- FOOTER SECTION --- */
#main-footer { background-color: #020617; color: #cbd5e1; padding: 4rem 0 2rem 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-logo { height: 60px; width: auto; margin-bottom: 1.5rem; opacity: 1; }
.footer-tagline { max-width: 300px; line-height: 1.6; color: #94a3b8; }
.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 600; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e1; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-blue); text-decoration: none; }
.social-links { display: flex; gap: 1rem; }
.social-icon { background: rgba(255,255,255,0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; transition: background 0.2s; }
.social-icon:hover { background: var(--primary-blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.85rem; color: #64748b; }

/* --- LEGAL PAGES (Privacy Policy) --- */
.legal-page { padding-top: 140px; padding-bottom: 5rem; background-color: var(--white); }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 2.5rem; color: var(--deep-blue); margin-bottom: 0.5rem; }
.legal-content .last-updated { color: var(--text-light); font-style: italic; margin-bottom: 1.5rem; }
.legal-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
.legal-content h2 { color: var(--deep-blue); font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.legal-content p { margin-bottom: 1rem; color: var(--text-main); line-height: 1.7; }
.legal-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; list-style-type: disc; color: var(--text-main); }
.legal-content a { color: var(--primary-blue); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }

/* Forces the Assessment section title to be white on all screens */
.contact .section-title {
    color: #ffffff;
    text-align: left;
}

/* --- DURHAM REGION NOTE --- */
.durham-region-note {
    padding: 2rem 0;
    text-align: center;
}
.durham-region-note p {
    color: var(--text-light);
}

/* --- ASSESSMENT BANNER --- */
.assessment-banner {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.assessment-banner h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}
.assessment-banner p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #e0f2fe;
}
.btn-light {
    background: white;
    color: var(--primary-blue);
}

/* --- VIDEO DEMO SECTION --- */
.video-demo-section {
    background-color: var(--primary-blue);
    padding: 6rem 0;
}
.video-demo-frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 476px;
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--off-white);
    display: flex;
}
.video-demo-frame iframe {
    border: none;
    width: 100%;
    height: 100%;
}
.video-demo-section .section-title {
    color: white;
    margin-bottom: 1rem;
}
.video-demo-section .video-desc {
    font-size: 1.1rem;
    color: #e0f2fe;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.video-demo-section .check-icon-small,
.video-demo-section .check-item strong {
    color: white;
}
.video-demo-section .check-item {
    margin-bottom: 0.8rem;
}

/* --- PROCESS STEP ICON --- */
.process-icon {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- PORTFOLIO CARD CATEGORY LABEL --- */
.card-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.card-category i {
    font-size: 1.5rem;
    color: #e2e8f0;
}
.card-category span {
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- PORTFOLIO "SEE ALL" BUTTON --- */
.portfolio-header .btn-ghost {
    margin: 0;
    padding: 0.6rem 1.5rem;
    border-color: var(--deep-blue);
    color: var(--deep-blue);
}

/* --- CTA CARD CONTENT --- */
.cta-card .cta-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
.cta-card h4 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.cta-card p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.cta-card .btn {
    margin-left: 0;
}

/* --- CONTACT TEXT BLOCK --- */
.contact-intro {
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 450px;
    font-size: 1.1rem;
}
.contact-canadian-note {
    margin-top: 3rem;
    opacity: 0.7;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.form-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #ffffff;
}
.form-box .btn[type="submit"] {
    width: 100%;
}

/* --- FOOTER REGION NOTE --- */
.footer-bottom-extras {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
}

/* --- DESKTOP / MOBILE BUTTON VISIBILITY (mobile override is at bottom of file) --- */
.desktop-btn-only { display: inline-block; }
.mobile-btn-only { display: none; }

/* --- PROJECTS PAGE STYLES (DESKTOP) --- */
.project-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
    width: 100%;
}
.project-visual {
    flex: 1;
    min-width: 45%;
    margin-top: 3.5rem;
}
.project-info {
    flex: 1;
    min-width: 45%;
}
.project-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: block;
}
.project-category {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.project-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Projects page hero */
.projects-hero {
    padding-bottom: 2rem;
    text-align: center;
}
.projects-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.projects-hero .hero-sub {
    margin: 0 auto;
}

/* Projects page client logo grid */
.client-grid-section { padding: 2rem 0 4rem 0; }
.client-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.client-thumb {
    width: 200px;
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.client-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.client-thumb img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* --- VIDEO AD COLUMN ALIGNMENT --- */
.video-ad-col { align-items: flex-start; }
.video-ad-col .section-title,
.video-ad-col .video-desc { text-align: left; width: 100%; }
.video-ad-bullets { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }

/* Portfolio Carousel */
.portfolio-section { overflow: hidden; }
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1rem; }
.portfolio-header .section-title { margin-bottom: 0; text-align: left; }
.portfolio-grid { 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    gap: 2rem; 
    margin-top: 1.5rem; 
    padding-bottom: 1.5rem;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    cursor: grab;
}
.portfolio-grid.active-drag {
    scroll-snap-type: none; 
    scroll-behavior: auto;
    cursor: grabbing;
}
.portfolio-grid::-webkit-scrollbar { display: none; }

.portfolio-card { 
    flex: 0 0 450px; /* Adjusted fixed width */
    aspect-ratio: 21/9;
    scroll-snap-align: center;
    border-radius: 12px; 
    overflow: hidden; 
    position: relative;
    background-size: cover;
    background-position: center right;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.4);
}

.portfolio-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.3) 65%, transparent 100%);
    z-index: 1; pointer-events: none;
}

.portfolio-link i {
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-link i {
    transform: translateX(6px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 0.7; 
}

.portfolio-content { 
    position: relative; z-index: 2; 
    padding: 3rem; 
    display: flex; flex-direction: column; justify-content: center;
    height: 100%; max-width: 65%;
}
.portfolio-content h4 { color: #fff; font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.portfolio-content p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 2rem; }
.portfolio-link { color: #fff; font-weight: 600; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.portfolio-link:hover { text-decoration: underline; }

/* CTA Card Styling inside Carousel */
.cta-card {
    background: var(--deep-blue) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}
.cta-card .portfolio-overlay { display: none; }

/* Process / Consulting Layout */
.process-wrapper { 
    display: flex; 
    gap: 1.5rem; 
    margin-top: 3rem; 
    flex-wrap: wrap; /* Fix: Allow wrapping */
    justify-content: center;
}
.process-step { 
    flex: 1 1 300px; /* Fix: Basis allows responsive wrapping */
    padding: 2rem; 
    background: var(--white); 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    position: relative; 
    text-align: left; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.process-num { font-size: 4rem; color: #f1f5f9; font-weight: 800; position: absolute; top: 1rem; right: 1.5rem; line-height: 1; z-index: 0;}
.process-step h4, .process-step p { position: relative; z-index: 1; }
.process-step h4 { color: var(--deep-blue); font-size: 1.1rem; margin-bottom: 0.8rem; margin-top: 1rem;}
.process-step p { color: var(--text-main); font-size: 0.95rem; }

/* FAQ Accordion */
.faq-wrapper { max-width: 800px; margin: 3rem auto 0; text-align: left;}
details { background: var(--white); border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 1rem; padding: 1.2rem 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: background 0.2s;}
details:hover { background: #f8fafc; }
summary {
    font-weight: 600;
    color: var(--deep-blue);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    outline: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--primary-blue); font-weight: 300; transition: transform 0.2s;}
details[open] summary::after { content: '−'; }
details p { margin-top: 1rem; color: var(--text-main); font-size: 0.95rem; line-height: 1.6; border-top: 1px solid #e2e8f0; padding-top: 1rem;}

/* --- LET'S START BUILDING SECTION --- */
#lets-start-building {
    background-color: var(--primary-blue);
    color: white;
    padding: 6rem 0;
    overflow: hidden; 
}

.lets-build-flex {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.lets-build-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.lets-build-text .section-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    text-align: left;
}

.lets-build-text p {
    font-size: 1.15rem;
    max-width: 600px;
    color: #fff;
    margin-bottom: 3rem;
    text-align: left;
}

.lets-build-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.lets-build-img {
    max-width: 100%;
    height: auto;
}

/* Desktop sizing fix */
@media (min-width: 901px) {
    .portfolio-grid .portfolio-card {
        flex: 0 0 500px;
        height: 400px;
    }
}

/* ============================================================
   RESPONSIVE / MOBILE STYLES
   Placed last so they override desktop defaults at the same
   specificity. Add new mobile rules below this line.
   ============================================================ */
@media (max-width: 900px) {
    /* Layout */
    section { padding: 4rem 0; }
    .container { padding: 0 1.5rem; }
    .mobile-break { display: block; }

    /* Navbar + Hamburger */
    .navbar { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--deep-blue); box-shadow: 0 4px 15px rgba(0,0,0,0.3); padding: 0.8rem 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { position: fixed; left: -100%; top: 70px; gap: 0; flex-direction: column; background-color: var(--deep-blue); width: 100%; text-align: center; transition: 0.3s; padding-bottom: 2rem; box-shadow: 0 10px 10px rgba(0,0,0,0.5); }
    .nav-menu.active { left: 0; }
    .nav-link { margin: 1.5rem 0; display: block; font-size: 1.2rem; }

    /* Hero */
    .hero { margin-top: 80px; padding-top: 3rem; }
    .hero-container-split { display: flex; flex-direction: column; gap: 2rem; text-align: center; padding-top: 1rem; }
    .hero-text-top { order: 1; }
    .hero-visual-side { order: 2; width: 100%; margin: 1rem 0; position: relative; }
    .hero-text-bottom { order: 3; }
    .hero-text-top h1 { font-size: 2.5rem; }
    .canadian-badge { position: relative; right: auto; top: auto; display: block; margin: 0 auto 1.5rem auto; width: 120px; max-width: 120px; height: auto; transform: none; }
    .hero-img-main { height: auto; max-height: 400px; }
    .lifestyle-container { max-width: 100%; margin: 0; }
    .badge-top-right, .badge-mid-left { display: none; }
    .badge-bottom-left { position: relative; bottom: auto; left: auto; margin-top: -15px; margin-left: auto; margin-right: auto; width: fit-content; animation: none; }

    /* Centre hero text + buttons on mobile */
    .hero-text-top,
    .hero-text-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-content: center;
    }

    /* Industries grid */
    .ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ind-card { padding: 1rem; display: flex; flex-direction: column; justify-content: flex-start; }
    .ind-icon { font-size: 2rem; margin-bottom: 0.5rem; }
    .ind-card h4 { font-size: 1rem; }
    .ind-card p { font-size: 0.8rem; }

    /* Layout collapses */
    .contact-grid { grid-template-columns: 1fr; }
    .scenario-wrapper { flex-direction: column; }

    /* Video + scenario titles */
    .video-ad-col .section-title,
    .scenario-content-col .section-title {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Let's Build text */
    .lets-build-text {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .lets-build-text .section-title,
    .lets-build-text p {
        text-align: center;
        max-width: 100%;
    }
    .lets-build-image { display: none; }

    /* Portfolio carousel mobile */
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .portfolio-header .section-title {
        font-size: 2.5rem;
        text-align: left;
    }
    .portfolio-grid {
        gap: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .portfolio-card {
        flex: 0 0 100%;
        aspect-ratio: auto;
        min-height: 480px;
    }
    .portfolio-grid .portfolio-card:nth-child(1) { background-image: url('images/tumb-whitbytree-mobile.jpg'); background-position: top center; }
    .portfolio-grid .portfolio-card:nth-child(2) { background-image: url('images/tumb-makemobile.jpg'); background-position: top center; }
    .portfolio-grid .portfolio-card:nth-child(3) { background-image: url('images/tumb-pajamoomobile.jpg'); background-position: top center; }
    .portfolio-grid .portfolio-card:nth-child(4) { background-image: url('images/tumb-mtpmobile.jpg'); background-position: top center; }
    .portfolio-grid .portfolio-card:nth-child(5) { background-image: url('images/tumb-DJPmobile.jpg'); background-position: top center; }
    .portfolio-card:hover {
        transform: none;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    .portfolio-overlay {
        background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.7) 45%, transparent 100%);
    }
    .portfolio-content {
        padding: 2rem;
        justify-content: flex-end;
        max-width: 100%;
    }
    .portfolio-content h4,
    .portfolio-content p,
    .portfolio-content span,
    .portfolio-content i {
        color: #ffffff;
    }
    .portfolio-content h4 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-logo { margin: 0 auto 1.5rem auto; }
    .footer-tagline { margin: 0 auto; }
    .social-links { justify-content: center; }

    /* Button visibility */
    .desktop-btn-only { display: none; }
    .mobile-btn-only { display: inline-block; }

    /* Projects page */
    .project-row {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    .project-visual {
        margin-top: 0;
    }
}