/*
Theme Name: Bosa Startup Business Child
Description: Custom styles for ILMAR — Ship Management & Marine Services (v3 Redesign)
Version: 3.0
Template: bosa-startup-business
*/

/* ─────────────────────────────────────
   DESIGN TOKENS — ILMAR Logo Palette
───────────────────────────────────── */
:root {
    --green:        #2DC84D;
    --green-dark:   #20A33C;
    --green-pale:   #F0FAF2;
    --blue-deep:    #0D2B6B;
    --blue-mid:     #1565A7;
    --blue-wave:    #3A8FD5;
    --blue-light:   #EBF4FC;
    --ocean:        #0A2240;
    --ocean-mid:    #0F3460;
    --white:        #FFFFFF;
    --off-white:    #F8FFFE;
    --light-grey:   #F0F4F8;
    --mid-grey:     #7A8FA6;
    --text:         #0D1E35;
    --text-body:    #2D4A6B;
    --text-light:   #5A7A9B;
    --border:       #D4E5F0;
    --border-green: #B8E8C4;
}

/* ─────────────────────────────────────
   RESET & BASE
───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

/* ─────────────────────────────────────
   NAVIGATION
───────────────────────────────────── */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-green);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#main-nav.elevated {
    box-shadow: 0 4px 32px rgba(13,43,107,0.10);
    border-bottom-color: var(--green);
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo-img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img { transform: scale(1.05); }

.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }

.logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue-deep);
    letter-spacing: 0.06em;
    line-height: 1;
}

.logo-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.8rem;
}

.nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-body);
    transition: color 0.25s;
    position: relative;
}

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

.nav-links a:hover { color: var(--blue-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--green) !important;
    color: var(--white) !important;
    padding: 0.65rem 1.6rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s !important;
    box-shadow: 0 4px 16px rgba(45,200,77,0.3) !important;
}

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

.nav-cta:hover {
    background: var(--green-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(45,200,77,0.4) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px; height: 2.5px;
    background: var(--blue-deep);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.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(5px,-5px); }

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.hero {
    margin-top: 84px;
    min-height: calc(100vh - 84px);
    background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 50%, #0F4C8A 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 8%;
    gap: 4rem;
}

.hero-bg-waves {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
}

.hero-bg-waves svg { width: 100%; height: 100%; object-fit: cover; }

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeUp 0.9s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(45,200,77,0.15);
    border: 1px solid rgba(45,200,77,0.4);
    color: #7AE89A;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 2.2rem;
}

.badge-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 4.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 1.8rem;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--green);
    display: block;
}

.hero-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.08rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.68);
    max-width: 480px;
    margin-bottom: 2.8rem;
}

.hero-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--green);
    color: var(--white);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    display: inline-block;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 6px 24px rgba(45,200,77,0.35);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(45,200,77,0.45);
}

.btn-secondary {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    display: inline-block;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(45,200,77,0.08);
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    animation: fadeUp 0.9s ease 0.2s both;
}

.hero-logo-display {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 340px; height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 80px rgba(45,200,77,0.15), 0 0 40px rgba(58,143,213,0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

.hero-logo-img {
    width: 260px; height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(45,200,77,0.25));
}

.hero-stats-row {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 380px;
}

.hero-stat { flex: 1; text-align: center; padding: 1.4rem 1rem; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.1); }

.hero-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.hero-stat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
}

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

/* ─────────────────────────────────────
   TRUST BAR
───────────────────────────────────── */
.trust-bar {
    background: var(--off-white);
    border-bottom: 1px solid var(--border-green);
    padding: 1.4rem 5%;
}

.trust-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
}

.trust-icon-wrap {
    width: 24px; height: 24px;
    color: var(--green);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon-wrap svg { width: 18px; height: 18px; }

.trust-sep {
    width: 1px; height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─────────────────────────────────────
   SECTION COMMONS
───────────────────────────────────── */
.section-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-light { background: var(--white); padding: 7rem 5%; }
.section-contact { background: var(--off-white); padding: 7rem 5%; }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 1.2rem;
}

.section-eyebrow.light { color: #7AE89A; }

.eyebrow-pip {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
}

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

.section-title em {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--green);
}

.section-title.light em { color: #7AE89A; }

.section-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ─────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─────────────────────────────────────
   SERVICES
───────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 2.4rem 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--blue-wave));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(13,43,107,0.1);
    border-color: var(--border-green);
    background: var(--green-pale);
}

