/* ============================================================
   SterlingDesign – Professional, approachable design
   Palette: Deep navy, teal accent, clean neutrals
   ============================================================ */
:root {
    --navy: #000E23;
    --navy-light: #0A1E3D;
    --teal: #0DBBBA;
    --teal-dark: #0A9E9D;
    --teal-soft: #5EE0DF;
    --white: #FFFFFF;
    --off-white: #F4F7FA;
    --gray-100: #E8EEF4;
    --gray-200: #D0D8E2;
    --gray-400: #8A9BB0;
    --gray-600: #4A5A6E;
    --gray-800: #1A2433;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 14, 35, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 14, 35, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
    background: #000e23;
    border-bottom: 1px solid rgba(13, 187, 186, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    animation: pulse-soft 3s ease-in-out infinite;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active { color: var(--teal); }

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}

.btn-nav {
    background: var(--teal) !important;
    color: #000e23 !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: 8px !important;
}

.btn-nav:hover { background: var(--teal-soft) !important; color: #000e23 !important; }
.btn-nav.active::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    max-width: 220px;
    object-fit: contain;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--navy);
    border: 2px solid var(--gray-200);
}
.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}

.btn-dark {
    background: var(--navy);
    color: white;
}
.btn-dark:hover { background: var(--navy-light); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, #0d3a5c 50%, #0A2540 100%);
    color: white;
    padding: 5.5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,180,216,0.15) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(144,224,239,0.08) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(0,180,216,0.2);
    color: var(--teal-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s ease both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 span { color: var(--teal); }

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 540px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.7s ease 0.3s both;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: white; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.section-header p { color: var(--gray-600); }

/* ---------- Cards / Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    animation: fadeInUp 0.6s ease both;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-soft);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0,180,216,0.12), rgba(0,150,199,0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    color: var(--teal-dark);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.feature-card p { color: var(--gray-600); font-size: 0.95rem; }

/* ---------- Services detail ---------- */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-visual {
    background: linear-gradient(145deg, var(--navy), var(--navy-light));
    border-radius: 16px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.service-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(0,180,216,0.25), transparent 60%);
}
.service-visual span {
    font-size: 4rem;
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.service-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.service-content p { color: var(--gray-600); margin-bottom: 1rem; }
.service-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}
.service-content li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
}
.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

/* ---------- Form / Intake ---------- */
.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 780px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.35rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.form-group label .req { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--off-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
    background: white;
}

.form-group textarea { min-height: 140px; resize: vertical; }

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

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.3rem;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition);
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--navy); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--navy); }

.file-upload {
    border: 2px dashed var(--gray-200);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    background: var(--off-white);
    transition: all var(--transition);
    cursor: pointer;
}
.file-upload:hover,
.file-upload.dragover {
    border-color: var(--teal);
    background: rgba(0,180,216,0.05);
}
.file-upload input { display: none; }
.file-upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.file-list { margin-top: 0.75rem; font-size: 0.85rem; color: var(--gray-600); }

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: #E0F2FE; color: #075985; border: 1px solid #BAE6FD; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}
.cta-band p { opacity: 0.85; margin-bottom: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding-top: 3.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 320px; }
.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,180,216,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0,180,216,0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #000e23;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(13, 187, 186, 0.25);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .main-nav.open { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .service-block,
    .service-block.reverse { grid-template-columns: 1fr; direction: ltr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding: 3.5rem 0 4rem; }
}

/* ---------- Admin styles (shared) ---------- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-new { background: #DBEAFE; color: #1E40AF; }
.badge-reviewed { background: #E0E7FF; color: #3730A3; }
.badge-quoted { background: #FEF3C7; color: #92400E; }
.badge-accepted { background: #D1FAE5; color: #065F46; }
.badge-progress { background: #CFFAFE; color: #0E7490; }
.badge-completed { background: #D1FAE5; color: #047857; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-draft { background: var(--gray-100); color: var(--gray-600); }
.badge-sent { background: #E0F2FE; color: #0369A1; }
