:root {
    --primary: #0d2238;
    --accent-royal: #0076fe;
    --accent-cyan: #00b4d8;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #475569;
}

/* 1. Viewport & Base Layout */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.8;
    color: var(--text-muted);
    background-color: var(--bg-light);
    font-size: 17px;
    width: 100%;
    position: relative;
    min-width: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    width: 100%;
    padding: 60px 0;
    overflow-x: hidden;
}

.content-section {
    width: 100%;
    padding: 80px 0;
    overflow-x: hidden;
}

/* 2. Header & Navigation (Exact Original Desktop Layout matching big2.responsive.png) */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 80px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo img {
    max-height: 55px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
    margin-right: 2rem;
}

nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav .nav-links li a {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav .nav-links li a:hover {
    color: var(--accent-royal);
}

.header-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
}

.header-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.header-action-btn:hover {
  background: #004b87 !important;
  color: #ffffff !important;
}

.phone-tooltip-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.phone-tooltip {
  display: none !important;
  position: absolute !important;
  top: 120% !important;
  right: 0 !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  z-index: 9999 !important;
}

.phone-tooltip-wrapper:hover .phone-tooltip {
  display: block !important;
}

/* Mobile Hamburger Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    gap: 5px;
    z-index: 10001;
    flex-shrink: 0;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 3. Typography & Spacing with clamp() */
h1 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 2.75rem);
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 1.2rem;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(1.4rem, 3.5vw + 0.3rem, 2.25rem);
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1.2rem;
    overflow-wrap: break-word;
}

h3 {
    font-size: clamp(1.15rem, 2.5vw + 0.25rem, 1.5rem);
    line-height: 1.35;
    color: var(--primary);
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

p {
    margin-bottom: 1.5rem;
    color: #334155;
    font-size: clamp(0.95rem, 1vw + 0.4rem, 1.05rem);
    line-height: 1.75;
    overflow-wrap: break-word;
}

.lead {
    font-size: clamp(1.05rem, 1.8vw + 0.4rem, 1.25rem);
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

/* Heroes */
.hero {
    background: linear-gradient(135deg, #0d2238 0%, #153e6b 100%);
    color: #ffffff;
    padding: clamp(60px, 10vw, 100px) 0;
    text-align: center;
    width: 100%;
}

.hero h1 { 
    color: #ffffff !important; 
    font-weight: 700; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.4); 
    font-size: clamp(1.8rem, 5vw + 0.5rem, 3rem); 
    line-height: 1.2;
    margin-bottom: 20px; 
    text-align: center;
    overflow-wrap: break-word;
}

.hero p { 
    color: #e2e8f0 !important; 
    font-size: clamp(1rem, 2.5vw + 0.3rem, 1.25rem); 
    max-width: 700px; 
    margin: 0 auto 30px; 
    text-align: center;
    padding: 0 10px;
    line-height: 1.6;
}

/* 4. Grids & Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    padding: 40px 0;
    width: 100%;
}

.card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(1.25rem, 3.5vw, 2rem);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,118,254,0.12);
}

.about-section { 
    padding: clamp(3rem, 6vw, 5rem) 1rem; 
    width: 100%;
}

.about-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 { 
    font-size: clamp(1.6rem, 3.5vw + 0.4rem, 2.5rem); 
    color: var(--primary); 
    margin-bottom: 1.5rem; 
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
}

.feature-card:hover { transform: translateY(-4px); }

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper i { font-size: 1.5rem; color: var(--accent-royal); }

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-royal);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    max-width: 100%;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    color: white;
}

.site-footer {
    background: var(--primary);
    color: #ffffff !important;
    padding: clamp(36px, 6vw, 50px) 0;
    text-align: center;
    width: 100%;
}

.site-footer p { color: #cbd5e1 !important; }
.site-footer-brand { color: #ffffff !important; font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.25rem;
    margin: 0 10px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.social-links a:hover { color: var(--accent-royal); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
}

.gallery-image-wrapper {
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-card-note {
    padding: 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.contact-form .form-group.full-width {
    grid-column: span 2;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
}

/* Mobile & Tablet Media Queries (Auto-switch breakpoint below 768px) */
@media (max-width: 768px) {
    .site-header {
        height: auto;
        min-height: 70px;
        padding: 0 1rem;
    }

    .header-container {
        padding: 0.5rem 0;
    }

    .logo img {
        max-height: 42px !important;
        margin-right: 0 !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #eef2f6;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 10000;
    }

    nav.active,
    nav .nav-links.active {
        max-height: 380px;
        opacity: 1;
        visibility: visible;
    }

    nav .nav-links {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0.75rem 1.25rem 1.25rem;
        gap: 0;
        margin: 0;
    }

    nav .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    nav .nav-links li:last-child {
        border-bottom: none;
    }

    nav .nav-links li a {
        display: flex;
        align-items: center;
        padding: 12px 8px;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-dark);
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    nav .nav-links li a:hover,
    nav .nav-links li a.active {
        color: var(--accent-royal);
        background-color: #f8fafc;
        padding-left: 14px;
    }

    .header-actions {
        gap: 8px !important;
    }

    .header-action-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .header-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .phone-tooltip {
        display: none !important;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-grid,
    .feature-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form .form-group.full-width {
        grid-column: span 1;
    }

    main {
        padding: 30px 0;
    }

    .content-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .site-header {
        padding: 0 0.75rem;
    }

    .logo img {
        max-height: 38px !important;
    }

    .card {
        padding: 1.25rem 1rem;
    }
}
