/* =========================================================
   FULK SHIPPING — style.css
   Brand: White + layered maritime blues, modern and professional
   ========================================================= */

:root {
    --navy-900: #062A4D;
    --navy-700: #0B4F7A;
    --navy-500: #1479B8;
    --gold: #1677C8;
    --gold-soft: #58A9E5;
    --white: #FFFFFF;
    --bg-soft: #F2F8FC;
    --bg-mid: #DCEBF5;
    --text-dark: #082B49;
    --text-mid: #526A7E;
    --text-light: #FFFFFF;
    --border: rgba(6, 42, 77, 0.10);

    --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(13, 27, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(13, 27, 42, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --max-w: 1200px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    --font-en: 'Montserrat', system-ui, sans-serif;
    --font-ar: 'Cairo', system-ui, sans-serif;
}

/* ========== Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: var(--font-ar);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

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

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark-wrap {
    position: relative;
    display: block;
    width: 76px;
    height: 86px;
    overflow: hidden;
    flex: 0 0 76px;
}

.logo {
    position: absolute;
    width: 142px;
    max-width: none;
    height: auto;
    left: -52px;
    top: -17px;
    transform: none;
    filter: brightness(0) saturate(100%) invert(14%) sepia(47%) saturate(1390%) hue-rotate(169deg) brightness(91%) contrast(99%);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 22px;
    color: var(--navy-900);
}

.logo-sub {
    font-weight: 500;
    letter-spacing: 3.5px;
    font-size: 10px;
    color: var(--gold);
    margin-top: 3px;
}

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

.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy-900);
    position: relative;
    padding: 6px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}

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

.lang-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-900);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.lang-toggle .lang-sep {
    color: var(--text-mid);
    opacity: 0.5;
}

.lang-toggle .active {
    color: var(--gold);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--navy-900);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 82% 22%, rgba(88, 169, 229, 0.58) 0%, rgba(88, 169, 229, 0) 31%),
        radial-gradient(circle at 62% 86%, rgba(22, 119, 200, 0.48) 0%, rgba(22, 119, 200, 0) 42%),
        linear-gradient(125deg, #041f3b 0%, #073f6c 52%, #0b6ca9 100%);
    color: var(--text-light);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 118%, rgba(255,255,255,.13) 0%, transparent 48%);
    background-size: 72px 72px, 72px 72px, auto;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.hero-headline {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.25s forwards;
}

.hero-headline .accent {
    color: #8FD0FF;
    font-weight: 600;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    max-width: 620px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.55s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
}

.hero-scroll span {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--navy-500);
    color: var(--white);
}

.btn-primary:hover {
    background: #2291D0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(47, 128, 237, 0.30);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    margin-top: 12px;
}

.btn-gold:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(47, 128, 237, 0.30);
}

/* ========== Section Layout ========== */
.section {
    padding: 100px 0;
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-eyebrow.gold {
    color: var(--gold);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy-900);
}

.section-title.light {
    color: var(--white);
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-top: 16px;
    line-height: 1.7;
}

/* ========== About ========== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 18px;
}

.values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.value {
    padding: 28px 24px;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.value:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--navy-900);
    color: var(--gold);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.value-icon svg {
    width: 22px;
    height: 22px;
}

.value h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.value p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ========== Services ========== */
.services {
    background: var(--bg-soft);
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--gold);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ========== Quote request ========== */
.quote-section {
    padding: 100px 0;
    background: var(--white);
}

.quote-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.quote-intro {
    position: sticky;
    top: 120px;
}

.quote-intro > p:not(.section-eyebrow) {
    color: var(--text-mid);
    margin: 22px 0;
    line-height: 1.8;
}

.quote-intro > a {
    color: var(--gold);
    font-weight: 700;
}

.quote-form {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

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

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

.form-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 20px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(6, 42, 77, 0.12);
    color: var(--navy-900);
}

.form-section-head:not(:first-child) { margin-top: 22px; }
.form-section-head span { color: var(--text-mid); font-size: .76rem; font-weight: 500; }
.form-section-head b,
.required-mark { color: #c62828; }
.required-mark { margin-inline-start: 3px; }

.quote-form label {
    display: block;
    margin-bottom: 18px;
    color: var(--navy-900);
    font-size: 0.88rem;
    font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid rgba(6, 42, 77, 0.16);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-dark);
    font: inherit;
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.quote-form select { cursor: pointer; }

.field-hint {
    margin: -7px 0 18px;
    color: var(--text-mid);
    font-size: .76rem;
    line-height: 1.55;
}

.conditional-field[hidden] { display: none; }
.step-number {
    display: block;
    margin-bottom: 8px;
    color: var(--navy-500);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.help-tip {
    position: relative;
    width: 19px;
    height: 19px;
    margin-inline-start: 5px;
    border: 1px solid rgba(6, 42, 77, .28);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-700);
    font-family: inherit;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}
.help-tip::after {
    content: attr(data-tip);
    position: absolute;
    z-index: 20;
    inset-inline-start: 50%;
    bottom: calc(100% + 9px);
    width: 250px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--navy-900);
    color: var(--white);
    box-shadow: var(--shadow-md);
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: start;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}
.help-tip:hover::after,
.help-tip:focus::after { opacity: 1; visibility: visible; }
.attachment-field small {
    display: block;
    margin-top: 7px;
    color: var(--text-mid);
    font-size: .75rem;
    font-weight: 400;
}
.quote-form input[type="file"] { padding: 10px; }

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

.quote-form .btn {
    width: 100%;
}

.quote-form .btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-note,
.form-status {
    margin-top: 12px;
    color: var(--text-mid);
    font-size: 0.8rem;
    text-align: center;
}

.form-note a {
    color: var(--navy-500);
    font-weight: 700;
}

.form-status.success { color: #087A55; }
.form-status.error { color: #B42318; }
.form-honeypot { position: absolute; left: -9999px; }

/* ========== Contact CTA ========== */
.contact-cta {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(105, 183, 243, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
}

.contact-cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}

.contact-cta-inner {
    margin-left: auto;
    margin-right: auto;
}

.contact-cta-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 20px 0 32px;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-bottom: 20px;
}

.footer-logo-text .logo-main {
    color: var(--white);
    font-size: 22px;
}

.footer-logo-text .logo-sub {
    font-size: 11px;
    margin-top: 4px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

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

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-list a:hover {
    color: var(--gold);
}

.legal-name {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.legal-sub {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* ========== RTL ========== */
body[dir="rtl"] .logo-sub,
body[dir="rtl"] .section-eyebrow,
body[dir="rtl"] .hero-eyebrow,
body[dir="rtl"] .footer-col h4 {
    letter-spacing: 1px;
}

body[dir="rtl"] .nav-list a::after {
    left: auto;
    right: 0;
}

body[dir="rtl"] .service-card::before {
    transform-origin: right;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .about-grid,
    .quote-grid,
    .portal-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

    .portal-graphic {
        height: 240px;
    }

    .quote-intro {
        position: static;
    }
}

@media (max-width: 720px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.35s var(--ease);
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-list a {
        font-size: 16px;
        display: block;
        padding: 8px 0;
    }

    .section {
        padding: 72px 0;
    }

    .quote-section {
        padding: 72px 0;
    }

    .quote-form {
        padding: 26px 22px;
    }

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

    .hero {
        padding: 110px 0 80px;
        min-height: auto;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-logo-text {
        align-items: center;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .service-card,
    .value {
        padding: 28px 22px;
    }
}
