@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --bg: #090d11;
    --bg-2: #0e1318;
    --bg-3: #131a21;
    --fg: #f0ede8;
    --muted: #8a9099;
    --accent: #c9a14a;
    --accent-2: #e8c97a;
    --accent-dim: rgba(201,161,74,0.12);
    --border: rgba(255,255,255,0.07);
    --border-gold: rgba(201,161,74,0.25);
    --max: 1200px;
    --ease: cubic-bezier(.25,.46,.45,.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

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

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    position: static;
    width: 50px;
}

/* ─── Grain overlay ──────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.55;
}

/* ─── CUSTOM CURSOR ──────────────────────────────────── */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor-logo {
    position: absolute;
    inset: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(201, 161, 74, 0.2), transparent);
    box-shadow: 0 0 20px rgba(201, 161, 74, 0.15), inset 0 0 20px rgba(201, 161, 74, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cursor-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(201, 161, 74, 0.3));
}

.cursor-ring {
    position: absolute;
    inset: -4px;
    border: 1.5px solid rgba(201, 161, 74, 0.3);
    border-radius: 50%;
    opacity: 0.5;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

/* Hover state for interactive elements */
.custom-cursor.hover .cursor-logo {
    transform: scale(1.3) rotate(15deg);
    box-shadow: 0 0 30px rgba(201, 161, 74, 0.4), inset 0 0 20px rgba(201, 161, 74, 0.15);
}

.custom-cursor.hover .cursor-ring {
    transform: scale(1.4);
    border-color: rgba(201, 161, 74, 0.6);
    opacity: 0.8;
}

/* Glow animation on hover */
@keyframes cursor-glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(201, 161, 74, 0.15), inset 0 0 20px rgba(201, 161, 74, 0.08);
    }

    50% {
        box-shadow: 0 0 35px rgba(201, 161, 74, 0.3), inset 0 0 20px rgba(201, 161, 74, 0.15);
    }
}

.custom-cursor.hover .cursor-logo {
    animation: cursor-glow 1.5s ease-in-out infinite;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* ─── Container ──────────────────────────────────────── */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .4s var(--ease), border-color .4s var(--ease), padding .3s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(9,13,17,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    transition: padding .3s var(--ease);
}

.site-header.scrolled .nav {
    padding: 18px 32px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    left: 50px;
    width: 300px;

    /* Move logo to the right */
}

.logo span {
    color: var(--accent);
}

.logo::after {
    content: 'RECEIVABLES MANAGEMENT';
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 7px;
    letter-spacing: 3.5px;
    color: var(--muted);
    margin-top: -2px;
    font-weight: 400;
}

.nav nav ul {
    display: flex;
    gap: 36px;
}

.nav nav a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    position: relative;
    transition: color .2s;
}

.nav nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 100%;
    height: 1px;
    background: var(--accent);
    transition: right .3s var(--ease);
}

.nav nav a:hover {
    color: var(--fg);
}

.nav nav a:hover::after {
    right: 0;
}

/* nav login buttons */
.nav-login-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-login-customer {
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  background: transparent;
}

.btn-login-customer:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-login-staff {
  background: #c9a84c;
  border: 1px solid #c9a84c;
  color: #0a0a0a;
}

.btn-login-staff:hover {
  background: #e0bc6a;
  border-color: #e0bc6a;
  color: #0a0a0a;
}

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

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--fg);
    transition: all .3s var(--ease);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(9,13,17,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--muted);
    transition: color .2s;
}

.mobile-nav a:hover {
    color: var(--accent);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all .25s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #140e03;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-2);
    transform: translateX(-101%);
    transition: transform .3s var(--ease);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,161,74,0.3);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    border: 1px solid var(--border-gold);
    color: #ffffff;
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.btn-ghost {
    color: var(--muted);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--accent);
}

.btn-ghost .arrow {
    transition: transform .2s var(--ease);
}

.btn-ghost:hover .arrow {
    transform: translateX(4px);
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.04);
    animation: heroScale 14s ease-out forwards;
}

@keyframes heroScale {
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, rgba(9,13,17,0.92) 0%, rgba(9,13,17,0.65) 45%, rgba(9,13,17,0.15) 100%),
    linear-gradient(180deg, rgba(9,13,17,0.1) 0%, rgba(9,13,17,0.75) 100%);
}

/* vertical gold line decoration */
.hero-line {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
    opacity: 0;
    animation: fadeIn 1.2s 0.8s var(--ease) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 0.4;
    }
}

.hero-content {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 4;
    width: 52%;
    min-width: 340px;
    padding: 0 0 90px 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(12px);
    animation: slideUp .7s 0.4s var(--ease) forwards;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(46px, 5.5vw, 78px);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -1px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp .8s 0.6s var(--ease) forwards;
}

