/* ============================================================
   DUMI SURF — About Us Page CSS
   ============================================================ */
@import url('shared.css');

/* ================================================================
   GALLERY MODAL
================================================================ */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: #fff;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.modal-gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #f1f5f9;
}

.modal-gallery-item:hover {
    transform: scale(1.05);
}

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .gallery-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 24px 20px;
    }
    
    .modal-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* ----------------------------------------------------------------
   Shared section helpers
---------------------------------------------------------------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    text-align: center;
}

.section-title em {
    font-style: italic;
    color: var(--primary);
}

.section-sub {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

/* ================================================================
   HERO
================================================================ */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, var(--ocean) 0%, #014f86 50%, var(--primary) 100%);
    padding: 130px 40px 100px;
    text-align: center;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 30% 40%, rgba(0, 150, 199, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 80% 80%, rgba(144, 224, 239, 0.10) 0%, transparent 60%);
    pointer-events: none;
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 30px;
    padding: 7px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 28px;
}

.about-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.about-hero-title em {
    font-style: italic;
    color: var(--primary-light);
}

.about-hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 52px;
}

/* Stat row */
.about-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 24px 40px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.ahs-item {
    flex: 1;
    min-width: 110px;
    padding: 4px 24px;
    text-align: center;
}

.ahs-num {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.ahs-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ahs-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.about-hero-waves {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
}

.about-hero-waves svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ================================================================
   GALLERY
================================================================ */
.gallery-section {
    padding: 100px 40px;
    background: var(--bg);
}

.gallery-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 260px 260px;
    gap: 14px;
    margin-top: 56px;
}

/* 1: Large feature — cols 1-7, row 1 */
.gallery-item:nth-child(1) {
    grid-column: 1 / 8;
    grid-row: 1;
}

/* 2: Tall side — cols 8-12, rows 1-2 */
.gallery-item:nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
}

/* 3-5: Small tiles row 2, cols 1-7 in three equal parts */
.gallery-item:nth-child(3) {
    grid-column: 1 / 4;
    grid-row: 2;
}

.gallery-item:nth-child(4) {
    grid-column: 4 / 6;
    grid-row: 2;
}

.gallery-item:nth-child(5) {
    grid-column: 6 / 8;
    grid-row: 2;
}

/* 6: shown below on tablet, hidden desktop (already inside tall column space) */
.gallery-item:nth-child(6) {
    display: none;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 62, 138, 0.75) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 18px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* ================================================================
   OUR STORY
================================================================ */
.story-section {
    padding: 100px 40px;
    background: var(--surface);
}

.story-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image-col {
    position: relative;
}

.story-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.story-img-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.story-img-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 28px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(0, 119, 182, 0.35);
    border: 3px solid #fff;
}

.story-img-badge .sib-num {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.story-img-badge .sib-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 5px;
    line-height: 1.4;
}

/* Text column */
.story-text-col .section-eyebrow {
    margin-bottom: 16px;
}

.story-para {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.78;
    margin-bottom: 18px;
}

.story-values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sv-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.sv-item:hover {
    background: var(--bg2);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xs);
}

.sv-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-pale);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.sv-body strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.sv-body span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ================================================================
   WHAT WE OFFER
================================================================ */
.offer-section {
    padding: 100px 40px;
    background: var(--bg);
}

.offer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.offer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-mid));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.offer-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.offer-card:hover::before {
    transform: scaleX(1);
}

.oc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-pale);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.offer-card:hover .oc-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.offer-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.offer-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ================================================================
   LOCATION
================================================================ */
.location-section {
    background: linear-gradient(135deg, var(--ocean), #014f86 50%, var(--primary));
    position: relative;
    overflow: hidden;
}

.location-inner {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.location-text {
    padding: 80px 60px 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    font-weight: 500;
}

.lf-item svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.location-image {
    position: relative;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

/* diagonal divider */
.location-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--ocean) 0%, transparent 30%);
    z-index: 1;
    pointer-events: none;
}

/* ================================================================
   CTA (matches home CTA — reuses classes from shared.css)
================================================================ */
.cta-section {
    background: var(--bg);
    padding: 100px 40px;
    text-align: center;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 4000px) {
   .location-text{
        margin-left: 200px;
    }
}

@media (max-width: 1024px) {
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: auto;
        grid-row: auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 100px 24px 80px;
    }

    .about-hero-stats {
        padding: 20px;
        gap: 4px;
    }

    .ahs-divider {
        display: none;
    }

    .ahs-item {
        flex: 0 0 50%;
        padding: 12px 16px;
    }

    .gallery-section,
    .story-section,
    .offer-section {
        padding: 72px 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
    }

    .gallery-item.gallery-featured {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .gallery-item.gallery-tall {
        grid-column: 1 / 2;
        grid-row: 2 / 4;
    }

    .gallery-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .gallery-item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 3;
    }

    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        display: none;
    }

    .story-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .story-img-badge {
        right: 16px;
        bottom: -16px;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .location-inner {
        grid-template-columns: 1fr;
    }

    .location-image {
        height: 280px;
    }

    .location-image::before {
        background: linear-gradient(to bottom, var(--ocean) 0%, transparent 30%);
    }
.location-text {
    margin-left: 10px;
}
    .location-text {
        padding: 60px 24px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 220px);
    }

    .gallery-item.gallery-featured {
        grid-column: 1;
        grid-row: 1;
    }

    .gallery-item.gallery-tall {
        grid-column: 1;
        grid-row: 2;
    }

    .gallery-item:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .gallery-item:nth-child(4) {
        grid-column: 1;
        grid-row: 4;
    }

    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        display: none;
    }

    .ahs-item {
        flex: 0 0 100%;
    }

    .ahs-num {
        font-size: 28px;
    }
}