/* ========================================
   PRAIRIE TOONS CONTRACTORS
   Dark Sophisticated Design System
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

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

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Brand Colors */
    --background: hsl(222, 47%, 6%);
    --foreground: hsl(40, 6%, 90%);
    --primary: hsl(205, 85%, 50%);       /* #1AA3E6 - Ocean blue */
    --primary-foreground: hsl(0, 0%, 100%);  /* White text on blue */

    --card: hsl(222, 47%, 8%);
    --muted: hsl(222, 30%, 12%);
    --muted-foreground: hsl(220, 10%, 55%);
    --border: hsl(222, 30%, 18%);
    --amber-light: hsl(205, 85%, 60%);
    --amber-dark: hsl(205, 75%, 40%);
    
    /* Typography */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
/* Font Sizes - Modular Scale (1.25 ratio) */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    
    /* Spacing System - 8px base unit */
    --space-1: 0.5rem;    /* 8px */
    --space-2: 1rem;      /* 16px */
    --space-3: 1.5rem;    /* 24px */
    --space-4: 2rem;      /* 32px */
    --space-5: 2.5rem;    /* 40px */
    --space-6: 3rem;      /* 48px */
    --space-8: 4rem;      /* 64px */
    --space-10: 5rem;     /* 80px */
    --space-12: 6rem;     /* 96px */
    --space-16: 8rem;     /* 128px */
    --space-20: 10rem;    /* 160px */
    
    /* Layout */
    --max-width: 1440px;
    --content-width: 1200px;
    --narrow-width: 800px;
    
    /* Shadows - Subtle Depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Transitions - Smooth & Professional */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ==================== GLOBAL STYLES ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

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

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

/* ==================== UTILITY CLASSES ==================== */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 7rem 0;
    }
}

.glass-card {
    background: rgba(33, 39, 55, 0.5);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--amber-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px rgb(19 146 236 / 14%);
}

.hero-gradient {
    background: linear-gradient(135deg, hsla(222,47%,4%,0.95), hsla(222,30%,12%,0.85));
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary), var(--amber-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-primary-custom:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(19 146 236 / 50%);
}

.btn-outline-custom {
    border: 2px solid rgb(19 146 236 / 50%);
    color: var(--primary);
    background: transparent;
}

.btn-outline-custom:hover {
    background: rgba(19, 146, 236, 0.1);
    border-color: var(--primary);
}

/* ==================== HEADER ==================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(9, 11, 16, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-1) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: 9999px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgb(19 146 236 / 5%);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--dark-gray);
    background: var(--white);
    transition: var(--transition-fast);
}

.lang-trigger:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(19, 23, 32, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1001;
        pointer-events: none;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 2rem;
        --text-6xl: 2.5rem;
        --text-7xl: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, hsla(222,47%,4%,0.95), hsla(222,30%,12%,0.6));
    z-index: 1;
}

.hero-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 8s infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--amber-light);
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 35px 0px 18px 0px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    margin: 3rem 0 2rem 0;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 700px;
    line-height: 1.7;
}

/* ==================== SECTIONS ==================== */
.section-bg-muted {
    background: rgba(31, 39, 58, 0.5);
}

.section-bg-card {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ==================== CARDS ==================== */
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px rgb(24 125 197 / 17%);
    border-color: rgb(23 127 202 / 5%);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--amber-dark));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ==================== GRID LAYOUTS ==================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

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

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

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==================== PROJECT CARDS ==================== */
.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    border-color: rgb(19 146 236 / 30%);
}

.project-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.project-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.project-card.large .project-image {
    height: 400px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.project-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.metric span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: auto;
    height: 75px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;

}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or use 'cover' to fill entire area */
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    height: 56px;
    padding: 0 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--foreground);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 151, 78, 0.1);
}

textarea.form-control {
    height: auto;
    padding: 1rem;
    resize: vertical;
    min-height: 150px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ==================== UTILITY ==================== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-8 { margin-top: 4rem; }


/* ==================== GOOGLE TRANSLATE OVERRIDE ==================== */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

#google_translate_element {
    display: inline-block;
}

.goog-te-gadget {
    font-family: var(--font-body) !important;
    font-size: var(--text-sm) !important;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: 1px solid var(--light-gray) !important;
    padding: var(--space-1) var(--space-2) !important;
    border-radius: var(--radius-full) !important;
    font-size: var(--text-sm) !important;
}

.goog-te-gadget-simple:hover {
    border-color: var(--accent-blue) !important;
}
/* ==================== GOOGLE TRANSLATE FIX ==================== */
#google_translate_element {
    display: inline-flex;
    align-items: center;
}

#google_translate_element .goog-te-gadget {
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    line-height: 1;
}

#google_translate_element .goog-te-gadget-simple {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    display: ruby !important;
    align-items: center !important;
    color: var(--foreground) !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
    border-color: var(--primary) !important;
}

#google_translate_element .goog-te-gadget-simple span {
    color: var(--foreground) !important;
}

#google_translate_element .goog-te-gadget-simple img {
    vertical-align: middle !important;
    margin-right: 4px !important;
    display: none !important;
}

/* Mobile Google Translate */
@media (max-width: 1024px) {
    #google_translate_element {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    #google_translate_element .goog-te-gadget-simple {
        width: 100%;
        justify-content: center;
    }
}

/* Ensure nav-links has proper padding on mobile */
@media (max-width: 1024px) {
    .nav-links {
        padding: 0;
        margin: 0;
    }
}