/* ============================================
   SOGETRA Haiti — Static Site Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1a1a1a;
    z-index: 1000;
    padding: 0 48px;
    display: flex;
    align-items: center;
    height: 70px;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Hidden nav state for home page */
nav.nav-hidden {
    transform: translateY(-100%);
}

nav.nav-transparent {
    background: transparent;
}

nav.nav-visible {
    transform: translateY(0);
    background: #1a1a1a;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 20px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    gap: 4px;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    color: #aaa;
    padding: 10px 18px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color 0.2s;
    display: block;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: #fff;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #252525;
    min-width: 270px;
    padding: 6px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: #aaa;
    padding: 11px 22px;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: #333;
    color: #fff;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 8px;
}

.lang-switcher > a {
    color: #aaa;
    padding: 10px 18px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lang-switcher > a:hover {
    color: #fff;
}

.lang-dropdown {
    min-width: 160px;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dropdown a.active {
    color: #e6aa41;
    background: #2a2a2a;
}

/* ============================================
   Hero — Home Page
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 0 24px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.hero h1 {
    font-size: 4.2rem;
    font-weight: 200;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 24px;
}

.hero .tagline {
    font-size: 0.95rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #e6aa41;
    margin-bottom: 28px;
    font-weight: 400;
}

.hero .subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    line-height: 1.9;
}

.hero .cta-btn {
    display: inline-block;
    margin-top: 48px;
    padding: 14px 38px;
    border: 1px solid #555;
    color: #aaa;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.hero .cta-btn:hover {
    border-color: #fff;
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(10px);
    }
    60% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* ============================================
   Page Header — Inner Pages
   ============================================ */
.page-header {
    height: 300px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    padding-top: 70px; /* nav offset */
}

.page-header h1 {
    font-size: 2.4rem;
    color: #fff;
    font-weight: 200;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.page-header .breadcrumb {
    color: #666;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    margin-top: 14px;
    text-transform: uppercase;
}

.page-header .breadcrumb a {
    color: #666;
    transition: color 0.2s;
}

.page-header .breadcrumb a:hover {
    color: #fff;
}

.page-header .breadcrumb span {
    color: #e6aa41;
}

/* Page Header with Background Image */
.page-header.with-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header.with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.page-header.with-image h1,
.page-header.with-image .breadcrumb {
    position: relative;
    z-index: 1;
}

/* Section Images */
.section-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 32px;
    border-radius: 4px;
}

.section-image-wide {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 40px 0;
}

/* ============================================
   Content Sections
   ============================================ */
.section {
    padding: 80px 48px;
    max-width: 920px;
    margin: 0 auto;
}

.section-alt {
    background: #f7f7f7;
}

.section-alt .section {
    max-width: 920px;
}

.section h2 {
    font-size: 1.7rem;
    font-weight: 300;
    color: #5b2802;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.accent-line {
    width: 48px;
    height: 2px;
    background: #e6aa41;
    margin-bottom: 32px;
}

.section p {
    color: #555;
    line-height: 1.95;
    margin-bottom: 18px;
    font-size: 0.93rem;
}

.section p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Home — Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 44px;
}

.service-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 32px 30px;
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.service-card h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: #5b2802;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.service-card p {
    font-size: 0.87rem;
    color: #666;
    line-height: 1.75;
    margin-bottom: 0;
}

.service-card .card-link {
    display: inline-block;
    margin-top: 18px;
    color: #e6aa41;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    transition: color 0.2s;
}

.service-card .card-link:hover {
    color: #c48a30;
}

/* ============================================
   Service Pages — Content List
   ============================================ */
.content-list {
    list-style: none;
    margin: 24px 0 28px;
}

.content-list li {
    padding: 9px 0 9px 28px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

.content-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #e6aa41;
    font-weight: 300;
}

/* ============================================
   Projects Grid
   ============================================ */
.projects-intro {
    margin-bottom: 48px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.project-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 26px 24px;
    transition: box-shadow 0.3s;
}

