/* --- RESET & VARIABLES --- */
:root {
    /* Palette: Modern Sport / Performance */
    --primary: #2563EB;
    /* Electric Blue */
    --primary-dark: #1E40AF;
    --secondary: #0F172A;
    /* Dark Slate/Navy */
    --accent: #F97316;
    /* Energetic Orange (for small details) */
    --light-gray: #F1F5F9;
    --white: #ffffff;
    --text-main: #334155;

    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* --- ACCESSIBILITY & POLISH --- */

/* Removes the blue "flash" when tapping buttons on mobile */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* Prevents dragging/highlighting images and icons */
img,
svg {
    user-select: none;
    -webkit-user-select: none;
    /* Safari support */
}

/* Keyboard Navigation Focus 
   (Only shows outline when using Tab key, not mouse click)
   Uses your theme's primary color automatically
*/
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    /* Adapted to match your theme */
    outline-offset: 3px;
    border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
.logo,
.btn-nav {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    /* Bold look */
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 100px 0;
}

/* --- BUTTONS (Square & Bold) --- */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 15px 35px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 13px 33px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-left: 15px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
}

.logo .accent-text {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary);
}

.btn-nav {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.8rem !important;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    margin: 5px;
    transition: 0.3s;
}

/* --- HERO SECTION (Diagonal) --- */
.hero {
    position: relative;
    z-index: 0;
    height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    /* Clip Path for diagonal cut at bottom */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    background: var(--secondary);
    /* Fallback */
    margin-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Dark on left, transparent on right */
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.highlight {
    color: var(--primary);
    -webkit-text-stroke: 4px var(--white);
    paint-order: stroke fill;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 550px;
    opacity: 0.9;
    font-weight: 400;
}

/* --- ABOUT SECTION --- */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.check-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    font-weight: 500;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 15px;
    height: 15px;
    background: var(--primary);
}

/* Image with offset frame */
.about-image-wrapper {
    position: relative;
    padding: 20px 0 0 20px;
}

.img-frame img {
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.img-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 80%;
    border: 5px solid var(--primary);
    z-index: 1;
}

/* --- SERVICES SECTION --- */
.bg-gray {
    background-color: var(--light-gray);
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
}

.separator {
    width: 80px;
    height: 5px;
    background: var(--primary);
    margin-top: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-top: 5px solid var(--primary);
    /* Accent Top Border */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 2rem;
    font-weight: 800;
    color: #E2E8F0;
    /* Light gray number */
    position: absolute;
    top: 10px;
    right: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* --- CONTACT / FOOTER --- */
#contact {
    background: var(--secondary);
    color: var(--white);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.contact-left h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-left p {
    opacity: 0.7;
    margin-bottom: 40px;
}

.info-block p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 1;
}

.info-block strong {
    color: var(--primary);
    margin-right: 10px;
}

.contact-map {
    height: 300px;
    width: 100%;
    background: #333;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 960px) {
    .hero {
        clip-path: none;
        height: auto;
        padding: 100px 0;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        height: calc(100vh - 70px);
        background: var(--white);
        width: 80%;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        transform: translateX(100%);
        transition: 0.4s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        text-align: center;
    }

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

    .hero-content {
        margin: 0 auto;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
        border-color: var(--primary);
        color: var(--white);
        background: rgba(37, 99, 235, 0.2);
    }

    .about-image-wrapper {
        padding: 0;
    }

    .img-frame::before {
        display: none;
    }

    h2,
    .section-header h2,
    .contact-left h2,
    .about-text h2 {
        /* Added this selector to fix the inconsistency */
        font-size: 2rem;
        /* Increased from 1.7rem to 2rem */
        line-height: 1.2;

        /* Keep these to prevent horizontal scrolling */
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* --- HOVER EFFECTS (Desktop Only) --- */
@media (hover: hover) and (pointer: fine) {

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

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

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

    .btn-nav:hover {
        background: var(--primary);
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
}

/* --- LEGAL / COOKIES SECTION --- */

/* Override existing copyright opacity to allow hover effects */
.copyright {
    opacity: 1; /* Reset global opacity */
    color: rgba(255, 255, 255, 0.6); /* Apply transparency to text only */
}

.legal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover Effects (Desktop) */
@media (hover: hover) {
    .legal-link:hover {
        color: var(--primary); /* Electric Blue glow */
        text-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
        text-decoration: none;
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .legal-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .legal-separator {
        display: none;
    }
}