/*
 * style.css — Syntia
 * Mobile-first, CSS custom properties, no framework.
 * Dark mode: #0A0A0A background, blue accent.
 *
 * Colour variables are injected via PHP in includes/header.php <style> block.
 *
 * Breakpoints:
 *   sm: 480px
 *   md: 768px
 *   lg: 1024px
 */

/* ==========================================================================
   Spacing & design tokens
   ========================================================================== */

:root {
    --space-xs:  0.5rem;
    --space-sm:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    --section-padding: 3rem;
    --radius: 8px;
    --gradient-accent: linear-gradient(135deg, #3B82F6, #06B6D4);
}

@media (min-width: 768px) {
    :root { --section-padding: 5rem; }
}

/* ==========================================================================
   0. CSS Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--colour-text);
    background-color: var(--colour-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--colour-link);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--colour-link-hover);
    text-decoration: underline;
}

ul, ol {
    padding-left: 1.5rem;
}

/* ==========================================================================
   1. Layout Utilities
   ========================================================================== */

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

@media (min-width: 768px) {
    .container {
        padding-inline: 2rem;
    }
}

.section {
    padding-block: var(--section-padding);
}

.section--alt {
    background-color: var(--colour-bg-alt);
}

.site-main {
    flex: 1;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--colour-heading);
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin-bottom: 1rem;    letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.3rem); margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   3. Site Header & Navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1140px;
    margin-inline: auto;
    padding: 0.875rem 1.25rem;
}

/* Logo */
.nav-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.nav-logo-name {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--colour-heading);
    letter-spacing: -0.02em;
}

.nav-logo:hover .nav-logo-name,
.nav-logo:focus .nav-logo-name {
    color: var(--colour-primary);
    text-decoration: none;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--colour-heading);
    border-radius: 2px;
    transition: opacity 0.2s, transform 0.2s;
}

/* Nav menu — hidden on mobile, shown when .is-open */
.nav-menu {
    display: none;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-menu.is-open {
    display: block;
}

.nav-menu > li > a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--colour-heading);
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.15s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus {
    color: var(--colour-primary);
    text-decoration: none;
}

/* Desktop nav */
@media (min-width: 768px) {
    .nav-toggle { display: none; }

    .nav-container {
        flex-direction: row;
        align-items: center;
        padding: 0 2rem;
        max-width: none;
    }

    .nav-menu {
        display: flex !important;
        width: auto;
        background: transparent;
        border-top: none;
        align-items: center;
    }

    .nav-menu > li > a {
        padding: 1.25rem 1rem;
        background: transparent;
        color: rgba(255, 255, 255, 0.65);
        border-bottom: none;
        transition: color 0.15s;
    }

    .nav-menu > li > a:hover,
    .nav-menu > li > a:focus {
        background: transparent;
        color: var(--colour-heading);
    }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--colour-bg);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blue radial glow — top centre */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center top, rgba(59, 130, 246, 0.15) 0%, transparent 65%);
    pointer-events: none;
    animation: hero-glow-blue 20s ease-in-out infinite alternate;
}

/* Cyan radial glow — offset right */
.hero::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 65%;
    transform: translateX(-50%);
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.08) 0%, transparent 65%);
    pointer-events: none;
    animation: hero-glow-cyan 25s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow-blue {
    from { opacity: 1; transform: translateX(-50%) scale(1); }
    to   { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

@keyframes hero-glow-cyan {
    from { opacity: 1; transform: translateX(-50%) scale(1); }
    to   { opacity: 0.6; transform: translateX(-50%) scale(1.2); }
}

.hero-overlay {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin-inline: auto;
    padding: 4rem 1.25rem;
    text-align: center;
}

.hero-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    color: var(--colour-heading);
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--colour-text);
    font-size: clamp(1rem, 2.5vw, 1.1875rem);
    font-weight: 400;
    line-height: 1.65;
    max-width: 600px;
    margin-inline: auto;
}

