/* ============================================================
   S-Prestige International — consolidated theme styles
   Merged from the 3 prototype pages (index / products / about).
   The page templates keep their inline styles verbatim for
   pixel fidelity; this file carries the design tokens, shared
   component classes, and all responsive media queries.
   ============================================================ */

:root {
    --bg: #060608;
    --surface: #0e0e14;
    --border: rgba(255, 255, 255, 0.08);
    --text-muted: #6B7280;
    --accent: #9aa6da;          /* soft periwinkle */
    --accent-2: #c3ccee;
    --glass-blue: #b9c2e6;      /* light glass tile colour */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: #fff; overflow-x: hidden; }

/* Centered container — caps width at 1280px, fluid padding */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding-left:  clamp(20px, 5vw, 80px);
    padding-right: clamp(20px, 5vw, 80px);
}
/* Vertical rhythm for sections */
.sec { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 72px); }

/* Nav link */
.nav-link { color: rgba(255, 255, 255, 0.65); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: #fff; }

/* Primary button — soft periwinkle gradient */
.btn-primary {
    background: linear-gradient(135deg, #c3ccee 0%, #8e9cd6 100%);
    color: #1a2236; padding: 11px 22px; border-radius: 100px;
    font-size: 14px; font-weight: 600; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Inter', sans-serif; text-decoration: none;
    box-shadow: 0 4px 18px rgba(142, 156, 214, 0.25);
    transition: filter 0.2s, transform 0.15s;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }

/* FAQ accordion */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-icon { transition: transform 0.3s ease; display: block; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Card hover lift */
.card-lift { transition: transform 0.3s ease; cursor: pointer; }
.card-lift:hover { transform: translateY(-4px); }

/* Why-Us feature card: glossy metallic frame */
.feature-frame {
    position: relative; border-radius: 28px; padding: 14px;
    background: linear-gradient(150deg, #c2cad6 0%, #707a8a 22%, #2c313b 50%, #1c1f27 72%, #444c5b 100%);
}
.feature-inner {
    position: relative; background: #050507; border-radius: 18px;
    width: 100%; height: 100%; padding: clamp(24px, 3vw, 30px);
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 100%, 0 100%);
}

/* Advantage cell */
.adv-cell { padding: 8px 0 56px; border-top: 1px solid var(--border); transition: opacity 0.25s ease; }
.adv-cell:hover { opacity: 0.85; }

/* Product card */
.prod-card {
    position: relative; border-radius: 16px; overflow: hidden;
    background: #0e0e14; aspect-ratio: 16 / 10; display: block;
}
.prod-card img { transition: transform 0.5s ease; opacity: 0.85; }
.prod-card:hover img { transform: scale(1.05); }
.prod-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,5,8,0.92) 0%, rgba(5,5,8,0.35) 45%, rgba(5,5,8,0.15) 100%);
}
.prod-content { position: absolute; inset: 0; padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between; }

/* Bento mosaic */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 230px; gap: 12px; }
.bento .tall { grid-row: span 2; aspect-ratio: auto; }
.bento .prod-card { aspect-ratio: auto; height: 100%; }
.glass-tile {
    grid-row: span 1; border-radius: 16px; padding: 26px 28px;
    background: linear-gradient(150deg, #c9d0ee 0%, #aab4e0 55%, #9aa6da 100%);
    color: #20283f; display: flex; flex-direction: column; justify-content: space-between;
    text-decoration: none; position: relative; overflow: hidden;
}
.glass-tile .gt-star { position: absolute; bottom: 18px; right: 20px; opacity: 0.35; }

/* Industry card */
.ind-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; }

/* Shipping promo — chamfered corners */
.ship-promo {
    position: relative; border-radius: 24px; overflow: hidden; min-height: 380px;
    display: flex; align-items: center; isolation: isolate;
    clip-path: polygon(48px 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%, 0 48px);
}
.ship-promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.ship-promo::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.7) 38%, rgba(255,255,255,0.15) 62%, transparent 100%);
}
.ship-promo-inner { position: relative; padding: clamp(32px, 5vw, 64px); max-width: 560px; }
.ship-play {
    position: absolute; top: 26px; right: 30px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.65); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s;
}
.ship-play:hover { background: rgba(255,255,255,0.9); }
.ship-star { position: absolute; bottom: 26px; right: 34px; opacity: 0.28; z-index: 2; }

/* Contact form fields (reusable on Contact Form 7 fields too) */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 8px; letter-spacing: 0.02em; }
.field .req { color: var(--accent-2); }
.form-input {
    width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 10px; padding: 13px 16px; font-size: 14px; color: #fff;
    font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }
textarea.form-input { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-submit { width: 100%; justify-content: center; padding: 14px; font-size: 15px; margin-top: 6px; }

/* Make Contact Form 7 markup inherit the prototype styling */
.spr-cf7 .wpcf7-form-control-wrap { display: block; }
.spr-cf7 input.wpcf7-form-control:not([type=submit]),
.spr-cf7 textarea.wpcf7-form-control,
.spr-cf7 select.wpcf7-form-control {
    width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 10px; padding: 13px 16px; font-size: 14px; color: #fff;
    font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s, background 0.2s; margin-bottom: 18px;
}
.spr-cf7 textarea.wpcf7-form-control { min-height: 120px; line-height: 1.6; }
.spr-cf7 input.wpcf7-form-control:focus,
.spr-cf7 textarea.wpcf7-form-control:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }
.spr-cf7 input.wpcf7-submit {
    background: linear-gradient(135deg, #c3ccee 0%, #8e9cd6 100%); color: #1a2236;
    width: 100%; padding: 14px; border: none; border-radius: 100px;
    font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 18px rgba(142,156,214,0.25);
}
.spr-cf7 label { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 8px; }

/* Products page row + chips */
.chip { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: rgba(255,255,255,0.8); font-size: 12px; padding: 6px 14px; border-radius: 100px; }

/* About page service card */
.svc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(24px,3vw,30px); }
.svc-card h3 { font-size: clamp(16px,1.8vw,18px); font-weight: 600; margin-bottom: 10px; }

.star { display: inline-block; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
    .ind-grid { grid-template-columns: 1fr 1fr !important; }
    .svc-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 860px) {
    nav .nav-desktop { display: none !important; }
    .nav-desktop { display: none !important; }
    .why-flex { flex-direction: column !important; }
    .why-flex > div:first-child { width: 100% !important; }
    .adv-grid { grid-template-columns: 1fr !important; }
    .bento { grid-template-columns: 1fr 1fr !important; grid-auto-rows: 190px !important; }
    .bento .tall { grid-row: span 2 !important; }
    .faq-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; }
    .promo-banner { grid-template-columns: 1fr !important; }
    .promo-img { min-height: 200px !important; order: -1; }
    .promo-img > div { background: linear-gradient(to top, var(--bg) 0%, transparent 60%) !important; }
    .prod-row { grid-template-columns: 1fr !important; }
    .prod-row .prod-img { order: -1; }
    .stat-grid { grid-template-columns: 1fr 1fr !important; }
    .svc-grid { grid-template-columns: 1fr !important; }
    .ceo-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .ship-promo::before { background: linear-gradient(to right, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 70%, rgba(255,255,255,0.45) 100%) !important; }
    .ship-promo { clip-path: polygon(32px 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%, 0 32px) !important; }
}
@media (max-width: 520px) {
    .ind-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .feature-frame { min-height: 380px !important; }
    .bento { grid-template-columns: 1fr !important; grid-auto-rows: 200px !important; }
    .bento .tall { grid-row: span 1 !important; }
    .stat-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
}
