/* ============================================
   ABOUT & CONTACT PAGE SPECIFIC STYLES
   ============================================ */

/* Hero section for about page */
.about-hero {
    background: linear-gradient(rgba(65, 105, 225, 0.85), rgba(30, 60, 160, 0.95)),
                url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.about-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ===== ATLAS HERO — appended override, delete to revert ===== */
.about-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 110px;
    background-image:
        radial-gradient(ellipse 60% 55% at 78% 90%, rgba(232,178,74,.18), transparent 60%),
        radial-gradient(ellipse 70% 60% at 20% 10%, rgba(40,80,200,.30), transparent 65%),
        linear-gradient(180deg, rgba(8,16,42,.62) 0%, rgba(8,14,34,.78) 55%, rgba(6,11,28,.92) 100%),
        url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?q=80&w=1900&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.about-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='760'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.5'%3E%3Ccircle cx='380' cy='380' r='90'/%3E%3Ccircle cx='380' cy='380' r='170'/%3E%3Ccircle cx='380' cy='380' r='250'/%3E%3Ccircle cx='380' cy='380' r='330'/%3E%3Ccircle cx='130' cy='120' r='60'/%3E%3Ccircle cx='130' cy='120' r='130'/%3E%3Ccircle cx='650' cy='640' r='70'/%3E%3Ccircle cx='650' cy='640' r='150'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 680px 680px;
}
.about-hero::after {
    content: ''; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,182,58,.45) 30%, rgba(80,130,255,.5) 60%, transparent);
}
.about-hero .hero-content { position: relative; z-index: 2; max-width: 860px; }
.about-hero h1 {
    font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(38px, 6vw, 64px);
    line-height: 1.06; letter-spacing: -.02em; margin-bottom: 0; text-shadow: 0 2px 24px rgba(0,0,0,.35);
    animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .3s both;
}
.about-hero h1 em { font-style: italic; font-weight: 500; color: #e8b24a; }
.about-hero p {
    font-size: clamp(16px, 2.1vw, 20px); line-height: 1.7; color: rgba(255,255,255,.9); opacity: 1;
    animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .6s both;
}
.about-hero .hero-buttons { animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .78s both; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 16px;
    font-size: 13px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: #e8b24a; margin-bottom: 22px;
    animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .15s both;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, #e8b24a); }
.hero-eyebrow::after { background: linear-gradient(90deg, #e8b24a, transparent); }
.hero-rule {
    width: 70px; height: 3px; border-radius: 2px; margin: 24px auto;
    background: linear-gradient(90deg, transparent, #e8b24a, #b8842a, transparent);
    animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .45s both;
}
.hero-scroll {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.45); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll::before { content: ''; width: 4px; height: 8px; border-radius: 3px; background: #e8b24a; animation: heroScroll 1.6s ease-in-out infinite; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes heroScroll { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
    .about-hero h1, .about-hero p, .about-hero .hero-buttons, .hero-eyebrow, .hero-rule { animation: none; }
    .hero-scroll::before { animation: none; }
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: #f9f7f2;
}

.founder-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Updated founder-image styles - circular like team members */
.founder-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 4px solid #EEF2FE;
    margin: 0 auto;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.founder-image:hover img {
    transform: scale(1.05);
}

.founder-info h3 {
    color: #1E3EA1;
    font-size: 28px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.founder-title {
    color: #f5b63a;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 18px;
}

.founder-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 17px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #f5b63a;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #EEF2FE;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    color: #1E3EA1;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.team-role {
    color: #f5b63a;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 15px;
}

.team-bio {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Approach Section */
.approach-section {
    padding: 80px 0;
    background-color: white;
}

.approach-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.approach-card {
    padding: 40px 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #f5b63a;
}

.approach-card:hover {
    background-color: #EEF2FE;
    transform: translateY(-5px);
}

.approach-icon {
    font-size: 40px;
    margin-bottom: 25px;
    color: #1E3EA1;
}

.approach-card h3 {
    color: #1E3EA1;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.approach-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #3655b4;
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.contact-info h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 28px;
    font-family: 'Playfair Display', serif;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(196, 208, 245, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #EEF2FE;
    font-size: 20px;
}

.contact-text h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-text p, .contact-text a {
    color: #C4D0F5;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #EEF2FE;
    color: #f5b63a;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    padding: 40px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: #1E3EA1;
    margin-bottom: 30px;
    font-size: 28px;
    font-family: 'Playfair Display', serif;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1E3EA1;
    font-weight: 600;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ef;
    border-radius: 8px;
    font-size: 16px;
    color: #1E3EA1;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: #f5b63a;
    box-shadow: 0 0 0 3px rgba(30, 62, 161, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background-color: #f9f7f2;
    text-align: center;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.trust-badge {
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.trust-badge i {
    font-size: 40px;
    color: #f5b63a;
    margin-bottom: 20px;
}

.trust-badge h4 {
    color: #1E3EA1;
    font-size: 16px;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: white;
}

.map-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.map-placeholder {
    text-align: center;
    padding: 40px;
}

.map-placeholder i {
    font-size: 60px;
    color: #f5b63a;
    margin-bottom: 20px;
}

.map-placeholder h4 {
    color: #1E3EA1;
    margin-bottom: 10px;
}

.map-placeholder p {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   Tour dropdown — appears below the subject selector
   when "Запит на тур" is chosen.
   ============================================ */

/* Default state: collapsed (zero height, invisible).
   overflow: hidden clips the content so it truly disappears.
   transition defines the animation speed for expand/collapse. */
.tour-dropdown-group {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0 !important; /* no gap when hidden — override .form-group default */
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

/* Expanded state: JS adds this class when subject === 'tour'.
   max-height must be larger than the actual element height for the animation to complete.
   200px is safe — the element is roughly 90px tall. */
.tour-dropdown-group.visible {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 25px !important; /* restore normal form-group spacing */
}

/* Small hint text below the tour select */
.tour-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Alert messages styling */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.contact-ajax-msg {
    animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 36px;
    }

    .about-hero p {
        font-size: 18px;
    }

    .founder-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trust-badges {
        gap: 20px;
    }

    .trust-badge {
        width: 150px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 100px 0 60px;
    }

    .about-hero h1 {
        font-size: 32px;
    }

    .about-hero p {
        font-size: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .team-grid, .approach-cards {
        grid-template-columns: 1fr;
    }

    .trust-badge {
        width: 130px;
    }

    /* Updated mobile styles for founder image */
    .founder-image {
        width: 250px;
        height: 250px;
    }

    .form-control {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .founder-image {
        width: 200px;
        height: 200px;
    }

    .trust-badge {
        width: calc(50% - 20px);
        min-width: 120px;
    }
}

/* ============================================
   AMBASSADORS SECTION
   ============================================ */
.ambassadors-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1E3EA1 0%, #2b7afc 100%);
}

.ambassadors-section .section-title {
    color: white !important;
}

.ambassadors-section .section-title::after {
    background-color: #f5b63a;
}

.ambassadors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.ambassador-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 580px;
    width: 100%;
    transition: all 0.3s ease;
}

.ambassador-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-5px);
}

.ambassador-avatar {
    flex-shrink: 0;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(245, 182, 58, 0.6);
}

.ambassador-info {
    flex: 1;
}

.ambassador-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 6px;
}

.ambassador-role {
    color: #f5b63a;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
}

.ambassador-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ambassador-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.amb-telegram {
    background: rgba(0, 136, 204, 0.3);
    color: #88ccff;
    border: 1px solid rgba(0, 136, 204, 0.4);
}
.amb-telegram:hover { background: #0088cc; color: white; }

.amb-whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #7fffb0;
    border: 1px solid rgba(37, 211, 102, 0.35);
}
.amb-whatsapp:hover { background: #25D366; color: white; }

.amb-phone {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
}
.amb-phone:hover { background: rgba(255,255,255,0.22); color: white; }

@media (max-width: 600px) {
    .ambassador-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
    }
    .ambassador-contacts {
        justify-content: center;
    }
}

/* ============================================
   AMBASSADOR CAROUSEL
   ============================================ */
.amb-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.amb-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 160px;
}

.amb-slide {
    display: none;
    animation: ambFadeIn 0.35s ease;
}

.amb-slide.active {
    display: flex;
}

@keyframes ambFadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.amb-carousel-arrow {
    background: rgba(255,255,255,0.18);
    border: none;
    color: white;
    font-size: 36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.amb-carousel-arrow:hover {
    background: rgba(255,255,255,0.35);
}

.amb-arrow-prev { margin-right: 12px; }
.amb-arrow-next { margin-left: 12px; }

.amb-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.amb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border: none;
}

.amb-dot.active {
    background: #f5b63a;
    transform: scale(1.3);
}

/* Photo inside ambassador card */
.ambassador-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .amb-carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }
    .amb-arrow-prev { margin-right: 6px; }
    .amb-arrow-next { margin-left: 6px; }
}

/* ============================================
   ACCESSIBILITY — respect OS 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;
    }
}
