/* =========================================
   SGCL Corporate Website Styles
   Theme: Navy + Orange
   ========================================= */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0A2540;
    --navy-light: #1B3A5B;
    --navy-dark: #061a2e;
    --orange: #FF6B35;
    --orange-light: #FF8C5A;
    --orange-dark: #E55A2B;
    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --text: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 37, 64, 0.10);
    --shadow-lg: 0 10px 30px rgba(10, 37, 64, 0.15);
    --container: 1200px;
    --radius: 12px;
    --radius-sm: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
        'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--orange);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--navy);
}

.btn-light {
    background: white;
    color: var(--navy);
    border-color: white;
}

.btn-light:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    transform: translateY(-2px);
}

/* ---- Header / Nav ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-name {
    color: white;
}

.brand-name span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 22px !important;
    background: var(--orange);
    color: white !important;
    border-radius: 999px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--orange-light) !important;
    color: white !important;
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--orange-light);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.25);
}

.hero h1 {
    color: white;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--orange);
}

.hero p.lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: var(--radius);
}

.hero-stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.hero-stat-card {
    text-align: center;
}

.hero-stat-card + .hero-stat-card {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 24px;
    margin-top: 4px;
}

.hero-stat-card:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 24px;
    margin-top: 4px;
}

/* ---- Sections ---- */
.section {
    padding: 96px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-block;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---- About / Corporate Data ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-copy h2 {
    margin-bottom: 20px;
}

.about-copy p {
    color: var(--text);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.pillar {
    background: var(--bg-soft);
    border-left: 4px solid var(--orange);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
}

.pillar h4 {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 4px;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.facts-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.facts-card-header {
    background: var(--navy);
    color: white;
    padding: 24px 28px;
}

.facts-card-header h3 {
    color: white;
    margin-bottom: 4px;
}

.facts-card-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0;
}

.facts-list {
    padding: 8px 0;
}

.fact-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
}

.fact-row:last-child {
    border-bottom: none;
}

.fact-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fact-value {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ---- Services ---- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-soft);
}

.service-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.30);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
}

.service-card ul {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: auto;
}

.service-card ul li {
    padding: 6px 0 6px 22px;
    position: relative;
}

.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
}

/* ---- Capabilities ---- */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cap-tile {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.cap-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--orange);
    transition: height var(--transition);
}

.cap-tile:hover {
    border-color: var(--navy);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cap-tile:hover::before {
    height: 100%;
}

.cap-num {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.cap-tile h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cap-tile p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Projects ---- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--orange);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.project-year {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.project-card h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Credentials ---- */
.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.credential-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.credential-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.credential-card img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    background: var(--bg-soft);
    padding: 16px;
}

.credential-caption {
    text-align: center;
    padding: 16px;
    background: var(--navy);
    color: white;
    font-weight: 600;
}

/* ---- Lightbox ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: white;
    color: var(--navy);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-card {
    background: var(--navy);
    color: white;
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0.15;
}

.contact-info-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 24px;
    position: relative;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    position: relative;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--orange-light);
    font-size: 1.1rem;
}

.contact-item-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.contact-item-value {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item-value a {
    color: white;
}

.contact-item-value a:hover {
    color: var(--orange-light);
}

.contact-form {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 24px;
    color: var(--navy);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
    background: white;
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    background: var(--navy);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

.form-submit:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

/* ---- Footer ---- */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-brand {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand span {
    color: var(--orange);
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.footer p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer ul a:hover {
    color: var(--orange-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .credentials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 64px 0;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links a {
        font-size: 1rem;
    }
    .menu-toggle {
        display: block;
    }
    .nav-cta {
        align-self: flex-start;
    }
    .service-grid,
    .cap-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .about-pillars {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        padding: 20px;
    }
    .hero-stat-num {
        font-size: 1.75rem;
    }
    .contact-info-card,
    .contact-form {
        padding: 28px;
    }
    .hero {
        padding: 100px 0 60px;
    }
}
