/* ===== DOPA WEBSITE - CUSTOM STYLES ===== */

:root {
    --color-primary: #1a5f7a;
    --color-secondary: #0d3b52;
    --color-accent: #ff9f1c;
    --color-accent-light: #ffb84d;
    --color-danger: #e74c3c;
    --color-success: #27ae60;
    --color-light: #f8f9fa;
    --color-dark: #2c3e50;
    --color-gray: #95a5a6;
    --color-border: #ecf0f1;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px);
}

/* Full-width section with container inside */
.section-full {
    width: 100%;
    padding: clamp(40px, 8vw, 80px) 0;
}

/* ===== NAVBAR ===== */
.navbar {
    background: white;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

.nav-logo a {
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
    background: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 600px;
    height: 600px;
    background: rgba(255, 159, 28, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(20px, 5vw, 40px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    font-style: italic;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    flex-shrink: 0;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: transparent;
}

.hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: opacity 0.3s ease;
}

.hero-svg.is-fading {
    opacity: 0;
}

/* ===== STATS SECTION ===== */
.stats {
    background-color: var(--color-light);
    padding: clamp(40px, 6vw, 60px) clamp(16px, 5vw, 40px);
    width: 100%;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: clamp(20px, 4vw, 40px);
    text-align: center;
}

.stat-card {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FEATURED AIRCRAFT ===== */
.featured-aircraft {
    padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
    width: 100%;
}

.featured-aircraft h2,
.recent-discussions h2,
.guiding-principles h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 10px;
    color: var(--color-primary);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: 40px;
}

.aircraft-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.aircraft-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.aircraft-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aircraft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    font-size: 5rem;
    opacity: 0.5;
}

.aircraft-info {
    padding: 20px;
}

.aircraft-info h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.aircraft-year {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.aircraft-owner {
    color: var(--color-gray);
    margin: 5px 0;
    font-size: 0.95rem;
}

.aircraft-description {
    color: var(--color-dark);
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.featured-likes-display {
    margin-top: 12px;
    padding: 6px 10px;
    background: #fff5f5;
    border-radius: 6px;
    color: #e63946;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.section-cta {
    text-align: center;
}

/* ===== RECENT DISCUSSIONS ===== */
.recent-discussions {
    padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
    background-color: var(--color-light);
    width: 100%;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.topic-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.topic-item:hover {
    box-shadow: var(--shadow-md);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 10px;
}

.topic-header h4 {
    flex: 1;
    margin: 0;
    color: var(--color-primary);
}

.topic-header a {
    color: var(--color-primary);
    text-decoration: none;
}

.topic-header a:hover {
    color: var(--color-accent);
}

.topic-category {
    background-color: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.topic-meta {
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* ===== MEMBERS MAP CALLOUT ===== */
.members-map-callout {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.05) 0%, rgba(255, 159, 28, 0.05) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.members-map-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a5f7a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 0;
}

.callout-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.callout-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.members-map-callout h2 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.members-map-callout p {
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-accent {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-accent:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== NEWSLETTER SIGNUP ===== */
.newsletter-signup {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-signup h2 {
    color: white;
    margin-bottom: 15px;
}

.newsletter-signup p {
    margin-bottom: 25px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 28px;
    font-size: 1rem;
}

.newsletter-latest {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 15px;
}

/* ===== GUIDING PRINCIPLES ===== */
.guiding-principles {
    padding: 80px 20px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.principle-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border-top: 4px solid var(--color-accent);
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.principle-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.principle-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.principle-card p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 100px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--color-accent);
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer-section ul {
    list-style: none;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links li {
    flex: 0 0 auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 clamp(16px, 4vw, 32px);
    }
    
    .hero .container {
        gap: 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        height: 300px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .topic-header {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 640px) {
    .stats .container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 40px;
        width: auto;
    }
    
    .stats .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .aircraft-grid {
        grid-template-columns: 1fr;
    }
    
    .aircraft-card {
        max-width: 100%;
    }
    
    .topics-list {
        gap: 15px;
    }
    
    .topic-item {
        padding: 15px;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links,
    .social-links {
        justify-content: center;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .hero-cta {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .aircraft-info {
        padding: 15px;
    }
}

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

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-menu a,
    .nav-toggle {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 12px 16px;
    }
}

/* Improve scrolling on mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        position: relative;
    }
}

/* Hide elements on mobile */
.mobile-hidden {
    display: none;
}

@media (min-width: 769px) {
    .mobile-hidden {
        display: block;
    }
    
    .desktop-hidden {
        display: none;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive iframes and embeds */
iframe,
embed,
object {
    max-width: 100%;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-cta,
    .nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}
