/* ============================================
   SOLARISE MARKETING STYLES
   Clean, lean - no legacy code

   8pt grid | Major Third (1.25) type scale
   ============================================ */

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/DMSans-Variable.woff2') format('woff2');
}

:root {
    /* ── Brand ── */
    --sol-primary: #4f46e5;
    --sol-primary-dark: #3730a3;
    --sol-primary-light: #818cf8;
    --sol-accent: #f59e0b;

    /* ── Neutrals ── */
    --sol-white: #ffffff;
    --sol-gray-50: #fafafa;
    --sol-gray-100: #f4f4f5;
    --sol-gray-200: #e4e4e7;
    --sol-gray-300: #d4d4d8;
    --sol-gray-400: #a1a1aa;
    --sol-gray-500: #71717a;
    --sol-gray-600: #52525b;
    --sol-gray-700: #3f3f46;
    --sol-gray-800: #27272a;
    --sol-gray-900: #18181b;
    --sol-dark: #09090b;

    /* ── Type Scale (Major Third 1.25) ── */
    --text-xs: 0.625rem;    /* 10px */
    --text-sm: 0.8125rem;   /* 13px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.25rem;     /* 20px */
    --text-xl: 1.5625rem;   /* 25px */
    --text-2xl: 1.9375rem;  /* 31px */
    --text-3xl: 2.4375rem;  /* 39px */
    --text-4xl: 3.0625rem;  /* 49px */
    --text-5xl: 3.8125rem;  /* 61px */

    /* ── Font ── */
    --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* ── Line Height ── */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* ── Spacing (8pt grid) ── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* ── Radius ── */
    --radius-sm: 2px;
    --radius-md: 2px;
    --radius-lg: 2px;
    --radius-xl: 2px;
    --radius-2xl: 2px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06);
    --shadow-xl: 0 8px 16px rgba(0,0,0,0.04), 0 16px 32px rgba(0,0,0,0.08);

    /* ── Transitions ── */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;

    /* ── Niche Colors ── */
    --niche-allotment: #166534;
    --niche-charity: #2563eb;
    --niche-council: #1e3a5f;
    --niche-theatre: #7c3aed;
    --niche-museum: #b8860b;
    --niche-scouts: #15803d;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    letter-spacing: 0.01em;
    color: var(--sol-gray-900);
    background: var(--sol-white);
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 3px 3px 0 #3730a3;
}

.btn svg { width: 1.25em; height: 1.25em; }

.btn-primary {
    background: var(--sol-primary);
    color: var(--sol-white);
}
.btn-primary:hover {
    background: var(--sol-primary-dark);
    transform: translateY(-1px);
    box-shadow: 3px 3px 0 #2e2891;
}

.btn-secondary {
    background: var(--sol-white);
    color: var(--sol-gray-700);
    border: 1px solid var(--sol-gray-300);
}
.btn-secondary:hover {
    background: var(--sol-gray-50);
    border-color: var(--sol-gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--sol-white);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 3px 3px 0 #2e2891;
}

.btn-dark {
    background: var(--sol-dark);
    color: var(--sol-white);
}
.btn-dark:hover {
    background: var(--sol-gray-800);
    transform: translateY(-1px);
    box-shadow: 3px 3px 0 #2e2891;
}

.btn-light {
    background: var(--sol-white);
    color: var(--sol-gray-900);
}
.btn-light:hover {
    background: var(--sol-gray-900);
    color: var(--sol-white);
    transform: translateY(-1px);
    box-shadow: 3px 3px 0 #2e2891;
}

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }

/* ============================================
   FORMS
   ============================================ */

.form-inline {
    display: flex;
    gap: var(--space-3);
    background: var(--sol-white);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
}

.form-inline-bordered {
    border: 1px solid var(--sol-gray-200);
    box-shadow: var(--shadow-sm);
}

.input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--sol-gray-900);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    outline: none;
}
.input::placeholder { color: var(--sol-gray-400); }
.input:focus { background: var(--sol-gray-50); }

@media (max-width: 640px) {
    .form-inline { flex-direction: column; }
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
    padding: var(--space-32) var(--space-6);
    text-align: center;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--sol-gray-900);
    letter-spacing: -0.02em;
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-6) 0;
}

.hero p {
    font-size: var(--text-lg);
    color: var(--sol-gray-600);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-8) 0;
}

.hero-dark {
    background: var(--sol-dark);
}
.hero-dark h1 { color: var(--sol-white); }
.hero-dark p { color: var(--sol-gray-400); }

.hero-subtle { background: var(--sol-gray-50); }

@media (max-width: 900px) {
    .hero h1 { font-size: var(--text-4xl); }
}

