/* ============================================================
   STA Erbil Service Center — Frontend Stylesheet (LTR)
   ============================================================ */

/* ---- FONTS ---- */

@font-face {
    font-family: 'JLREmeric';
    src: url('../fonts/JLREmericRegular.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FrutigerArabic';
    src: url('../fonts/FRUTIGERLTARABIC45LIGHT.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BahijJanna';
    src: url('../fonts/BahijJannaRegular.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---- CSS VARIABLES ---- */

:root {
    --font-en: 'JLREmeric', 'Montserrat', sans-serif;
    --font-ar: 'FrutigerArabic', 'Montserrat', sans-serif;
    --font-kr: 'BahijJanna', 'Montserrat', sans-serif;

    --color-bg:      #f5f3ef;
    --color-dark:    #1d1d1d;
    --color-text:    #1f1f1f;
    --color-muted:   #6b6b6b;
    --color-white:   #ffffff;
    --color-shadow:  rgba(0, 0, 0, 0.08);
    --color-card:    #ffffff;
    --color-gold:    #b8975a;

    --section-pad: 100px 70px;
    --radius:      16px;
    --transition:  0.6s ease;
}

/* ---- RESET ---- */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.lang-ar { font-family: var(--font-ar); }
body.lang-kr { font-family: var(--font-kr); }

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ============================================================
   LOGO BAR
   ============================================================ */

.logo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.logo-bar.scrolled {
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.logo-bar .logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(10);
}

/* ---- LANGUAGE SWITCHER ---- */

.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
    text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

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

.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    z-index: 0;
    transition: opacity 0.8s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.78), rgba(0,0,0,0.18));
    z-index: 1;
}

/* Grey shadow as per requirement */
.hero-shadow {
    position: absolute;
    inset: 0;
    background: rgba(80,80,80,0.22);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: 68px;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 8px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 17px;
    line-height: 1.9;
    max-width: 540px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-gold);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.hero-btn:hover { background: #caa96a; }

/* Hero slider dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */

.section {
    padding: var(--section-pad);
}

.section-title {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.section-sub {
    color: var(--color-muted);
    margin-bottom: 50px;
    line-height: 1.9;
    max-width: 780px;
    font-size: 15px;
}

/* ============================================================
   PREMIUM CLIENT EXPERIENCE — COLLAGE GRID
   ============================================================ */

.collage-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.collage-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-card);
    box-shadow: 0 12px 30px var(--color-shadow);
    cursor: pointer;
}

.collage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.collage-card:hover img {
    transform: scale(1.06);
}

.collage-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
    color: var(--color-white);
}

.collage-card-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.collage-card-content p {
    font-size: 13px;
    opacity: 0.88;
    line-height: 1.7;
}

/* Block size types */
.collage-card.large  { grid-column: span 7; height: 520px; }
.collage-card.side   { grid-column: span 5; height: 250px; }
.collage-card.small  { grid-column: span 4; height: 260px; }

/* Row 2: small cards (3 × span 4 = 12 columns) */
.collage-row-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Override small card span inside .collage-row-small (uses auto flow) */
.collage-row-small .collage-card.small {
    grid-column: auto;
}

/* ============================================================
   FACILITY HIGHLIGHTS
   ============================================================ */

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.highlight-card {
    background: var(--color-white);
    padding: 36px 30px;
    border-radius: 14px;
    box-shadow: 0 8px 25px var(--color-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.highlight-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text);
}

.highlight-card p {
    color: var(--color-muted);
    line-height: 1.75;
    font-size: 14px;
}

/* ============================================================
   STATISTICS (dark section)
   ============================================================ */

.stats-section {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 90px 70px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item h2 {
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
    line-height: 1;
}

.stat-item h2 .counter { display: inline; }

.stat-item p {
    color: #c7c7c7;
    letter-spacing: 2px;
    font-size: 13px;
    text-transform: uppercase;
    line-height: 1.5;
}

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

.site-footer {
    background: #0f0f0f;
    padding: 48px 70px 30px;
    color: #888;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 1px solid #222;
    margin-bottom: 24px;
}

.footer-logo img {
    height: 44px;
    object-fit: contain;
    filter: brightness(0.8);
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact a { color: #888; transition: color 0.2s; }
.footer-contact a:hover { color: #ccc; }

.footer-social {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 50%;
    color: #888;
    font-size: 14px;
    transition: all 0.3s;
}

.social-link:hover { border-color: #666; color: #ccc; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
}

.footer-lang-switch {
    display: flex;
    gap: 10px;
}

.footer-lang-switch a {
    font-size: 11px;
    color: #555;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-lang-switch a:hover,
.footer-lang-switch a.active { color: #ccc; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Elements start VISIBLE by default — animation is progressive enhancement */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only hide elements when the page has fully loaded and JS is ready */
.fade-ready .fade-in {
    opacity: 0;
    transform: translateY(28px);
}

.fade-ready .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (≤1200px)
   ============================================================ */

@media (max-width: 1200px) {
    :root { --section-pad: 80px 48px; }

    .hero { padding: 48px; }
    .hero-content h1 { font-size: 56px; }

    .collage-card.large { grid-column: span 7; }
    .collage-card.side  { grid-column: span 5; }
    .collage-card.small { grid-column: span 4; }

    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid      { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE/TABLET (≤1024px)
   ============================================================ */

@media (max-width: 1024px) {
    :root { --section-pad: 70px 32px; }

    .logo-bar { padding: 14px 24px; }
    .hero { padding: 32px 32px 70px; }
    .hero-content h1 { font-size: 48px; letter-spacing: 5px; }
    .section-title { font-size: 32px; letter-spacing: 3px; }

    .collage-grid        { grid-template-columns: 1fr; gap: 16px; }
    .collage-row-small   { grid-template-columns: 1fr; gap: 16px; }

    .collage-card.large,
    .collage-card.side,
    .collage-card.small  { grid-column: auto; }

    .collage-card.large { height: 380px; }
    .collage-card.side  { height: 260px; }
    .collage-card.small { height: 240px; }

    .highlights-grid { gap: 16px; }
    .stats-section { padding: 60px 32px; }
    .site-footer { padding: 40px 32px 24px; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */

@media (max-width: 768px) {
    :root { --section-pad: 60px 20px; }

    .hero { padding: 20px 20px 60px; }
    .hero-content h1 { font-size: 38px; letter-spacing: 4px; }
    .hero-content p  { font-size: 15px; }

    .section-title { font-size: 26px; }

    .highlights-grid { grid-template-columns: 1fr; }
    .stats-grid      { grid-template-columns: 1fr 1fr; }

    .stat-item h2 { font-size: 42px; }

    .site-footer { padding: 32px 20px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */

@media (max-width: 480px) {
    .hero-content h1 { font-size: 30px; letter-spacing: 3px; }
    .lang-btn { padding: 5px 10px; font-size: 11px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item h2 { font-size: 48px; }
}

/* ============================================================
   RESPONSIVE — LARGE SCREENS (≥1920px)
   ============================================================ */

@media (min-width: 1920px) {
    .hero-content h1 { font-size: 84px; }
    .section-title   { font-size: 52px; }
    .stat-item h2    { font-size: 72px; }
    .collage-card.large { height: 620px; }
    .highlights-grid { grid-template-columns: repeat(4, 1fr); }
}
