/* Global Styles - Firetroops Inspired Theme */
:root {
    --primary-blue: #02122b; /* Midnight Navy - Darker, richer */
    --accent-red: #e31e24;   /* Rescue Red - Vibrant & Urgent */
    --accent-yellow: #ffb400; /* Warning Yellow - For subtitles/icons */
    --white: #ffffff;
    --light-grey: #cccccc; /* Dark grey background */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-grey); /* Extended grey background to entire site */
    overflow-x: hidden; /* Prevent horizontal scroll from hero slant */
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    --white: #121212;
    --light-grey: #1e1e1e;
    --text-dark: #f0f0f0;
    --text-light: #cccccc;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

/* Header & Navigation */
.top-bar {
    background: #000; /* Pure black for high contrast */
    color: var(--white);
    padding: 14px 0; 
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.top-bar .top-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.top-bar a:hover {
    color: var(--accent-red);
}

.top-bar .icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.top-bar .divider {
    color: var(--accent-red);
}

header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px; /* Increased by a smidge */
    padding: 0;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
    position: relative;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative; /* Container for absolute child */
    width: 250px; /* Reserve space so nav doesn't overlap */
}

.logo img {
    height: 160px; /* Shrink slightly */
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    position: absolute; /* Decouple from flow */
    top: -40px; /* Moved up by 5px */
    left: 100px; /* Shifted further to the right */
    z-index: 1005; /* Ensure visibility */
}

/* Removed nav block that was causing layout issues */

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto; /* Push links to the right */
    margin-right: 40px; /* Space between links and toggle */
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 1.6rem; /* Significantly larger nav text */
    letter-spacing: 0.5px;
}

.nav-links a:not(.btn-nav):hover, 
.nav-links a.active {
    color: var(--accent-red);
}

/* Nav Button */
.btn-nav {
    padding: 15px 40px; 
    background: var(--accent-red);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.4rem;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

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

/* Hero Section */
.hero {
    height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -50px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 18, 43, 0.95) 0%, rgba(2, 18, 43, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-left: 20px;
    margin-left: 10%;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-yellow);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-red);
    padding-left: 15px;
}

.hero-content h1 {
    font-size: 5.5rem;
    margin-bottom: 2rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    gap: 25px;
}

.btn {
    display: inline-block;
    padding: 20px 45px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--white);
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--accent-red);
}

.btn-outline {
    background: transparent;
    border: 3px solid rgba(255,255,255,0.3);
    color: var(--white);
}

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

/* Sections */
.section {
    padding: 7rem 0;
}

.bg-light {
    background-color: var(--light-grey);
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.section-title .line {
    width: 80px;
    height: 6px;
    background: var(--accent-red);
    margin: 0 auto;
}

.section-title p {
    margin-top: 1.8rem;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.3rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image img {
    border-bottom: 12px solid var(--accent-red);
}

/* Styling for Information Page Icons */
.info-icon {
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10rem; /* Very large icon for feature area */
    padding: 3rem;
    border-radius: 5px;
    border-bottom: 12px solid var(--accent-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
    min-height: 400px; /* Ensure substantial height */
}

.info-icon:hover {
    transform: translateY(-5px);
}

.about-text h3 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.8rem;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Specific layout for Services Page: 2 top, 3 bottom */
.services-page-grid {
    grid-template-columns: repeat(6, 1fr);
}

.services-page-grid .service-card-link:nth-child(1),
.services-page-grid .service-card-link:nth-child(2) {
    grid-column: span 3;
}

.services-page-grid .service-card-link:nth-child(n+3) {
    grid-column: span 2;
}

/* Make link wrapper display block */
.service-card-link {
    display: block;
    color: inherit;
    height: 100%;
}

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid #990000; /* Dark red border */
    height: 100%; /* Ensure full height inside link */
    display: flex;
    flex-direction: column;
}

body.dark-mode .service-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: scale(1.05); /* Enlarge on hover */
    z-index: 10;
}

.service-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Pushes content to fill space */
}

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

.service-card p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* CTA Bar */
.cta-bar {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 7rem 0;
    position: relative;
}

.cta-bar::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--primary-blue);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

.cta-bar h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-bar p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #000;
    color: #888;
    padding: 6rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    letter-spacing: 1px;
    border-left: 4px solid var(--accent-red);
    padding-left: 15px;
}

.footer-col p, .footer-col li {
    font-size: 1.1rem;
    line-height: 1.8;
}

.copyright {
    border-top: 1px solid #222;
    padding-top: 2rem;
    text-align: center;
    font-size: 1rem;
}

/* Dark Mode Overrides */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6,
body.dark-mode .nav-links a:not(.btn-nav) {
    color: #fff;
}

body.dark-mode .service-card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

body.dark-mode header {
     box-shadow: 0 4px 20px rgba(255,255,255,0.05);
}

body.dark-mode .top-bar,
body.dark-mode footer h4 {
    color: #ffffff;
}

/* Dark Mode Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 20px; /* Space from phone number */
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 50px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  transition: .4s;
  width: 18px;
}

input:checked + .slider {
  background-color: var(--accent-red);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.mode-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1.5rem;
    }
    .nav-links a {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    header {
        height: auto; /* Allow header to grow */
        padding: 15px 0;
    }
    .navbar {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }
    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    .logo img {
        position: static; /* Remove absolute positioning on mobile */
        height: 100px; /* Smaller logo */
    }
    nav {
        margin-right: 0;
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
    .nav-links {
        justify-content: center;
        flex-wrap: wrap; /* Allow links to wrap if needed */
        margin: 0;
    }
    .theme-switch-wrapper {
        margin-top: 10px;
    }
    .hero-content h1 {
        font-size: 4rem; /* Smaller hero text */
    }
}

@media (max-width: 768px) {
    .top-bar .top-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .theme-switch-wrapper {
        margin-left: 0; /* Center it */
        margin-bottom: 5px;
    }

    .hero {
        height: auto;
        padding: 100px 0 100px;
        clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%); /* Less aggressive slant */
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.8rem; /* Mobile friendly size */
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 15px 30px;
    }

    .about-grid, 
    .services-grid, 
    .services-page-grid, 
    .gallery-grid {
        grid-template-columns: 1fr !important; /* Force single column */
    }
    
    .services-page-grid .service-card-link:nth-child(n) {
        grid-column: span 1; /* Reset spans */
    }
    
    .services-overlap {
        margin-top: -30px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-col h4 {
        border-left: none;
        border-bottom: 4px solid var(--accent-red);
        display: inline-block;
        padding-left: 0;
        padding-bottom: 5px;
    }

    /* Fix for long email button on mobile */
    .btn-email {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        line-height: 1.2;
        padding: 15px 20px !important;
    }
    .email-address {
        font-size: 0.9rem;
        word-break: break-all;
        margin-top: 5px;
        text-transform: lowercase; /* Usually looks better for emails */
    }
}