/* General Body Styles */
:root {
    --bg: #f8fafb;
    --muted: #f4f7f6;
    --text: #222222;
    --primary: #0077b6;
    --accent: #2bb673;
    --footer-bg: #023047;
    --footer-accent: #8ecae6;
}
html {
    scroll-behavior: smooth;
}

.announcement {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 40px;
    padding: 8px 0;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(43,182,115,1), rgba(0,119,182,1));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 1100;
}
.announcement p {
    margin: 0;
    padding: 0 10px;
    text-align: center;
}
.announcement-close {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    opacity: 0.8;
}
.announcement-close:hover {
    opacity: 1;
}

/* When banner is dismissed */

body.banner-closed .announcement {
    display: none;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--muted);
    color: var(--text);
    line-height: 1.6;
    padding-top: 0; /* removed fixed nav offset */
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Navigation */
nav {
    background: #ffffff;
    padding: 0.5em 0;
    position: sticky; /* sticky instead of fixed */
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.nav-logo .logo {
    width: 200px;
    display: block;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 700;
    font-size: 1.1em;
}

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

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 15px;
    background-color: rgba(255, 255, 255, 0.98);
    min-width: 280px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Niewidzialny "most" zapobiegający znikaniu menu przy zjeżdżaniu myszką */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
}
.nav-dropdown:hover .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
    transition: all 0.2s ease;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active {
    color: var(--primary);
    background-color: rgba(0, 119, 182, 0.05);
    padding-left: 1.8rem; /* Delikatne przesunięcie tekstu (UX micro-interaction) */
}

/* Main Content */
main.container {
    padding: 2em 0;
}
main.home-main {
    padding: 0; /* Let sections handle their own padding for full-bleed backgrounds */
}

/* Base button styles & animations */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Hero and placeholders */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}
.hero-content h1 {
    font-size: 2.2rem;
    margin: 0 0 .5rem;
}
.hero-sub {
    color: var(--text);
    margin-bottom: 1rem;
}
.hero-ctas .btn {
    margin-right: .5rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--accent); color: #fff; }
