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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* === Typography === */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* === Layout === */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1a1a2e;
    text-decoration: none;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: #c41e3a;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #c41e3a;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: #c41e3a;
    color: #fff;
}

/* === Buttons === */
.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #c41e3a;
    color: #fff;
}

.btn-primary:hover {
    background: #a01830;
    transform: translateY(-1px);
}

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

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    padding: 6rem 1.5rem 4rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.4) 0%, rgba(26, 26, 46, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -0.15em;
    height: 0.12em;
    background: #c41e3a;
    border-radius: 0.1em;
    transform: rotate(-1deg) skewX(-5deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
}

.hero .btn {
    font-size: 1.125rem;
    padding: 1.125rem 2.5rem;
}

/* === Why Section === */
.section-why {
    background: #fafafa;
}

.section-why .section-title {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

.why-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.why-content p {
    margin-bottom: 1.5rem;
    color: #4a4a5a;
}

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

/* === Who Section (Cards) === */
.section-who {
    background: #fff;
}

.section-who .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fafafa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-title {
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.card-body {
    color: #4a4a5a;
    font-size: 1rem;
}

/* === About Section === */
.section-about {
    background: #fafafa;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: #4a4a5a;
}

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

/* === Ready / Contact Section === */
.section-ready {
    background: #fff;
}

.section-ready .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ready-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 1rem;
    color: #4a4a5a;
}

.ready-intro:last-of-type {
    margin-bottom: 3rem;
}

/* === Contact Form === */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
    background: #fff;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

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

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.form-success {
    background: #dcfce7;
    color: #166534;
}

.form-error {
    background: #fee2e2;
    color: #991b1b;
}

/* === Footer === */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === Accessibility === */
:focus-visible {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Ghost Content Widths === */
.kg-width-wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-width-full img {
    width: 100%;
}

/* === Ghost Content Cards === */
.kg-card {
    margin: 1.5rem 0;
}

.kg-image-card img {
    width: 100%;
}

.kg-gallery-card,
.kg-gallery-row,
.kg-gallery-image {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.kg-bookmark-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.kg-bookmark-content {
    padding: 1.5rem;
}

.kg-bookmark-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    color: #666;
    font-size: 0.875rem;
}

/* === Post/Page Content === */
.post-content,
.page-content {
    max-width: 700px;
    margin: 0 auto;
}

.post-content p,
.page-content p {
    margin-bottom: 1.5rem;
}

.post-content img,
.page-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

/* Cloudflare Turnstile */
.cf-turnstile {
    margin-bottom: 1rem;
}
