@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400&display=swap');

:root {
    --orange-primary: #E75A2A;
    --orange-hover: #D84E1F;
    --grey-light: #F5F5F5;
    --grey-medium: #E0E0E0;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
  Cross-platform fallback:
  Gill Sans MT is not available on most Linux/macOS systems.
  As a similar-looking free alternative we use "Source Sans 3" (SIL OFL).
  - If the Google Fonts import is removed/blocked, the system font stack still works.
*/

/*
  Font availability note:
  "Gill Sans MT" is common on Windows but usually not present on Linux/macOS.
  For identical typography everywhere you must ship a properly licensed webfont
  (WOFF2/WOFF). Until then we rely on a system font stack.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Gill Sans MT", "Gill Sans", "Source Sans 3", Calibri, "Trebuchet MS", Arial, sans-serif;
    color: var(--black);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography - enforce Gill Sans MT (non-bold) across public pages */
body, button, input, select, textarea {
    font-weight: 400;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 400;
}

/* Header Styles */
header {
    background-color: var(--grey-light);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.header-top a {
    text-decoration: none;
    color: inherit;
}

.logo {
    height: 60px;
    width: auto;
    animation: fadeInLogo 0.8s ease-out;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-title {
    font-family: inherit;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--black);
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--black);
    text-decoration: none;
}

nav {
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 2.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 0.3rem;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--orange-primary);
}

/* Hero Image */
.hero {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    display: block;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Main Content Section */
.content-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.even-section {
    container-type: inline-size;
    container-name: even-section;
    display: flex;
    flex-direction: column;
}

.image-container {
    align-self: start;
}

.building-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.content-text h2 {
    font-family: inherit;
    font-size: 2.5rem;
    color: var(--orange-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 400;
}

.content-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.cta-link:hover {
    color: var(--orange-hover);
}

.arrow {
    transition: transform 0.3s ease;
}

.cta-link:hover .arrow {
    transform: translateX(5px);
}

/* Page Content */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    min-height: 60vh;
}

.page-content h1 {
    font-family: inherit;
    font-size: 3rem;
    color: var(--orange-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.page-content h2 {
    font-family: inherit;
    font-size: 2rem;
    color: var(--black);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.page-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.page-content ul {
    margin: 1.5rem 0 1.5rem 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content ul li {
    margin-bottom: 0.5rem;
}

/* Content section variations */
.content-section .content-text ul {
    margin: 1rem 0 1rem 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.content-section .content-text ul li {
    margin-bottom: 0.75rem;
}

.content-section .content-text h3 {
    color: var(--black);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    font-weight: 400;
    font-family: inherit;
}

.placeholder-text {
    color: #666;
    font-style: italic;
    padding: 4rem 2rem;
    text-align: center;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom {
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--orange-primary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin: 3rem auto;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@container even-section (max-width: 963px) {
    .image-first {
        order: 2;
    }

    .text-second {
        order: 1;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .hero-image {
        height: 50vh;
        min-height: 300px;
    }
    
    .content-text h2 {
        font-size: 2rem;
    }
    
    .content-text p {
        font-size: 1.05rem;
    }
    
    .content-section {
        margin: 2rem auto;
    }
    
    .page-content {
        padding: 3rem 2rem;
    }
    
    .page-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .content-section {
        padding: 0 1rem;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.95rem;
    }
    
    .content-text h2 {
        font-size: 1.75rem;
    }
    
    footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .page-content {
        padding: 2rem 1rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--orange-primary);
    outline-offset: 3px;
}

/* Contact Page Styles */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-page h1 {
    font-family: inherit;
    font-size: 3rem;
    color: var(--orange-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--orange-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-details h3 {
    font-family: inherit;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.contact-details p {
    line-height: 1.6;
    color: #333;
}

.contact-details a {
    color: var(--orange-primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--orange-hover);
}

.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--grey-light);
    border-radius: 50%;
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

.social-links-contact a:hover {
    background-color: var(--orange-primary);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form Styles */
.contact-form-container {
    background-color: var(--grey-light);
    padding: 2.5rem;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 400;
    color: var(--black);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--grey-medium);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background-color: var(--orange-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: var(--orange-hover);
}

.submit-button svg {
    transition: transform 0.3s ease;
}

.submit-button:hover svg {
    transform: translateX(5px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-button:disabled:hover {
    background-color: var(--orange-primary);
}

.submit-button:disabled:hover svg {
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* reCAPTCHA v3 badge hidden (attribution text shown instead per Google ToS) */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-notice {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: var(--orange-primary);
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for contact page */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-page h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 3rem 2rem;
    }
    
    .contact-page h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 2rem 1rem;
    }
    
    .submit-button {
        width: 100%;
    }
}

/* Support Page Styles */
.support-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.support-header {
    text-align: center;
    margin-bottom: 4rem;
}

.support-header h1 {
    font-family: inherit;
    font-size: 3rem;
    color: var(--orange-primary);
    margin-bottom: 1.5rem;
}

.support-intro {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.support-section {
    margin-bottom: 5rem;
}

.support-section h2 {
    font-family: inherit;
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.support-section > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Donation Platforms */
.donation-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.platform-card {
    background: var(--grey-light);
    padding: 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--black);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.platform-card:hover {
    border-color: var(--orange-primary);
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--orange-primary);
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.platform-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.platform-cta {
    color: var(--orange-primary);
    font-weight: 400;
    margin-top: auto;
}

/* Bank Transfer Section */
.bank-section {
    background: var(--grey-light);
    padding: 3rem;
    border-radius: 12px;
}

.bank-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bank-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.iban-section label {
    display: block;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.iban-box {
    display: flex;
    gap: 0.5rem;
}

.iban-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--grey-medium);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 400;
    background: white;
}

.copy-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--orange-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 400;
    transition: var(--transition);
    white-space: nowrap;
}

.copy-button:hover {
    background: var(--orange-hover);
}

.bank-info p {
    margin-bottom: 0.75rem;
    color: #666;
}

/* QR Code Section */
.qr-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.qr-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.qr-section > p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

#qrcode {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

#qrcode img {
    border: 4px solid var(--grey-light);
    border-radius: 8px;
}

.qr-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
}

/* Other Support Options */
.support-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.support-option {
    padding: 2rem;
    background: white;
    border: 2px solid var(--grey-light);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.support-option:hover {
    border-color: var(--orange-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.option-icon {
    width: 70px;
    height: 70px;
    background: var(--grey-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--orange-primary);
}

.support-option h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.support-option p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Support Footer */
.support-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--grey-light);
}

.thank-you {
    font-size: 1.3rem;
    color: var(--orange-primary);
    font-weight: 400;
    font-family: inherit;
}

/* Responsive Support Page */
@media (max-width: 968px) {
    .donation-platforms {
        grid-template-columns: 1fr;
    }
    
    .bank-container {
        grid-template-columns: 1fr;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .support-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .support-page {
        padding: 3rem 2rem;
    }
    
    .support-header h1 {
        font-size: 2rem;
    }
    
    .support-intro {
        font-size: 1.1rem;
    }
    
    .bank-section {
        padding: 2rem;
    }
    
    .iban-box {
        flex-direction: column;
    }
    
    .copy-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .support-page {
        padding: 2rem 1rem;
    }
    
    .platform-card {
        padding: 2rem;
    }
    
    .bank-section {
        padding: 1.5rem;
    }
    
    .qr-section {
        padding: 1.5rem;
    }
    
    .support-option {
        padding: 1.5rem;
    }
}