.hero-proof {
    color: var(--colour-text-light);
    font-size: 0.875rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, opacity 0.2s;
    line-height: 1;
}

.btn-primary {
    background-color: var(--colour-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--colour-primary-dark);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   6. Contact Form
   ========================================================================== */

/* Honeypot — visually hidden but not display:none */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    color: var(--colour-heading);
}

.form-label span[aria-label="required"] {
    color: var(--colour-primary);
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--colour-heading);
    background-color: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--colour-text-light);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--colour-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.form-notice {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.form-notice--success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-notice--error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.site-footer {
    margin-top: auto;
}

.footer-contact {
    background-color: var(--colour-bg-alt);
    padding-block: var(--section-padding);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact h2 {
    margin-bottom: 0.375rem;
}

.footer-contact-intro {
    color: var(--colour-text-light);
    margin-bottom: 1.5rem;
}

.footer-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch;
    }
}

.footer-form-left {
    display: flex;
    flex-direction: column;
}

.footer-form-right {
    display: flex;
    flex-direction: column;
}

.footer-form-right .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.footer-form-right .form-textarea {
    flex: 1;
    min-height: 120px;
    resize: none;
}

@media (min-width: 768px) {
    .footer-form-right .form-textarea {
        min-height: 0;
    }
}

.footer-bar {
    background-color: #0D0D0D;
    color: rgba(255, 255, 255, 0.5);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.footer-bar-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bar-address {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.2);
}

.footer-policy-link {
    color: rgba(255, 255, 255, 0.5);
}

.footer-policy-link:hover,
.footer-policy-link:focus {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

/* ==========================================================================
   8. Statement Section
   ========================================================================== */

.section--statement {
    background-color: var(--colour-bg);
    text-align: center;
}

.statement-inner {
    max-width: 720px;
    margin-inline: auto;
}

.section--statement p {
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    color: var(--colour-text);
}

/* ==========================================================================
   9. What We Do — services grid
   ========================================================================== */

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
}

.service h3 {
    color: var(--colour-primary);
    margin-bottom: 0.625rem;
}

.service p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--colour-text);
    margin-bottom: 0;
}

.service:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   10. How We Work — steps grid
   ========================================================================== */

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

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.steps-networks {
    text-align: center;
    color: var(--colour-text-light);
    font-size: 0.9375rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-number {
    display: block;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step h3 {
    margin-bottom: 0.625rem;
}

.step p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--colour-text);
    margin-bottom: 0;
}

.step:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   11. Health & Wellness — niche callout
   ========================================================================== */

.niche-callout {
    position: relative;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    padding-top: 2rem;
}

.niche-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.niche-callout p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--colour-text);
}

/* ==========================================================================
   12. Why Syntia — differentiators grid
   ========================================================================== */

.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .diff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.diff {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.diff::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
}

.diff h3 {
    color: var(--colour-primary);
    margin-bottom: 0.625rem;
}

.diff p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--colour-text);
    margin-bottom: 0;
}

.diff:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   13. Service Icons
   ========================================================================== */

.service-icon {
    width: 2rem;
    height: 2rem;
    color: var(--colour-primary);
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================================================
   14. Entrance Animations
   ========================================================================== */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.is-visible {
    animation: fade-up 0.6s ease forwards;
}

.animate-on-scroll.is-visible:nth-child(2) { animation-delay: 0.1s; }
.animate-on-scroll.is-visible:nth-child(3) { animation-delay: 0.2s; }
.animate-on-scroll.is-visible:nth-child(4) { animation-delay: 0.3s; }

/* ==========================================================================
   15. Section Dividers
   ========================================================================== */

.section + .section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.2), transparent);
    max-width: 1140px;
    margin-inline: auto;
}

/* ==========================================================================
   16. Privacy Policy
   ========================================================================== */

.policy-intro {
    color: var(--colour-text-light);
    margin-bottom: 2rem;
}

.policy-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.policy-content p,
.policy-content ul {
    margin-bottom: 1rem;
}

/* ==========================================================================
   11. Utility
   ========================================================================== */

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
