/* ============================================================
   SimOnlyCity — Complete Stylesheet
   Industrial Glow Theme
   ============================================================ */

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

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
    font: inherit;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    line-height: 1.2;
}

p {
    overflow-wrap: break-word;
}

/* ----- Custom Properties ----- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #ff6b00;
    --accent-light: #ff8c33;
    --accent-glow: rgba(255, 107, 0, 0.4);
    --accent-glow-strong: rgba(255, 107, 0, 0.6);
    --border-color: #333333;
    --card-bg: #1a1a1a;
    --container-width: 1200px;
    --header-height: 70px;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* ----- Body — CSS Brick Wall Texture + Vignette ----- */
body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Helvetica Neue",
        sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    background-color: #1a1a1a;
    background-image:
    /* Layer 1: Heavy radial vignette */
        radial-gradient(
            ellipse at center,
            transparent 0%,
            rgba(0, 0, 0, 0.05) 20%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.85) 75%,
            #000 100%
        ),
        /* Layer 2: Horizontal mortar lines */
        repeating-linear-gradient(
                to bottom,
                transparent 0px,
                transparent 23px,
                #2c2c2c 23px,
                #2c2c2c 25px
            ),
        /* Layer 3: Primary vertical mortar lines */
        repeating-linear-gradient(
                to right,
                transparent 0px,
                transparent 58px,
                #2c2c2c 58px,
                #2c2c2c 60px
            ),
        /* Layer 4: Offset vertical mortar lines for stagger */
        repeating-linear-gradient(
                to right,
                transparent 0px,
                transparent 28px,
                rgba(44, 44, 44, 0.35) 28px,
                rgba(44, 44, 44, 0.35) 30px
            ),
        /* Layer 5: Subtle brick-face colour variation */
        repeating-linear-gradient(
                to bottom,
                #1a1a1a 0px,
                #1a1a1a 25px,
                #1d1d1d 25px,
                #1d1d1d 50px
            );
    background-size:
        100% 100%,
        60px 25px,
        60px 25px,
        60px 50px,
        60px 50px;
    background-position:
        center center,
        0 0,
        0 0,
        30px 25px,
        0 0;
    background-blend-mode: multiply;
    background-attachment: fixed;
}

/* ----- Typography ----- */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

strong,
b {
    font-weight: 700;
    color: var(--text-primary);
}

em,
i {
    font-style: italic;
}

/* ----- Container Utility ----- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    color: #fff;
    box-shadow: 0 0 25px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.93);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* Desktop navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    padding: 0.25rem 0;
    position: relative;
}

.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
    width: 100%;
}

.nav-desktop .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.nav-desktop .btn::after {
    display: none;
}

.nav-desktop .btn:hover {
    color: #fff;
}

/* Hamburger button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hamburger open state */
.nav-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 999;
}

.nav-open .nav-mobile {
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-mobile .btn {
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.nav-mobile .btn:hover {
    color: #fff;
}

/* Desktop breakpoint */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .nav-mobile {
        display: none;
    }
}

/* Main content push below fixed header */
main {
    padding-top: var(--header-height);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.25rem 3rem;
    min-height: calc(80vh - var(--header-height));
}

.hero-logo {
    width: 280px;
    max-width: 80%;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 0 30px var(--accent-glow))
        drop-shadow(0 0 60px rgba(255, 107, 0, 0.2));
    animation: heroFadeIn 1s ease-out both;
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    animation: heroFadeIn 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: heroFadeIn 1s ease-out 0.4s both;
}

.hero .btn {
    animation: heroFadeIn 1s ease-out 0.6s both;
}

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