.service-card:hover::before { opacity: 1; }

.service-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.service-num {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--mid-grey);
    padding-top: 4px;
}

.service-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(21,101,167,0.25);
}

.service-icon svg { width: 24px; height: 24px; color: var(--white); }

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    transform: rotate(-4deg) scale(1.05);
}

.service-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 1.4rem;
}

.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }

.service-list li {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.service-list li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    margin-top: 0.45em;
}

/* ─────────────────────────────────────
   ABOUT
───────────────────────────────────── */
.section-ocean {
    background: linear-gradient(160deg, var(--ocean) 0%, var(--ocean-mid) 60%, #0F4C8A 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.section-ocean::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(45,200,77,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.about-wave-top, .about-wave-bottom { height: 80px; overflow: hidden; line-height: 0; position: relative; z-index: 2; }
.about-wave-top svg, .about-wave-bottom svg { width: 100%; height: 100%; }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.about-left .section-eyebrow { justify-content: flex-start; }
.about-left .section-title { text-align: left; }

.about-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.0rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.62);
    margin-bottom: 1.4rem;
}

.about-quote {
    margin: 2.4rem 0;
    padding: 1.8rem 2rem;
    border-left: 4px solid var(--green);
    background: rgba(255,255,255,0.05);
    border-radius: 0 12px 12px 0;
}

.about-quote p {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.about-quote cite {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green);
    font-style: normal;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 4rem;
}

.pillar {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.pillar:hover {
    background: rgba(45,200,77,0.08);
    border-color: rgba(45,200,77,0.3);
    transform: translateX(6px);
}

.pillar-icon {
    width: 44px; height: 44px;
    background: rgba(45,200,77,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s;
}

.pillar:hover .pillar-icon { background: rgba(45,200,77,0.25); }
.pillar-icon svg { width: 22px; height: 22px; color: var(--green); }

.pillar-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.pillar-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.52);
}

/* ─────────────────────────────────────
   TRADING
───────────────────────────────────── */
.minerals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.mineral-card {
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mineral-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--blue-wave));
    opacity: 0;
    transition: opacity 0.3s;
}

.mineral-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-green);
    box-shadow: 0 16px 40px rgba(13,43,107,0.1);
}

.mineral-card:hover::after { opacity: 1; }

.mineral-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    transition: background 0.3s;
}

.mineral-card:hover .mineral-icon {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.mineral-icon svg { width: 22px; height: 22px; color: var(--white); }

.mineral-name {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.mineral-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-light);
}

.industries-row {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1.5px solid var(--border);
}

.industries-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid-grey);
    flex-shrink: 0;
}

.industries-tags { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.industry-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-mid);
    background: var(--blue-light);
    border: 1px solid #BDD9F0;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: all 0.25s;
    cursor: default;
}

.industry-tag:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.contact-left .section-eyebrow { justify-content: flex-start; }
.contact-left .section-title { text-align: left; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.5rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    text-decoration: none;
    color: inherit;
}

a.contact-item:hover {
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(45,200,77,0.12);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 46px; height: 46px;
    background: var(--green-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg { width: 20px; height: 20px; color: var(--green-dark); }

.contact-item-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid-grey);
    margin-bottom: 0.25rem;
}

.contact-item-value {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form-wrap {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 2.8rem;
    box-shadow: 0 4px 40px rgba(13,43,107,0.06);
}

.form-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ─────────────────────────────────────
   ILMAR FORM FIELDS
   Prefixed to avoid parent theme conflicts
───────────────────────────────────── */
.ilmar-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.2rem !important;
    margin-bottom: 1.2rem !important;
}

.ilmar-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-bottom: 1.2rem !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ilmar-form-row .ilmar-field { margin-bottom: 0 !important; }