.hero-placeholder {
    width: 100%;
    border-radius: 8px;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

/* Generic image placeholder used in service cards */
.img-placeholder {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin-bottom: 1rem;
}

section {
    padding: 2em 0;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .nav-logo .logo { width: 140px; }
  .img-placeholder { height: 120px; }
  .hero-placeholder { min-height: 180px; }
}

.page-header h1,
.section-preview h2,
.why h2 {
    color: var(--primary);
    font-size: 2.2em;
    margin-bottom: 1em;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-left { padding-right: 1rem; }
.about-left .lead { font-size: 1.05rem; margin-bottom: 1rem; }
.about-right .panel { background: #ffffff; padding: 1rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.05); margin-bottom: 1rem; }
.about-right .panel h3 { margin: 0 0 .5rem; color: var(--primary); }

/* Laboratory panel highlight */
.panel.lab-panel { background: linear-gradient(135deg, rgba(43,182,115,0.06), rgba(0,119,182,0.04)); border-left: 4px solid var(--accent); }
.panel.lab-panel p, .panel.lab-panel li { color: #08313a; }
.panel.lab-panel a.read-more { display: inline-block; margin-top: 0.6rem; padding: 0.4rem 0.8rem; background: var(--primary); color: #fff; border-radius: 6px; text-decoration: none; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .page-header h1, .section-preview h2, .why h2 { font-size: 1.8em; }
}

.tagline {
    text-align: center;
    font-size: 1.8em;
    color: var(--primary);
    margin: 2em 0;
    font-weight: 300;
}

.services-grid {
    display: block;
}

.service-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 2.5rem auto;
    max-width: 1200px; /* constrain row width and center */
}

.service-row.alt {
    flex-direction: row-reverse;
}

.service-img {
    flex: 0 0 60%; /* make image column larger for visual balance */
    max-width: 60%;
}

.service-img img, .service-img.svg {
    width: 100%;
    height: auto;
    display: block;
}

.service-text {
    flex: 0 0 40%;
    max-width: 40%;
}

@media (max-width: 1000px) {
    .service-row { max-width: 900px; }
}

@media (max-width: 800px) {
    .service-row, .service-row.alt {
        flex-direction: column;
    }
    .service-img, .service-text {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

.service-text h2,
.service-text h3 {
    margin-top: 0;
    color: var(--primary);
}

.service-category {
    background: #ffffff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.service-category h3 {
    color: var(--primary);
    font-size: 1.4em;
    margin-top: 0;
}

.service-category ul {
    padding-left: 20px;
}

.service-category ul li {
    margin-bottom: 0.5em;
}

/* Why / FAQ */
.why { padding: 2em 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:1.5rem; margin-bottom:1.5rem; }
.why-item { background: #ffffff; padding: 1.2rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); display:flex; gap:1rem; align-items:flex-start; }
.why-icon { width:44px; height:44px; flex:0 0 44px; color:var(--primary); }
.why-icon svg, .why-icon use { width:100%; height:100%; }
.why-item .why-content { min-width:0; }
.why-item h4 { margin: 0 0 .5rem; color: var(--primary); }
.faq { background: rgba(255,255,255,0.03); padding: 1rem; border-radius: 8px; }
.faq h3 { margin-top: 0; color: var(--primary); }
.faq dl dt { font-weight: 700; margin-top: .8rem; }
.faq dl dd { margin: .25rem 0 0 0; color: var(--text); }

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 2.5em 0 0; /* removed bottom padding to allow footer-bottom to stick to bottom */
    margin-top: 1em; /* reduce the gap between content and footer */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr; /* wider contact column to avoid wrapping */
    gap: 2em;
    text-align: left;
    align-items: start; /* align columns to top */
}

.map-info { align-self: start; }
.map-info .img-placeholder {
    width: 180px;
    height: auto;
    margin: 0 0 1rem 0; /* align top instead of centering */
    display: block;
    align-self: start;
}

.address-info h3 { margin-top: 0; }

/* prevent long phone lines from wrapping */
.contact-info .phone { white-space: nowrap; display: inline-block; }

@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .map-info .img-placeholder { margin: 0 0 1rem 0; width: 100%; }
    .service-row { max-width: 100%; padding: 0 1rem; gap: 1rem; }
    .service-text { padding: 0; }
    .nav-logo .logo { width: 160px; }
    .container { width: 92%; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }

    /* Header / nav */
    nav { top: 0; }
    .nav { padding: 0.35em 0; }
    /* Hide normal nav-links and show hamburger */
    nav .nav-toggle {
        display: block !important;
        background: transparent; /* removed blue background per request */
        color: var(--primary);
        padding: 0.35rem 0.6rem;
        border-radius: 6px;
        font-size: 1.2rem;
        line-height: 1;
        border: 1px solid rgba(0,0,0,0.06); /* subtle border for visibility */
        cursor: pointer;
        z-index: 1010;
    }
    nav .nav-toggle:hover { background: rgba(0,0,0,0.04); }
    nav .nav-toggle:focus { outline: 2px solid rgba(0,119,182,0.12); outline-offset: 2px; }
    nav .nav-links { display: none; }
    nav.open .nav-links { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; background: #fff; position: absolute; top: 100%; right: 0; left: 0; padding: 1rem 0; box-shadow: 0 6px 18px rgba(0,0,0,0.12); z-index: 1001; }
    .nav-links a { margin: 0; font-size: 1rem; color: var(--text); }
    
    /* Mobile nav dropdown */
    .nav-dropdown { width: 100%; text-align: center; }
    .nav-dropdown-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: column;
        position: static;
        box-shadow: none;
        background: rgba(0, 119, 182, 0.03);
        border: none;
        padding: 0.5rem 0;
        border-radius: 8px;
        margin: 0.5rem 1rem 0;
        min-width: auto;
        transform: none;
        animation: none;
    }
    .nav-dropdown-menu a {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    /* Announcement bar smaller on mobile */
    .announcement { min-height: 36px; height: auto; font-size: 0.95rem; }

    /* Body offset for smaller header */
    body { padding-top: 0; }

    /* Hero adjustments */
    .hero { grid-template-columns: 1fr; padding: 1rem 0; }
    .hero-placeholder { min-height: 140px; }
    .hero-content h1 { font-size: 1.4rem; }
    .hero-sub { font-size: 0.95rem; }

    /* About / services */
    .about-grid { grid-template-columns: 1fr; }
    .service-row, .service-row.alt { flex-direction: column; gap: .75rem; }
    .service-img { flex: none; width: 100%; max-width: 100%; }
    .service-text { flex: none; width: 100%; max-width: 100%; }
    .service-text h3 { font-size: 1.05rem; }

    /* Footer compact */
    footer { padding: 1.5em 0; }
    footer h3 { font-size: 1.15em; }
    footer p { font-size: 0.95rem; }
    .map-info .img-placeholder { width: 120px; }

    /* Reduce large gaps */
    .tagline { margin: 1rem 0; }
}

/* Nav toggle (hamburger) - hidden on desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.25rem 0.5rem;
}

/* when nav is open, ensure nav sits above other content */
nav.open { z-index: 1002; }

footer h3 {
    font-size: 1.5em;
    margin: 0; /* remove top margin to align headings */
    margin-bottom: 0.75em;
    color: var(--footer-accent);
}

/* Ensure each footer column uses consistent vertical layout */
.footer-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
}

footer p {
    font-size: 1em;
    margin: 0;
    padding: 0;
}
footer a {
    color: var(--footer-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer strong {
    color: #ffffff;
}

/* ===== Multi-page layout ===== */

/* Button enhancements */
.btn {
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary:hover { background: #006499; }
.btn-secondary:hover { background: #25a066; }

/* Page hero banner (for subpages) */
.page-hero {
    background: linear-gradient(135deg, #023047 0%, var(--primary) 100%);
    color: #fff;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}
.page-hero h1 {
    font-size: 2.6em;
    margin: 0 0 0.75rem;
    color: #fff;
}
.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section preview (landing page) */
.section-preview {
    text-align: center;
    padding: 2rem 0;
}
.section-preview .lead {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

/* Services preview grid */
.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
a.preview-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}
a.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.preview-card .card-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin: 0 auto 1rem;
    display: block;
}
.preview-card h3 {
    color: var(--primary);
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}
.preview-card p {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), #023047);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}
.cta-banner h2 {
    color: #fff;
    font-size: 2rem;
    margin: 0 0 0.5rem;
}
.cta-banner p {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}
.cta-banner .btn-primary {
    background: #fff;
    color: var(--primary);
}
.cta-banner .btn-primary:hover {
    background: #e6eef0;
}
.cta-banner .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.cta-banner .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Contact page grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
.contact-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.contact-card h2 {
    color: var(--primary);
    margin: 0 0 1rem;
    font-size: 1.4em;
}
.contact-card p { margin: 0.4rem 0; }
.contact-card a { color: var(--primary); }

/* FAQ - support h2 heading */
.faq h2 { margin-top: 0; color: var(--primary); }

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e6eef0;
}
th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* Multi-page responsive */
@media (max-width: 800px) {
    .page-hero h1 { font-size: 2em; }
    .page-hero { padding: 2.5rem 1.5rem; }
    .services-preview-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 2rem 1rem; }
}

@media (max-width: 600px) {
    .services-preview-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.6em; }
    .page-hero p { font-size: 1rem; }
}

/* ===== About page — premium design ===== */

/* (Removed .about-hero, using .page-hero instead) */

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0 0 3rem;
}
.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* About content sections */
.about-section {
    padding: 2rem 0;
}
.about-section h2 {
    color: var(--primary);
    font-size: 1.8em;
    margin: 0 0 1rem;
}
.about-section .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    color: #333;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-top: 3px solid var(--primary);
    transition: transform 0.3s ease;
}
.value-card:hover {
    transform: translateY(-3px);
}
.value-card h3 {
    color: var(--primary);
    margin: 0 0 0.75rem;
    font-size: 1.2em;
}
.value-card p {
    margin: 0;
    color: #444;
    line-height: 1.7;
}

/* Scope list */
.scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2.5rem;
    margin: 1.5rem 0;
}
.scope-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0;
    font-size: 1rem;
    color: #333;
}
.scope-check {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Lab highlight */
.lab-highlight {
    background: linear-gradient(135deg, rgba(43,182,115,0.08), rgba(0,119,182,0.06));
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.lab-highlight h3 {
    color: var(--primary);
    margin: 0 0 0.5rem;
    font-size: 1.3em;
}
.lab-highlight p {
    margin: 0;
    color: #333;
    line-height: 1.7;
}

/* About page responsive */
@media (max-width: 800px) {
/* media queries handled above */
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .scope-grid { grid-template-columns: 1fr; }
    .lab-highlight { flex-direction: column; text-align: center; padding: 1.5rem; }
}

@media (max-width: 600px) {
/* media queries handled above */
    .stats-bar { grid-template-columns: 1fr; gap: 1rem; }
    .stat-item { padding: 1rem; }
    .values-grid { grid-template-columns: 1fr; }
}

/* ===== Dynamic Landing Page Overhaul ===== */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Alternating backgrounds */
.bg-white { background-color: #ffffff; padding: 4rem 0; }
.bg-light { background-color: var(--muted); padding: 4rem 0; }
.dark-section { background-color: #023047; padding: 5rem 0; color: #fff; }

.dark-section h2 { color: #fff; margin-bottom: 2rem; }

/* Badges for section headers */
.badge {
    display: inline-block;
    background: rgba(0,119,182,0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.badge-light {
    background: rgba(255,255,255,0.1);
    color: #8ecae6;
}

/* Overlay Hero */
.overlay-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(2, 48, 71, 0.95), rgba(0, 119, 182, 0.85)), url('../images/hero-industrial.webp') center/cover no-repeat;
    padding: 7rem 0 6rem;
    color: #fff;
    text-align: center;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out forwards;
}
.overlay-hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}
.overlay-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}
.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--primary);
}
.btn-glow {
    box-shadow: 0 4px 15px rgba(43,182,115,0.4);
}
.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(43,182,115,0.6);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Glassmorphism for Dark Section Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}
.glass-card h4 { color: #8ecae6 !important; }
.glass-card .why-icon { color: #fff; }

/* Wrapper for CTA banner to allow background */
.cta-banner-wrapper {
    padding: 4rem 0;
}

/* Service Preview Card animations */
a.preview-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
a.preview-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}
a.preview-card:hover::before {
    transform: scaleX(1);
}

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

@media (max-width: 800px) {
    .overlay-hero h1 { font-size: 2.2rem; }
    .overlay-hero { padding: 4rem 1rem; }
}

/* ===== Contact Form & Layout Overhaul ===== */

.w-100 { width: 100%; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 4rem;
}
.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-card, .form-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-top: 3px solid var(--primary);
}
.contact-card h2, .form-card h2 {
    color: var(--primary);
    margin: 0 0 1.5rem;
    font-size: 1.5em;
}

/* Form Styles */
.modern-form .form-group {
    margin-bottom: 1.25rem;
}
.modern-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}
.modern-form input, .modern-form textarea, .modern-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.modern-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
    padding-right: 2.5rem;
}
.modern-form input:focus, .modern-form textarea:focus, .modern-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
    background: #fff;
}
.modern-form textarea {
    resize: vertical;
}

