/*
Theme Name: Theaicon
Theme URI: https://theaiconsultancy.eu
Author: Theaicon
Author URI: https://theaiconsultancy.eu
Description: Dark SaaS landing-page theme for The AI Consultancy, with English and Irish (Gaeilge) support via Polylang.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theaicon
*/

:root {
    --bg: #0b0c15;
    --bg-elevated: #121420;
    --bg-card: #161927;
    --text: #e8eaf2;
    --text-muted: #9aa1b5;
    --primary: #7c5cff;
    --primary-hover: #9374ff;
    --accent: #00d4aa;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 1rem;
    --max-width: 1200px;
    --narrow: 720px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

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

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

.container {
    width: min(92%, var(--max-width));
    margin-inline: auto;
}

.container.narrow {
    width: min(92%, var(--narrow));
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 12, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--text);
}

.lang-switcher ul {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.lang-switcher a {
    color: var(--text-muted);
}

.lang-switcher .current-lang a {
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s, background 0.2s;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero */
.hero {
    position: relative;
    padding: 7rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: -40% 0 0;
    background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.25), transparent 55%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 1.25rem;
    max-width: 900px;
    margin-inline: auto;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* Trust bar */
.trust-bar {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trust-bar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-label {
    display: block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 0 2.5rem;
}

.section-body {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
}

.what-is,
.contact-section {
    text-align: center;
}

.what-is .section-body,
.contact-section .section-subtitle {
    margin-inline: auto;
}

/* Grid & cards */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* CTA blocks */
.cta-block {
    background: var(--bg-elevated);
    text-align: center;
}

.cta-block .section-body {
    margin-inline: auto;
    margin-bottom: 1.75rem;
}

/* Courses */
.courses {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.card-course {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.course-level {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-course .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 6rem 0;
}

.final-cta .section-title {
    margin-bottom: 1.5rem;
}

/* Contact form */
.contact-form {
    text-align: left;
    margin-top: 2rem;
}

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

.form-row label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-notice {
    padding: 1rem;
    border-radius: 0.65rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-success {
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent);
}

.form-error {
    background: rgba(255, 90, 90, 0.12);
    color: #ff7a7a;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        inset: 4.5rem 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s, opacity 0.25s;
    }

    .main-navigation.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .lang-switcher {
        margin-bottom: 1.5rem;
    }

    .nav-cta {
        width: 100%;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4.5rem 0 3.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}