.ilmar-label {
    display: block !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: var(--text-body) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ilmar-input {
    display: block !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    background: var(--off-white) !important;
    border: 1.5px solid var(--border) !important;
    padding: 0.85rem 1.1rem !important;
    border-radius: 10px !important;
    outline: none !important;
    width: 100% !important;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    position: static !important;
}

.ilmar-input::placeholder { color: rgba(90,122,155,0.45) !important; }

.ilmar-input:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(45,200,77,0.12) !important;
    background: var(--white) !important;
}

.ilmar-select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8FA6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.1rem center !important;
    padding-right: 2.8rem !important;
    background-color: var(--off-white) !important;
}

textarea.ilmar-input {
    resize: vertical !important;
    min-height: 130px !important;
    line-height: 1.6 !important;
}

.form-submit {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white);
    border: none;
    padding: 1.05rem 2.2rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: transform 0.25s, box-shadow 0.25s;
    margin-top: 0.5rem;
    width: 100%;
    box-shadow: 0 6px 20px rgba(45,200,77,0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45,200,77,0.4);
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
    background: var(--ocean);
    color: rgba(255,255,255,0.5);
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 4.5rem 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; align-items: flex-start; gap: 16px; }

.footer-logo-img { height: 68px; width: auto; object-fit: contain; flex-shrink: 0; }

.footer-brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
}

.footer-col-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.3rem;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-group a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-links-group a:hover { color: var(--green); }

.footer-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.28);
}

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.6rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.28);
}

/* ─────────────────────────────────────
   POPUP MODAL
───────────────────────────────────── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,34,64,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.popup-overlay.active { opacity: 1; pointer-events: all; }

.popup-modal {
    background: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 2.8rem;
    position: relative;
    box-shadow: 0 32px 80px rgba(10,34,64,0.35);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--border-green) transparent;
}

.popup-overlay.active .popup-modal { transform: translateY(0) scale(1); }

.popup-close {
    position: absolute;
    top: 1.4rem; right: 1.4rem;
    width: 36px; height: 36px;
    background: var(--light-grey);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 1;
}

.popup-close:hover { background: #fde8e8; transform: rotate(90deg); }
.popup-close svg { width: 16px; height: 16px; color: var(--text-body); }

.popup-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.6rem;
    border-bottom: 1.5px solid var(--border-green);
}

.popup-logo {
    width: 64px; height: 64px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--off-white);
    border: 1.5px solid var(--border-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-logo img { width: 56px; height: 56px; object-fit: contain; }

.popup-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.popup-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--text-light);
}

.popup-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.2rem !important;
    margin-bottom: 1.2rem !important;
}

.popup-form-row .ilmar-field { margin-bottom: 0 !important; }

.required { color: #e53e3e; margin-left: 2px; }

.popup-submit {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white);
    border: none;
    padding: 1.1rem 2.4rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
    width: 100%;
    margin-top: 0.8rem;
    box-shadow: 0 6px 24px rgba(45,200,77,0.35);
}

.popup-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45,200,77,0.45);
}

.popup-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.popup-spinner { animation: spin 0.8s linear infinite; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.popup-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 1.2rem;
}

.success-icon {
    width: 80px; height: 80px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon svg { width: 40px; height: 40px; color: var(--green-dark); stroke-width: 2.5; }

.popup-success h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.popup-success p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    max-width: 400px;
    line-height: 1.7;
}

.popup-success-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 0.9rem 2.4rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.25s, transform 0.25s;
    box-shadow: 0 6px 20px rgba(45,200,77,0.3);
}

.popup-success-btn:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; padding: 5rem 6%; gap: 3rem; min-height: auto; padding-bottom: 4rem; }
    .hero-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .hero-logo-display { width: 240px; height: 240px; }
    .hero-logo-img { width: 180px; height: 180px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .minerals-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-right { padding-top: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 84px; left: 0; right: 0;
        background: var(--white);
        border-bottom: 2px solid var(--border-green);
        flex-direction: column;
        gap: 0; padding: 0;
        box-shadow: 0 8px 24px rgba(13,43,107,0.1);
    }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links a { display: block; padding: 1rem 1.5rem; font-size: 1rem; }
    .nav-cta { display: block; text-align: center; border-radius: 0 !important; }
    .nav-toggle { display: flex; }
    .hero { padding: 4rem 5%; }
    .hero-title { font-size: clamp(2.2rem, 7vw, 3rem); }
    .hero-logo-display { width: 200px; height: 200px; }
    .hero-logo-img { width: 150px; height: 150px; }
    .services-grid { grid-template-columns: 1fr; }
    .minerals-grid { grid-template-columns: repeat(2, 1fr); }
    .ilmar-form-row { grid-template-columns: 1fr !important; }
    .popup-form-row { grid-template-columns: 1fr !important; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .trust-bar-inner { gap: 1rem; }
    .trust-sep { display: none; }
    .section-light, .section-contact { padding: 4.5rem 5%; }
    .contact-form-wrap { padding: 2rem 1.5rem; }
    .popup-modal { padding: 2rem 1.5rem; border-radius: 18px; }
}

@media (max-width: 480px) {
    .nav-inner { padding: 0 4%; }
    .minerals-grid { grid-template-columns: 1fr 1fr; }
    .hero-badge { font-size: 0.68rem; }
    .hero-stats-row { flex-direction: column; max-width: 280px; }
    .hero-stat + .hero-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
    .logo-tagline { display: none; }
}

/* ─────────────────────────────────────
   POPUP FORM — THEME OVERRIDE HARDENING
   Forces correct layout against Bosa theme interference
───────────────────────────────────── */

