/* site_modern.css — Internal pages, forms, pagination, contact, gallery */

/* ============================================================
   INTERNAL HERO / PAGE HERO
   ============================================================ */
.internal-hero,
.page-hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 48, 135, 0.90), rgba(13, 27, 62, 0.88)),
                      var(--hero-image, url('../img/about_hero.png'));
    background-size: cover;
    background-position: center;
    padding: 110px 0 65px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.internal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 380px at 50% 0%, rgba(255, 255, 255, 0.06), transparent 65%);
    pointer-events: none;
}

.internal-hero .container {
    position: relative;
    z-index: 1;
}

.internal-hero h1 {
    font-size: 2.8rem;
    color: white !important;
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.internal-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.01em;
    line-height: 1.15;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.internal-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.95rem;
    opacity: 0.80;
    font-family: 'Open Sans', sans-serif;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
}

.breadcrumbs span {
    color: #ffb347;
    font-weight: 600;
}

.breadcrumbs .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.60);
    font-weight: 500;
}

.breadcrumbs .breadcrumb-current {
    color: #ffb347;
    font-weight: 700;
}

.page-hero .breadcrumbs {
    margin-top: 30px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 9px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.page-hero .breadcrumbs a {
    opacity: 0.85;
}

.page-hero .breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 56px;
}

.page-link {
    padding: 9px 16px;
    border-radius: 6px;
    background: var(--bg-light);
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid var(--border);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}

.page-link:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 48, 135, 0.20);
}

.page-link.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 48, 135, 0.20);
}

.page-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* ============================================================
   PRODUCT DETAILS & GALLERY
   ============================================================ */
.image-wrapper:hover #productImg {
    transform: scale(1.02);
}

.zoom-icon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-wrapper:hover .zoom-icon {
    transform: scale(1.1);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(13, 27, 62, 0.96);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.35s;
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 28px;
    right: 36px;
    color: #f1f1f1;
    font-size: 52px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.close-lightbox:hover {
    color: var(--accent);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
}

.contact-info-card {
    display: flex;
    gap: 18px;
    margin-bottom: 36px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 48, 135, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.map-container {
    margin-top: 48px;
    border-radius: 10px;
    overflow: hidden;
    height: 340px;
    box-shadow: var(--shadow);
}

.contact-form-card {
    background: var(--white);
    padding: 48px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-full {
    grid-column: span 2;
}

.form-input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 48, 135, 0.15);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}

.form-input::placeholder {
    color: rgba(90, 106, 122, 0.75);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: var(--ring);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--secondary);
    font-family: 'Open Sans', sans-serif;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--secondary);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.alert-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 80px 0;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: rgba(0, 48, 135, 0.15);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
}

/* ============================================================
   BRANCHES SECTION
   ============================================================ */
.branches-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.branch-card {
    background: var(--white);
    padding: 36px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.branch-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.15rem;
    background: rgba(0, 48, 135, 0.08);
    color: var(--primary);
}

.branch-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--secondary);
    font-family: 'Montserrat', sans-serif;
}

.branch-card-company {
    font-weight: 700;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Open Sans', sans-serif;
}

.branch-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.branch-meta-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
}

.branch-meta-row i {
    margin-top: 3px;
    color: var(--primary);
    opacity: 0.70;
    flex-shrink: 0;
}

.branch-meta-row a {
    color: var(--text-light);
}

.branch-meta-row a:hover {
    color: var(--primary);
}

/* ============================================================
   PROJECTS CTA BANNER
   ============================================================ */
.projects-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.projects-cta h2 {
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.projects-cta p {
    opacity: 0.88;
    font-family: 'Open Sans', sans-serif;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .internal-hero {
        padding: 90px 0 55px;
    }

    .internal-hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .form-full {
        grid-column: span 1;
    }

    .contact-form-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .internal-hero h1 {
        font-size: 2rem;
    }
}
