﻿/* ============================================================
   weboholics.co.uk - site.css
   Clean & Light professional redesign
   ============================================================ */

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

:root {
    --color-bg:        #f9f9fb;
    --color-surface:   #ffffff;
    --color-text:      #1a1a2e;
    --color-muted:     #6b7280;
    --color-accent:    #2563eb;
    --color-accent-h:  #1d4ed8;
    --color-border:    #e5e7eb;
    --color-hero-bg:   #0f172a;
    --color-hero-text: #f1f5f9;
    --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: auto; }

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    text-shadow: none;
    overflow-x: hidden;
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-h); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-border); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    flex-shrink: 0;
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    line-height: 1;
}
.logo-web {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-accent);
}
.logo-oholics {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--color-text);
}
.logo-tld {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0;
    color: #94a3b8;
    margin-left: 1px;
}

/* Desktop nav */
#main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}
#main-nav a {
    display: block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: all var(--transition);
}
#main-nav a:hover,
#main-nav a.active {
    color: var(--color-accent);
    background: rgba(37,99,235,.07);
}

/* CTA in nav */
#main-nav a.nav-cta {
    background: var(--color-accent);
    color: #fff !important;
    padding: 6px 18px;
}
#main-nav a.nav-cta:hover { background: var(--color-accent-h); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    #main-nav {
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        display: none;
    }
    #main-nav.open { display: block; }
    #main-nav ul { flex-direction: column; gap: 0; padding: 12px 16px; }
    #main-nav a { padding: 10px 12px; }
}

/* ============================================================
   SECTIONS - shared
   ============================================================ */
.site-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 560px;
    margin-bottom: 40px;
}

/* Fade-in animation (triggered by JS) */
/* Elements are visible by default; JS adds js-ready to body to enable animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s ease;
}
body.js-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
}
body.js-ready .reveal.visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   HERO (#home)
   ============================================================ */
#section-home {
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    overflow: hidden;
    padding-top: 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 64px);
}