/* FAQ Cards */
.faq-section {
    padding: 2rem 0 4rem;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.faq-card {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-left: 4px solid var(--accent);
}
.faq-card h4 {
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-size: 1.15rem;
}
.faq-card p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ===== Premium Service Cards (services.html) ===== */

.premium-services .service-row {
    margin: 4rem auto;
}
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
}
.premium-category {
    padding: 2.5rem;
    border-top: 4px solid var(--primary);
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}
.cat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.cat-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    flex-shrink: 0;
}
.premium-category h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary);
}
.premium-category .lead {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.premium-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.premium-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #444;
    line-height: 1.5;
}
.premium-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

@media (min-width: 801px) {
    /* Overlapping effect on desktop */
    .premium-services .service-row { display: flex; align-items: flex-start; gap: 0; }
    .premium-services .service-img { flex: 0 0 55%; max-width: 55%; z-index: 1; margin-top: 2rem; }
    .premium-services .service-text { flex: 0 0 50%; max-width: 50%; margin-left: -5%; z-index: 2; }
    
    .premium-services .service-row.alt .service-text { margin-left: 0; margin-right: -5%; z-index: 3; }
    .premium-services .service-row.alt .service-img { z-index: 1; }
}

@media (max-width: 800px) {
    .premium-category { padding: 1.5rem; }
    .cat-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
.footer-bottom { background: #011d2c; padding: 1.5rem 0; margin-top: 3rem; font-size: 0.9rem; color: #8ecae6; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom p { margin: 0; }

/* Custom Checkbox */
.modern-form .custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    user-select: none;
}
.custom-checkbox-input {
    display: none;
}
.custom-checkbox-box {
    width: 24px;
    height: 24px;
    border: 2px solid #b5c4cb;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modern-form .custom-checkbox-label:hover .custom-checkbox-box {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}
.modern-form .custom-checkbox-label span:last-child {
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.custom-checkbox-input:checked ~ span:last-child {
    opacity: 1;
    color: var(--primary);
}
.custom-checkbox-input:checked + .custom-checkbox-box {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
    transform: scale(1.05);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; }