.hero-content h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-content p {
    color: var(--muted);
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 400px;
    line-height: 1.75;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp .8s 0.85s var(--ease) forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp .8s 1.05s var(--ease) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    right: 48px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s 1.6s var(--ease) forwards;
}

.scroll-indicator span {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(0.85);
    }
}

/* ─── Sections ───────────────────────────────────────── */
.section {
    padding: 120px 0;
}

.section-dark {
    background: var(--bg-2);
}

.section-label {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 0 0 32px;
    height: 1px;
    background: var(--accent);
}

.section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.lead {
    color: var(--muted);
    margin-bottom: 64px;
    font-size: 16px;
    font-weight: 300;
    max-width: 480px;
}

/* ─── Services Grid ──────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.card {
    padding: 40px 36px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    transition: background .3s var(--ease);
}

.card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 100%;
    height: 2px;
    background: var(--accent);
    transition: right .4s var(--ease);
}

.card:hover {
    background: var(--bg-3);
}

.card:hover::before {
    right: 0;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    background: var(--accent-dim);
}

.card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--fg);
    letter-spacing: 0.3px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
}

.card-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    color: rgba(201,161,74,0.06);
    line-height: 1;
    pointer-events: none;
    transition: color .3s var(--ease);
}

.card:hover .card-number {
    color: rgba(201,161,74,0.1);
}

/* ─── About ──────────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    margin-bottom: 28px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 18px;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
}

.note {
    font-size: 12px !important;
    color: rgba(138,144,153,0.6) !important;
}

/* divider line */
.gold-rule {
    width: 48px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 36px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.stat-item {
    padding: 36px 32px;
    border: 1px solid var(--border);
    margin: -1px -1px 0 0;
    position: relative;
    overflow: hidden;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .4s var(--ease);
}

.stat-item:hover {
    border-color: var(--border-gold);
    background: var(--bg-3);
}

.stat-item:hover::before {
    transform: scaleY(1);
}

.stat-item strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* ─── Process ────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 56px;
    border: 1px solid var(--border);
}

.step {
    padding: 40px 32px;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: background .3s var(--ease);
}

.step:last-child {
    border-right: none;
}

.step:hover {
    background: var(--bg-3);
}

.step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 300;
    color: rgba(255, 206, 97, 0.55);
    text-shadow: 0 0 15px rgba(201, 161, 74, 0.15);
    line-height: 1;
    margin-bottom: 24px;
    display: block;
    transition: color .3s var(--ease);
}

.step:hover .step-num {
    color: rgba(201,161,74,0.22);
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -1px;
    width: 24px;
    height: 1px;
    background: var(--accent);
    z-index: 2;
    display: none;
}

.step h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.step p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
}

.step-tag {
    display: inline-block;
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 5px 10px;
    border: 1px solid var(--border-gold);
}

/* ─── Certifications ─────────────────────────────────── */
.certification-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    margin-top: 56px;
}

.certification-badges {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .3s var(--ease);
    background: rgba(201, 161, 74, 0.03);
}

.logo-item:hover {
    background: rgba(201, 161, 74, 0.08);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(201, 161, 74, 0.1);
}

.logo-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(201, 161, 74, 0.15));
    transition: filter .3s var(--ease);
}

.logo-item:hover img {
    filter: drop-shadow(0 8px 24px rgba(201, 161, 74, 0.25));
}

.logo-item p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    margin: 0;
}

.certification-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--fg);
}

.certification-text > p {
    color: var(--muted);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.certification-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    transition: background .3s var(--ease), border-color .3s var(--ease);
}

.benefit-item:hover {
    background: var(--bg-3);
    border-left-color: var(--accent-2);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 16px;
}

.benefit-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.benefit-item strong {
    color: var(--fg);
    font-weight: 500;
}

/* ─── Contact ────────────────────────────────────────── */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-left h2 {
    margin-bottom: 20px;
}

.contact-left > p {
    color: var(--muted);
    font-weight: 300;
    font-size: 15px;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:first-child {
    border-top: 1px solid var(--border);
}

.contact-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gold);
    font-size: 14px;
}

.contact-item-text {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
}

.contact-item-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.office-map {
    margin-top: 40px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
}

.office-map iframe {
    display: block;
    width: 100%;
    height: 350px;
}

.field {
    position: relative;
    border: 1px solid var(--border);
    margin: -1px -1px 0 0;
    transition: border-color .2s var(--ease);
}

.field:focus-within {
    border-color: var(--border-gold);
    z-index: 1;
}

.field label {
    display: block;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 14px 18px 0;
}

.field input,
.field textarea,
.field select {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--fg);
    padding: 6px 18px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 300;
    outline: none;
    resize: none;
    appearance: none;
}