.hero-copy .section-label { color: #60a5fa; }

.hero-copy .section-title {
    color: #f1f5f9;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
}

.hero-copy .section-subtitle { color: #94a3b8; max-width: 480px; }

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
}
.btn-primary:hover { background: var(--color-accent-h); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-outline {
    background: transparent;
    color: #f1f5f9;
    border-color: rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-outline-dark {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-outline-dark:hover { background: var(--color-accent); color: #fff; transform: translateY(-2px); }

/* Code terminal card */
.hero-visual {
    position: relative;
}
.code-window {
    background: #1e293b;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: .82rem;
}
.code-window-bar {
    background: #0f172a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot-red   { background: #ff5f57; }
.code-dot-yellow{ background: #febc2e; }
.code-dot-green { background: #28c840; }
.code-window-title {
    margin-left: auto;
    font-size: .7rem;
    color: #475569;
    font-family: var(--font-sans);
}
.code-body { padding: 20px 24px; line-height: 1.9; }
.code-body .kw  { color: #7dd3fc; }
.code-body .fn  { color: #a78bfa; }
.code-body .str { color: #86efac; }
.code-body .cmt { color: #475569; }
.code-body .tag { color: #f9a8d4; }

/* Cursor blink */
.cursor { display: inline-block; width: 2px; height: 1em; background: #7dd3fc; vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Floating badges */
.hero-badge {
    position: absolute;
    background: #fff;
    color: var(--color-text);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: .78rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    animation: float 4s ease-in-out infinite;
}
.hero-badge.b1 { top: -18px; right: 20px; animation-delay: 0s; }
.hero-badge.b2 { bottom: -18px; left: 10px; animation-delay: 1.5s; }
.hero-badge .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
@keyframes float {
    0%,100%  { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
    .hero-visual { display: none; }
}

/* ============================================================
   WHO (#who)
   ============================================================ */
#section-who { background: var(--color-surface); }

.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.who-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.who-stat {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.who-stat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.who-stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 6px;
}
.who-stat-label {
    font-size: .85rem;
    color: var(--color-muted);
    font-weight: 500;
}

.who-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.tag {
    background: rgba(37,99,235,.08);
    color: var(--color-accent);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid rgba(37,99,235,.2);
}

@media (max-width: 768px) {
    .who-grid { grid-template-columns: 1fr; gap: 30px; }
    .who-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   WHAT (#what)
   ============================================================ */
#section-what { background: var(--color-bg); }

.what-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.what-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}
.what-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.what-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.what-card:hover::before { transform: scaleX(1); }

.what-card-icon {
    width: 48px; height: 48px;
    background: rgba(37,99,235,.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--color-accent);
}
.what-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.what-card p {
    font-size: .9rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* ============================================================
   WHY (#why)
   ============================================================ */
#section-why {
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
}
#section-why .section-title { color: var(--color-hero-text); }
#section-why .section-subtitle { color: #94a3b8; }

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.08);
    transition: background var(--transition);
}
.why-list li:hover { background: rgba(255,255,255,.09); }
.why-list-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: rgba(37,99,235,.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 1rem;
}
.why-list-text h4 { font-size: .95rem; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.why-list-text p  { font-size: .85rem; color: #94a3b8; line-height: 1.5; }

.why-quote {
    background: rgba(37,99,235,.15);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 28px 30px;
    font-size: 1.15rem;
    font-style: italic;
    color: #cbd5e1;
    line-height: 1.7;
}
.why-quote cite { display: block; margin-top: 14px; font-size: .85rem; color: #60a5fa; font-style: normal; font-weight: 600; }

@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ============================================================
   HOW (#how)
   ============================================================ */
#section-how { background: var(--color-surface); }

.how-process {
    margin-top: 48px;
    position: relative;
}
.how-process::before {
    content: '';
    position: absolute;
    left: 23px; top: 0; bottom: 0;
    width: 2px;
    background: var(--color-border);
}
.how-step {
    display: flex;
    gap: 28px;
    margin-bottom: 32px;
    position: relative;
}
.how-step-num {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 6px rgba(37,99,235,.2);
}
.how-step-body { padding-top: 8px; }
.how-step-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.how-step-body p  { font-size: .9rem; color: var(--color-muted); line-height: 1.6; }

.how-tech {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}
.how-tech h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; }
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tech-pill {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-mono);
    transition: all var(--transition);
}
.tech-pill:hover { background: rgba(37,99,235,.07); border-color: rgba(37,99,235,.3); color: var(--color-accent); }

/* ============================================================
   WHEN (#when)
   ============================================================ */
#section-when { background: var(--color-bg); }

.when-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}
.when-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow var(--transition);
}
.when-card:hover { box-shadow: var(--shadow-md); }
.when-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.when-card h3 i { color: var(--color-accent); }
.when-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.when-card ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.when-card ul li:last-child { border-bottom: none; }
.when-card ul li span:last-child { font-weight: 600; color: var(--color-accent); }

.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,.1);
    color: #15803d;
    border: 1px solid rgba(34,197,94,.3);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: .82rem;
    font-weight: 700;
    margin-top: 20px;
}
.avail-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse-green 1.5s ease-in-out infinite; }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.5)} 50%{box-shadow:0 0 0 5px rgba(34,197,94,0)} }

@media (max-width: 768px) { .when-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHERE (#where)
   ============================================================ */
#section-where { background: var(--color-surface); }

.where-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 48px;
}
.where-info { display: flex; flex-direction: column; gap: 20px; }
.where-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}
.where-item:hover { box-shadow: var(--shadow-sm); }
.where-item-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: rgba(37,99,235,.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent);
    font-size: 1rem;
}
.where-item-text h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.where-item-text p, .where-item-text a { font-size: .9rem; color: var(--color-muted); }

.where-map {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.where-map iframe { width: 100%; height: 360px; border: none; }

@media (max-width: 768px) { .where-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT (#contact)
   ============================================================ */
#section-contact {
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
}
#section-contact .section-label { color: #60a5fa; }
#section-contact .section-title { color: #f1f5f9; }
#section-contact .section-subtitle { color: #94a3b8; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
}
.contact-detail-item i { color: #60a5fa; font-size: 1rem; margin-top: 2px; }
.contact-detail-item h4 { font-size: .85rem; font-weight: 600; color: #94a3b8; margin-bottom: 4px; }
.contact-detail-item a, .contact-detail-item p { font-size: .95rem; color: #e2e8f0; }

/* Contact form */
.contact-form {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 36px 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: .82rem; font-weight: 600; color: #94a3b8; letter-spacing: .5px; }
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: .9rem;
    color: #f1f5f9;
    font-family: var(--font-sans);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #475569; }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit { margin-top: 6px; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-submit .btn i { transition: transform var(--transition); }
.form-submit .btn:hover i { transform: translateX(4px); }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 20px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: #060d1a;
    color: #475569;
    padding: 28px 24px;
    text-align: center;
    font-size: .82rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
#site-footer a { color: #60a5fa; }
#site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
#site-footer .footer-links { display: flex; gap: 18px; }

/* ============================================================
   SECTION PROGRESS BAR
   ============================================================ */
#scroll-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 2px;
    background: var(--color-accent);
    z-index: 999;
    transition: width .1s linear;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px; height: 42px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
    border: none;
    font-size: .9rem;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); }