@media (min-width: 768px) {
    .hero {
        padding: 6rem 1.25rem 4rem;
    }

    .hero-logo {
        width: 380px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-logo {
        width: 420px;
    }
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
    padding: 3rem 0 4rem;
}

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

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 20px var(--accent-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .features {
        padding: 4rem 0 5rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

/* ============================================================
   ABOUT / BIO PAGE
   ============================================================ */
.about-page {
    padding: 4rem 0 3rem;
}

.about-page .container {
    max-width: 800px;
}

.about-page h1 {
    margin-bottom: 2.5rem;
    text-align: center;
}

.about-content {
    font-size: 1.0625rem;
    line-height: 1.85;
}

.about-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--text-primary);
}

.about-content a {
    color: var(--accent);
}

.about-content a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Blockquote — signature orange left border */
.about-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--accent);
    background-color: rgba(255, 107, 0, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.about-content blockquote p {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 0;
}

/* Lists in content */
.about-content ul,
.about-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-content ul {
    list-style: disc;
}

.about-content ol {
    list-style: decimal;
}

.about-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .about-page {
        padding: 5rem 0 4rem;
    }

    .about-page h1 {
        font-size: 2.75rem;
    }
}

/* ============================================================
   QUESTIONNAIRE PAGE
   ============================================================ */
.questionnaire-page {
    padding: 4rem 0 3rem;
}

.questionnaire-page .container {
    max-width: 800px;
}

.questionnaire-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.questionnaire-intro h1 {
    margin-bottom: 1rem;
}

.questionnaire-intro p {
    font-size: 1.0625rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tally form embed wrapper */
.tally-embed {
    min-height: 400px;
    background-color: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tally-embed iframe {
    display: block;
    width: 100%;
    min-height: 500px;
    border: none;
    background-color: transparent;
}

/* Coming soon placeholder */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-height: 300px;
}

.coming-soon-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.coming-soon h2 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.coming-soon p {
    color: var(--text-secondary);
    max-width: 400px;
}

@media (min-width: 768px) {
    .questionnaire-page {
        padding: 5rem 0 4rem;
    }
}

/* ============================================================
   PRE-FOOTER CARDS
   ============================================================ */
.prefooter {
    padding: 3rem 0 4rem;
    border-top: 1px solid rgba(51, 51, 51, 0.3);
}

.prefooter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.prefooter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    min-height: 160px;
}

.prefooter-card:hover {
    text-decoration: none;
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 20px var(--accent-glow);
}

.prefooter-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.prefooter-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.prefooter-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.prefooter-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .prefooter {
        padding: 4rem 0 5rem;
    }

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

    .prefooter-card {
        padding: 2rem 1.25rem;
        min-height: 200px;
    }

    .prefooter-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .prefooter-card h3 {
        font-size: 1.125rem;
    }

    .prefooter-card p {
        font-size: 0.875rem;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    padding: 2.5rem 0;
    background-color: rgba(10, 10, 10, 0.8);
    border-top: 1px solid var(--border-color);
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition);
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    box-shadow: 0 0 10px var(--accent-glow);
}

.social-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================================
   DEFAULT SINGLE PAGE
   ============================================================ */
.default-page {
    padding: 4rem 0 3rem;
}

.default-page .container {
    max-width: 800px;
}

.default-page h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.default-page .page-content {
    font-size: 1.0625rem;
    line-height: 1.85;
}

.default-page .page-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.default-page .page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.default-page .page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.default-page .page-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--accent);
    background-color: rgba(255, 107, 0, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.default-page .page-content blockquote p {
    color: var(--text-primary);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0;
}

.default-page .page-content ul,
.default-page .page-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.default-page .page-content ul {
    list-style: disc;
}

.default-page .page-content ol {
    list-style: decimal;
}

.default-page .page-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .default-page {
        padding: 5rem 0 4rem;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to content link */
.skip-link {
    position: fixed;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    text-decoration: none;
    color: #fff;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body {
        background-attachment: scroll;
    }
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}
.fade-in-delay-2 {
    animation-delay: 0.2s;
}
.fade-in-delay-3 {
    animation-delay: 0.3s;
}
.fade-in-delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */
@media (max-width: 374px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