.field textarea {
    min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(138,144,153,0.4);
}

/* span full width */
.field-full {
    grid-column: 1 / -1;
}

.form-footer {
    padding: 24px 0 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.form-status {
    font-size: 13px;
    color: var(--accent);
    min-height: 18px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    letter-spacing: 4px;
    font-weight: 600;
}

.footer-logo span {
    color: var(--accent);
}

.footer-sub {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .2s;
}

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

.footer-copy {
    font-size: 12px;
    color: rgba(138,144,153,0.5);
    text-align: right;
}

.footer-copy p {
    margin-bottom: 4px;
}

.footer-disclaimer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: rgba(138,144,153,0.4);
    line-height: 1.7;
    max-width: 760px;
}

/* ─── Scroll Reveal ──────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}

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

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}

.reveal-delay-5 {
    transition-delay: .5s;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .step {
        border-bottom: 1px solid var(--border);
    }

    .step:nth-child(2) {
        border-right: none;
    }

    .step:nth-child(3) {
        border-right: 1px solid var(--border);
    }

    .step:nth-child(3),
    .step:nth-child(4) {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .nav nav,
    .nav .btn-outline,
    .nav-login-btns {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .hero-content {
        width: 90%;
        padding: 0 0 70px 32px;
    }

    .two-col,
    .contact {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .certification-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section {
        padding: 80px 0;
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-copy {
        text-align: left;
    }
}

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

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

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

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

    .certification-badges {
        flex-direction: row;
        gap: 16px;
    }

    .logo-item {
        flex: 1;
        padding: 16px;
    }

    .logo-item img {
        width: 80px;
        height: 80px;
    }

    .logo-item p {
        font-size: 13px;
    }

    .certification-text h3 {
        font-size: 22px;
    }

    .benefit-item {
        padding: 12px;
        font-size: 12px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-content {
        width: 100%;
        min-width: auto;
        padding: 0 18px 40px;
    }

    .hero-content h1 {
        font-size: clamp(32px, 8vw, 44px);
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 15px;
    }

    .hero-cta {
        width: 100%;
        gap: 12px;
    }

    .hero-line {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .mobile-nav a {
        font-size: 28px;
    }

    .footer-inner {
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .site-header.scrolled .nav,
    .nav {
        padding: 16px 18px;
    }

    .section {
        padding: 56px 0;
    }

    .card,
    .step,
    .stat-item,
    .field {
        padding: 28px 18px;
    }

    .form-footer {
        gap: 12px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 18px;
    }
}

/* ─── Certifications Cards (refined & centered) ─────────────────────────── */
.certification-content {
    display: block;
    margin-top: 56px;
}

.cert-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: min(1100px, 100%);
    margin: 0 auto;
    justify-content: center;
}

.cert-card {
    position: relative;
    background: linear-gradient(180deg, rgba(10,22,36,0.85), rgba(7,12,20,0.75));
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: 18px;
    padding: 34px 28px 28px 28px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(3,10,20,0.6), inset 0 -40px 60px rgba(6,12,20,0.25);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
    overflow: hidden;
}

.cert-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(3,8,18,0.45));
    pointer-events: none;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(2,8,24,0.7), inset 0 -40px 80px rgba(6,12,20,0.35);
    border-color: rgba(59,130,246,0.18);
}

.cert-image {
    width: 160px;
    height: auto;
    object-fit: contain;
    margin: 0 0 8px 0;
    align-self: center;
    background: transparent;
}

/* Smaller ISO logo variant */
.cert-image.cert-iso {
    width: 110px;
}

@media (max-width: 600px) {
    .cert-image.cert-iso {
        width: 90px;
    }
}

.cert-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    margin: 6px 0 6px 0;
    color: var(--fg);
    text-align: left;
}

