/* =========================
   GLOBAL
========================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow: visible;
    font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

h2 {
    margin-top: 0;
}

h3 {
    margin-left: 20px;
    color: #004f80;
    font-weight: 600;

}

a {
    white-space: nowrap;
}

section {
    scroll-margin-top: 90px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    /* key for vertical alignment */
    justify-content: space-between;
    padding: 5px 20px;
    margin: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.5rem;
    /* controls header text size */
    line-height: 1;
    /* prevents vertical stretching */
}

.logo img {
    height: 1.5em;
    /* matches text size dynamically */
    width: auto;
    /* keeps aspect ratio */
    display: block;
    /* removes inline image baseline gap */
}

.navbar nav a {
    margin-left: 20px;
    color: #004f80;
    font-weight: 600;
    text-decoration: none;
}

.btn-small {
    padding: 10px 15px;
    border-radius: 5px;
    background: #004f80;
    color: white !important;
}

/* =========================
   LAYOUT
========================= */

.layout {
    max-width: 1200px;
    margin: 10px auto;
    padding-top: 90px;

    display: grid;
    grid-template-columns: 1fr;
    position: relative;

    overflow: visible;
}

.content {
    width: 100%;
    max-width: 760px;
}

.content.home,
.content.fullwidth {
    width: 100%;
    display: contents;
}

.content section {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#home {
    grid-column: 1 / -1;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    position: fixed;
    top: 100px;
    right: calc((100% - 1200px) / 2);
    width: 360px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;

    overflow: visible;
}

.sidebar.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================
   PROFILE CARD
========================= */

.profile-card {
    position: sticky;
    top: 100px;

    padding: 20px;
    background: white;
    border-radius: 12px;

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

.profile-card img {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 50%;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 16px;

    background: #004f80;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.btn-primary {
    padding: 15px 25px;

    background: #004f80;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

button {
    width: fit-content;
    padding: 15px;

    background: #004f80;
    color: white;

    border: none;
    border-radius: 6px;

    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background: #0c3a63;
}

/* =========================
   HELPERS
========================= */

.container {
    margin: auto;
    padding: 20px;
}

/* =========================
   HERO
========================= */

.hero {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-evenly;
}

.hero-image img {
    width: 350px;
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0;
}

.hero-content h2 {
    margin-top: 10px;
    color: #004f80;
}

/* =========================
   COMPONENTS
========================= */

.stats {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat-card,
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card {
    min-width: 140px;
    padding: 20px;
}

.stat-card strong {
    display: block;
    font-size: 1.5rem;
}

.card {
    padding: 25px;
}

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

.testimonial {
    padding: 25px;
    margin-bottom: 20px;

    background: white;
    border-left: 5px solid #004f80;
}

/* =========================
   TABLES & FORMS
========================= */

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    border: 1px solid #ddd;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;

    padding-right: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 15px;
    align-items: center;
}

.form-row label {
    font-weight: 600;
    color: #0f4c81;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;

    border: 1px solid #d9e2ec;
    border-radius: 6px;

    font-size: 1rem;
}

.form-row textarea {
    resize: vertical;
}

.full-width {
    grid-template-columns: 180px 1fr;
}

.consent-row {
    grid-template-columns: 30px 1fr;
    align-items: start;
}

/* generic inputs */
input,
textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* =========================
   PHONE INPUT
========================= */

.phone-group {
    display: flex;
    flex: 1;
    gap: 10px;
}

.phone-group select {
    width: 180px;
}

.phone-group input {
    flex: 1;
}

#phoneNumber {
    padding-top: 12px;
    padding-left: 80px;
    width: auto;
}

/* =========================
   FOOTER
========================= */

footer {
    min-width: 390px;
    padding-bottom: 1em;

    background: #004f80;
    color: white;

    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-links {
    margin-top: 1em;
}

.footer-links a {
    margin: 0 10px;

    color: white;
    text-decoration: none;
}

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

/* =========================
   TOAST
========================= */

.toast {
    position: fixed;
    top: 15%;
    left: 50%;

    min-width: 280px;
    max-width: 75%;
    padding: 10px;

    background: #004f80;
    color: white;

    text-align: center;
    font-size: 16px;

    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    opacity: 0;
    pointer-events: none;

    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.5s ease;

    z-index: 9999;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.toast.success {
    background: #2e7d32;
}

.toast.error {
    background: #c62828;
}

.toast.warn {
    background: #ffaf00;
}

/* =========================
   MOBILE
========================= */

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

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .stats {
        flex-direction: column;
    }

    .nav-container {
        flex-direction: column;
    }

    .navbar nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-card {
        position: relative;
        top: auto;
    }

    .sidebar.visible {
        display: none;
    }

    .content {
        width: 100%;
        display: contents;
    }
}

@media (max-width: 768px) {

    .form-row,
    .consent-row {
        grid-template-columns: 1fr;
    }
}

/* =========================
  Project Showcase
========================= */
.projectImage1{
      width:100%; 
      max-width:1100px;
}
.projectImage1{
    width:100%; 
    max-width:1100px;
}
#showcase {
    contain: inline-size;
    /*contain: layout paint;*/
}

.project-slider {
    max-width: 900px;
    /* margin: 20px auto; */
    box-shadow: none !important;
    /*padding: 20px;*/
}

.project-slider h2 {
    padding: 20px;
}

/* OUTER CONTAINER DEFINES SAFE PADDING SPACE */
.slider-wrapper {
    padding: 0 25px;
    box-sizing: border-box;
}

/* INNER WINDOW NEVER KNOWS ABOUT OUTER SPACING */
.slider-window {
    width: 100%;
    overflow: hidden;

    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

/* TRACK */
.slider-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

/* SLIDES */
.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    /*contain: inline-size;*/
}

.slide img,
.slide-media {
    width: 100%;
    height: 420px;
    /*object-fit: cover;*/
    border-bottom: 1px solid #ddd;
}

/* TEXT */
.slide-text {
    padding: 18px;
}

/* DOTS */
.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 20px;
    /* 👈 critical fix */
    margin-top: 12px;
    position: relative;
    z-index: 10;
    height: 10px;

}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c7c7c7;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #333;
    transform: scale(1.2);
}

/* MOBILE */
@media (max-width: 600px) {
    .slider-wrapper {
        padding: 0 12px;
    }

    .slide img,
    .slide-media {
        height: 260px;
    }
}
/* =========================
 Cookies
========================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 360px;

    background: #111;
    color: #fff;
    padding: 16px;
    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;

    font-size: 14px;
    line-height: 1.4;
}

.cookie-hidden {
    display: none;
}

.cookie-link {
    display: inline-block;
    margin-top: 10px;
    color: #9ad;
    text-decoration: underline;
}

.cookie-dismiss {
    margin-top: 12px;
    width: 100%;
    padding: 8px;
    border: none;
    background: #2d6cdf;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.cookie-dismiss:hover {
    background: #1f56b8;
}