/* Ensure the overlay itself is untouched by theme */
#consultation-overlay.popup-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
}

/* Modal container */
#consultation-overlay .popup-modal {
    display: block !important;
    width: 100% !important;
    max-width: 720px !important;
    padding: 2.8rem !important;
    box-sizing: border-box !important;
}

/* Two-column rows */
#consultation-overlay .popup-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.2rem !important;
    margin-bottom: 1.2rem !important;
    width: 100% !important;
    align-items: start !important;
}

/* Every field wrapper: vertical flex, full width */
#consultation-overlay .ilmar-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-bottom: 1.2rem !important;
    width: 100% !important;
    min-width: 0 !important;         /* fix grid overflow */
    box-sizing: border-box !important;
}

/* Fields inside two-column rows have no bottom margin */
#consultation-overlay .popup-form-row .ilmar-field {
    margin-bottom: 0 !important;
}

/* Labels */
#consultation-overlay .ilmar-label {
    display: block !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: var(--text-body) !important;
    margin: 0 0 0.35rem 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    text-align: left !important;
}

/* Inputs and selects */
#consultation-overlay .ilmar-input {
    display: block !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    background: var(--off-white) !important;
    border: 1.5px solid var(--border) !important;
    padding: 0.85rem 1.1rem !important;
    border-radius: 10px !important;
    outline: none !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    float: none !important;
    position: static !important;
    height: auto !important;
    line-height: 1.5 !important;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
}

#consultation-overlay .ilmar-input:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(45,200,77,0.12) !important;
    background: var(--white) !important;
}

#consultation-overlay .ilmar-input::placeholder {
    color: rgba(90,122,155,0.45) !important;
}

/* Selects */
#consultation-overlay select.ilmar-input,
#consultation-overlay .ilmar-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8FA6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.1rem center !important;
    background-color: var(--off-white) !important;
    padding-right: 2.8rem !important;
}

/* Textarea */
#consultation-overlay textarea.ilmar-input {
    resize: vertical !important;
    min-height: 130px !important;
    line-height: 1.6 !important;
}

/* Submit button */
#consultation-overlay .popup-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.7rem !important;
    width: 100% !important;
    padding: 1.1rem 2.4rem !important;
    margin-top: 0.8rem !important;
    border-radius: 50px !important;
    border: none !important;
    background: linear-gradient(135deg, var(--green-dark), var(--green)) !important;
    color: var(--white) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 24px rgba(45,200,77,0.35) !important;
    transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s !important;
    box-sizing: border-box !important;
}

#consultation-overlay .popup-submit:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(45,200,77,0.45) !important;
}

/* Responsive: single column on mobile */
@media (max-width: 600px) {
    #consultation-overlay .popup-form-row {
        grid-template-columns: 1fr !important;
    }
    #consultation-overlay .popup-modal {
        padding: 1.8rem 1.4rem !important;
        border-radius: 18px !important;
    }
}