.cert-sub {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cert-pill {
    margin-top: auto;
    display: inline-block;
    background: transparent;
    color: #7fc3ff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.6px;
    border: 1px solid rgba(127,195,255,0.12);
    box-shadow: none;
    align-self: flex-start;
}

@media (max-width: 1024px) {
    .cert-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .cert-cards {
        grid-template-columns: 1fr;
    }
    .cert-card {
        min-height: auto;
        padding: 22px;
    }
    .cert-image {
        width: 120px;
    }
}

/* ─── Unique visual tweaks for certification cards ───────────────────────── */
.cert-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px; /* keeps the pseudo-border outside */
    background: linear-gradient(180deg, rgba(127,195,255,0.02), rgba(59,130,246,0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
}

.cert-card:hover::before {
    opacity: 0.95;
    transform: scale(1.02);
}

.cert-image {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 18px;
    border-radius: 12px;
    width: auto;
    display: block;
}

.cert-card h3 {
    font-size: 24px;
    font-weight: 700;
}

.cert-sub {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}

.cert-pill {
    color: #bfe8ff;
    border-color: rgba(127,195,255,0.16);
    backdrop-filter: blur(6px);
}

.cert-card .cert-pill::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(180deg,#3aa0ff,#0b74d1);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Logo panel: increases icon size and provides highlighted background */
.logo-panel {
    display: block;
    width: 240px;
    margin: 0 auto 10px auto;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(127,195,255,0.04);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.logo-panel img {
    display: block;
    width: 100%;
    height: auto;
}

.cert-card:hover .logo-panel {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(14,54,92,0.45), inset 0 8px 30px rgba(67,148,238,0.03);
    border-color: rgba(127,195,255,0.14);
    background: linear-gradient(180deg, rgba(31,87,141,0.08), rgba(6,18,34,0.25));
}

/* Larger icons */
.cert-card .cert-image { width: auto; max-width: 200px; }
.cert-card .cert-image.cert-iso { max-width: 160px; }

@media (max-width: 1024px) {
    .logo-panel { width: 200px; }
    .cert-card .cert-image.cert-iso { max-width: 140px; }
}

@media (max-width: 600px) {
    .logo-panel { width: 160px; padding: 12px; }
    .cert-card .cert-image { max-width: 140px; }
    .cert-card .cert-image.cert-iso { max-width: 110px; }
}

/* subtle decorative corner dot */
.cert-card .corner-dot {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 10px;
    height: 10px;
    background: rgba(127,195,255,0.12);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(59,130,246,0.05);
}

/* small logo alignment option if needed */
.cert-card.center-logo .cert-image {
    margin-left: auto;
    margin-right: auto;
}

/* ----- Final overrides for Certifications layout ----- */
.cert-header {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 28px auto;
}
.cert-header h2 {
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.cert-lead {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    max-width: 820px;
    margin: 0 auto;
    font-weight: 300;
}

/* Slightly larger card with more top padding and centered grid */
.cert-cards {
    gap: 34px;
}
.cert-card {
    padding: 48px 36px 36px 36px !important;
    min-height: 380px !important;
    border-radius: 18px;
}

.cert-image {
    width: 140px !important;
}
.cert-image.cert-iso {
    width: 120px !important;
}

.cert-card h3 {
    font-size: 20px !important;
    margin-top: 10px;
}

.cert-caption {
    text-align: center;
    color: rgba(127,195,255,0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    margin-top: 46px;
    opacity: 0.95;
}

@media (max-width: 1024px) {
    .cert-header h2 { font-size: 42px; }
}

@media (max-width: 600px) {
    .cert-header h2 { font-size: 32px; }
    .cert-card { padding: 24px !important; }
    .cert-image { width: 100px !important; }
    .cert-image.cert-iso { width: 80px !important; }
}

/* Increase logo panel and logo sizes for stronger presence */
.logo-panel {
    width: 340px !important;
    padding: 26px !important;
}
.logo-panel img {
    max-width: 320px !important;
    width: 100% !important;
    height: auto !important;
}
.cert-card .cert-image { max-width: 280px !important; }
.cert-card .cert-image.cert-iso { max-width: 220px !important; }

@media (max-width: 1024px) {
    .logo-panel { width: 260px !important; }
    .logo-panel img { max-width: 240px !important; }
    .cert-card .cert-image { max-width: 220px !important; }
    .cert-card .cert-image.cert-iso { max-width: 180px !important; }
}

@media (max-width: 600px) {
    .logo-panel { width: 180px !important; padding: 12px !important; }
    .logo-panel img { max-width: 160px !important; }
    .cert-card .cert-image { max-width: 160px !important; }
    .cert-card .cert-image.cert-iso { max-width: 120px !important; }
}

/* ----------------- User override: simplify cards & remove logo panels ----------------- */
.cert-card {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
    box-shadow: none !important;
}
.cert-card::before,
.cert-card::after {
    display: none !important;
}
.cert-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255,255,255,0.03) !important;
}

.logo-panel {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
}
.logo-panel img {
    max-width: 360px !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.cert-image {
    max-width: 360px !important;
    width: 100% !important;
}
.cert-image.cert-iso {
    max-width: 260px !important;
}

.cert-card .corner-dot,
.cert-card .cert-pill::before {
    display: none !important;
}

@media (max-width: 1024px) {
    .logo-panel img { max-width: 300px !important; }
    .cert-image { max-width: 300px !important; }
    .cert-image.cert-iso { max-width: 220px !important; }
}

@media (max-width: 600px) {
    .logo-panel img { max-width: 200px !important; }
    .cert-image { max-width: 200px !important; }
    .cert-image.cert-iso { max-width: 140px !important; }
}

/* Ensure captions and text remain readable */
.cert-caption { margin-top: 28px !important; }