/* ============================================
   CONTENT BLOCKS (Alternating)
   ============================================ */

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    padding: var(--space-20) 0;
    max-width: 1200px;
    margin: 0 auto;
}

.content-block-reverse { direction: rtl; }
.content-block-reverse > * { direction: ltr; }

.content-block-text {
    max-width: 480px;
}

.content-block-text h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--sol-gray-900);
    letter-spacing: -0.02em;
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-4) 0;
}

.content-block-text p {
    font-size: var(--text-base);
    color: var(--sol-gray-600);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-6) 0;
}

.content-block-visual {
    aspect-ratio: 4/3;
    background: var(--sol-gray-100);
    border-radius: var(--radius-xl);
}

@media (max-width: 900px) {
    .content-block {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: var(--space-12) var(--space-6);
    }
    .content-block-reverse { direction: ltr; }
    .content-block-text { max-width: none; }
}

/* ============================================
   PANELS (Standout boxes)
   ============================================ */

.panel {
    padding: var(--space-12);
    border-radius: var(--radius-xl);
}

.panel h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-3) 0;
}

.panel p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.panel-dark {
    background: var(--sol-dark);
}
.panel-dark h2 { color: var(--sol-white); }
.panel-dark p { color: var(--sol-gray-400); }

.panel-subtle {
    background: var(--sol-gray-50);
}
.panel-subtle h2 { color: var(--sol-gray-900); }
.panel-subtle p { color: var(--sol-gray-600); }

.panel-accent {
    background: var(--sol-primary);
}
.panel-accent h2 { color: var(--sol-white); }
.panel-accent p { color: rgba(255,255,255,0.8); }

/* ============================================
   COLUMNS
   ============================================ */

.cols {
    display: grid;
    gap: var(--space-6);
}

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* Card style column item */
.col-card {
    background: var(--sol-white);
    border: 1px solid var(--sol-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.col-card:hover {
    border-color: var(--sol-gray-300);
    box-shadow: var(--shadow-md);
}

.col-card h3 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--sol-gray-900);
    margin: 0 0 var(--space-2) 0;
}

.col-card p {
    font-size: var(--text-sm);
    color: var(--sol-gray-600);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ============================================
   FEATURES (Icon + text)
   ============================================ */

.feature {
    display: flex;
    gap: var(--space-4);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--sol-gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sol-primary);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature h3 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--sol-gray-900);
    margin: 0 0 4px 0;
}

.feature p {
    font-size: var(--text-sm);
    color: var(--sol-gray-600);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ============================================
   STAGGERED LAYOUT
   ============================================ */

.staggered {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.staggered > *:nth-child(even) {
    transform: translateY(var(--space-12));
}

@media (max-width: 640px) {
    .staggered { grid-template-columns: 1fr; }
    .staggered > *:nth-child(even) { transform: none; }
}

/* ============================================
   NICHE CARDS
   ============================================ */

.niche-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.niche-card:hover {
    box-shadow: var(--shadow-xl);
}

.niche-card-visual {
    position: absolute;
    inset: 0;
}

.niche-card-visual svg,
.niche-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.niche-card:hover .niche-card-visual img {
    transform: scale(1.05);
}

/* Arrow indicator */
.niche-card h3 {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.niche-card-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.niche-card:hover .niche-card-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.niche-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-20) var(--space-6) var(--space-6);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 80%, transparent 100%);
}

.niche-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--sol-white);
    margin: 0 0 4px 0;
}

.niche-card p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Niche backgrounds */
.niche-allotment { background: linear-gradient(145deg, #059669 0%, #065f46 50%, #064e3b 100%); }
.niche-charity { background: linear-gradient(145deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%); }
.niche-council { background: linear-gradient(145deg, #475569 0%, #334155 50%, #1e293b 100%); }
.niche-theatre { background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 40%, #5b21b6 100%); }
.niche-museum { background: linear-gradient(145deg, #5c4033 0%, #4a3728 50%, #352518 100%); }
.niche-scouts { background: linear-gradient(145deg, #22c55e 0%, #16a34a 40%, #15803d 100%); }

/* ============================================
   UTILITIES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow { max-width: 720px; }

.section { padding: var(--space-24) var(--space-6); }
.section-sm { padding: var(--space-16) var(--space-6); }

.text-center { text-align: center; }
.text-white { color: var(--sol-white); }
.text-muted { color: var(--sol-gray-500); }

.bg-white { background: var(--sol-white); }
.bg-gray { background: var(--sol-gray-50); }
.bg-dark { background: var(--sol-dark); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-6 { margin-top: var(--space-6); }
