/* ============================================================
   PHOENIX COMPUTER CONSULTING (PTY) LTD
   Design System — Flame & Ember Edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Raleway:wght@300;400;600;700&display=swap');

:root {
    /* Flame Palette */
    --ember:      #E85D04;   /* Core flame orange */
    --amber:      #F48C06;   /* Warm amber */
    --gold:       #FAA307;   /* Golden highlight */
    --ash:        #1A1A2E;   /* Deep charcoal */
    --smoke:      #2D2D44;   /* Mid charcoal */
    --cinder:     #3D3D5C;   /* Softer charcoal */
    --dawn:       #FFF8F0;   /* Warm off-white background */
    --paper:      #FFFFFF;
    --muted:      #6B6B8A;   /* Muted text */
    --border:     #E8DDD0;   /* Warm border */

    /* Gradients */
    --flame-grad: linear-gradient(135deg, var(--ember) 0%, var(--amber) 50%, var(--gold) 100%);
    --ash-grad:   linear-gradient(180deg, var(--ash) 0%, var(--smoke) 100%);

    /* Typography */
    --font-display: 'Cinzel', Georgia, serif;
    --font-body:    'Raleway', 'Segoe UI', sans-serif;

    /* Spacing */
    --section-pad: 5rem 1.5rem;
    --radius:      6px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--dawn);
    color: var(--ash);
    line-height: 1.8;
    font-size: 1rem;
}

/* ── HEADER ── */
.site-header {
    background: var(--ash-grad);
    color: var(--paper);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle ember glow behind header */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(232,93,4,0.35) 0%, transparent 70%);
    pointer-events: none;
}

.site-header .logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(250,163,7,0.3);
    border-radius: 50%;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.4s;
}

.site-header .logo-wrap:hover {
    box-shadow: 0 0 32px rgba(232,93,4,0.5);
}

.site-header .logo-wrap svg {
    width: 80px;
    height: 80px;
}

.site-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    letter-spacing: 0.12em;
    color: var(--paper);
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.site-header .tagline {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    background: var(--flame-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* ── NAVIGATION ── */
.site-nav {
    background: var(--smoke);
    border-bottom: 3px solid var(--ember);
    padding: 0.9rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.site-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin: 0 1.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: var(--flame-grad);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.site-nav a:hover { color: var(--gold); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ── PAGE WRAPPER ── */
.page-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── SECTION ── */
.section {
    background: var(--paper);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(26,26,46,0.06);
    padding: 3.5rem;
    margin-top: 3rem;
}

/* ── HEADINGS ── */
h2 {
    font-family: var(--font-display);
    color: var(--ash);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5em;
    background: var(--flame-grad);
    border-radius: 2px;
    flex-shrink: 0;
}

h3 {
    font-family: var(--font-display);
    color: var(--ember);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 2rem 0 0.75rem;
}

p { margin-bottom: 1rem; color: var(--smoke); }
p:last-child { margin-bottom: 0; }

strong { color: var(--ash); }

/* ── HERO INTRO ── */
.hero-intro {
    background: var(--ash-grad);
    border-radius: var(--radius);
    border: none;
    padding: 4rem 3.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    color: var(--paper);
}

.hero-intro::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 240px; height: 240px;
    border: 40px solid rgba(250,163,7,0.08);
    border-radius: 50%;
}

.hero-intro h2 {
    color: var(--paper);
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

.hero-intro h2::before { background: var(--flame-grad); }

.hero-intro p { color: rgba(255,255,255,0.8); }

.hero-intro .lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    line-height: 1.6;
}

/* ── FEATURE LIST ── */
.feature-list {
    list-style: none;
    margin: 1.25rem 0;
}

.feature-list li {
    padding: 0.6rem 0 0.6rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    color: var(--smoke);
    font-size: 0.97rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--ember);
    font-weight: 900;
}

/* ── SERVICE CARDS ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    background: var(--dawn);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--flame-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(232,93,4,0.12);
    border-color: rgba(232,93,4,0.3);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card h3 { margin-top: 0; }
.service-card p { font-size: 0.95rem; }

/* ── ABOUT / HIGHLIGHT BOX ── */
.highlight-box {
    background: linear-gradient(135deg, rgba(232,93,4,0.06) 0%, rgba(250,163,7,0.04) 100%);
    border: 1px solid rgba(232,93,4,0.2);
    border-left: 4px solid var(--ember);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

/* ── CONTACT BAR ── */
.contact-bar {
    background: var(--ash-grad);
    border-radius: var(--radius);
    margin-top: 3rem;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(232,93,4,0.25) 0%, transparent 65%);
}

.contact-bar h2 {
    color: var(--paper);
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-bar h2::before { background: var(--flame-grad); }

.contact-bar p {
    color: rgba(255,255,255,0.65);
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-links a {
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(250,163,7,0.5);
    border-radius: 3px;
    transition: background 0.25s, border-color 0.25s;
    letter-spacing: 0.05em;
}

.contact-links a:hover {
    background: rgba(250,163,7,0.15);
    border-color: var(--gold);
}

/* ── FOOTER ── */
.site-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    background: var(--paper);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .section, .hero-intro { padding: 2.5rem 1.75rem; }
    .site-nav a { margin: 0 0.75rem; font-size: 0.72rem; }
    .contact-bar { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
    .site-nav a { margin: 0 0.5rem; letter-spacing: 0.08em; }
    .section, .hero-intro { padding: 2rem 1.25rem; }
}