.project-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.project-card .project-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.project-card .project-year {
    font-size: 0.7rem;
    color: #e6aa41;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-card .project-category {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.project-card h3 {
    font-size: 0.93rem;
    font-weight: 600;
    color: #5b2802;
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-card p {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.05rem;
    color: #5b2802;
    margin-bottom: 28px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-info .info-item {
    margin-bottom: 22px;
}

.contact-info .info-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e6aa41;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info .info-value {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info .info-value a {
    color: #555;
    transition: color 0.2s;
}

.contact-info .info-value a:hover {
    color: #e6aa41;
}

/* Form */
.success-message {
    display: none;
    background: #fff8ec;
    border-left: 3px solid #e6aa41;
    padding: 18px 22px;
    color: #e6aa41;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.success-message.visible {
    display: block;
}

.contact-form label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 7px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    transition: border-color 0.25s;
    margin-bottom: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e6aa41;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 15px 42px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
    font-weight: 600;
}

.contact-form button:hover {
    background: #e6aa41;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #1a1a1a;
    color: #666;
    padding: 64px 48px 28px;
    margin-top: 0;
}

.footer-content {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 22px;
    font-weight: 400;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 18px;
}

.footer-col p {
    font-size: 0.82rem;
    color: #666;
    line-height: 2;
    margin-bottom: 0;
}

.footer-col .footer-links {
    list-style: none;
}

.footer-col .footer-links li a {
    display: block;
    font-size: 0.82rem;
    color: #666;
    line-height: 2.2;
    transition: color 0.2s;
}

.footer-col .footer-links li a:hover {
    color: #fff;
}

.footer-col .contact-email a {
    color: #666;
    transition: color 0.2s;
}

.footer-col .contact-email a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 920px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid #2a2a2a;
    font-size: 0.72rem;
    color: #4a4a4a;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links > li > a {
        padding: 14px 24px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    /* Mobile dropdown - show on tap */
    .dropdown-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        background: #222;
        display: none;
        padding: 0;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 24px 12px 40px;
        font-size: 0.8rem;
    }

    .lang-switcher {
        margin-left: 0;
    }

    .lang-switcher > a {
        padding: 14px 24px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .lang-dropdown {
        position: static;
        min-width: 100%;
        box-shadow: none;
        background: #222;
        display: none;
        padding: 0;
    }

    .lang-switcher.open .lang-dropdown {
        display: block;
    }

    .lang-dropdown a {
        padding: 12px 24px 12px 40px;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2.6rem;
        letter-spacing: 5px;
    }

    .hero-logo {
        max-width: 240px;
    }

    .hero .tagline {
        letter-spacing: 3px;
        font-size: 0.85rem;
    }

    .hero .subtitle {
        font-size: 0.88rem;
        padding: 0 16px;
    }

    .section {
        padding: 60px 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    footer {
        padding: 48px 24px 24px;
    }

    .page-header {
        height: 220px;
        padding-top: 70px;
    }

    .page-header.with-image {
        height: 300px;
    }

    .page-header h1 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .section-image {
        height: 220px;
    }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 480px) {
    nav {
        height: 60px;
        padding: 0 16px;
    }

    .nav-links {
        top: 60px;
    }

    .nav-logo img {
        height: 16px;
    }

    .hero h1 {
        font-size: 1.9rem;
        letter-spacing: 3px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .hero .tagline {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero .subtitle {
        font-size: 0.82rem;
        line-height: 1.8;
    }

    .hero .cta-btn {
        padding: 12px 28px;
        font-size: 0.7rem;
    }

    .section {
        padding: 48px 20px;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        height: 180px;
        padding-top: 60px;
    }

    .page-header.with-image {
        height: 250px;
    }

    .page-header h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .page-header .breadcrumb {
        font-size: 0.65rem;
    }

    .section-image {
        height: 180px;
    }

    .contact-form button {
        width: 100%;
    }
}
