/* ═══════════════════════════════════════════════════
   about.css — About Page Styles
   Loaded via <HeadContent> in About.razor
═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────
   INTRO SPLIT SECTION
───────────────────────────────────────────────── */
.about-intro {
    background: var(--bg, #fff);
    padding: 80px 0 72px;
    border-bottom: 1px solid var(--border, #e8e8e8);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
}

.eyebrow-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand, #0b74d1);
    background: var(--brand-light, #e8f2fb);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.intro-heading {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text, #111);
    margin-bottom: 20px;
}

.intro-heading em {
    font-style: normal;
    color: var(--brand, #0b74d1);
    position: relative;
    background: linear-gradient(
        100deg,
        var(--brand, #0b74d1) 0%,
        #58b0ff 36%,
        var(--brand, #0b74d1) 52%,
        #3a97f0 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-heading em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand, #0b74d1), #58b0ff 60%, #3a97f0);
    border-radius: 2px;
}

.intro-body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-2, #555);
    max-width: 520px;
    margin-bottom: 36px;
}

.intro-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────
   CTA BUTTONS (scoped to .about-intro to avoid
   conflicting with the .btn-solid in app.css which
   requires the .btn base class)
───────────────────────────────────────────────── */
.about-intro .btn-solid {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--brand, #0b74d1);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-intro .btn-solid:hover {
    background: #fff;
    color: var(--brand, #0b74d1);
    border-color: var(--brand, #0b74d1);
    box-shadow: 0 6px 20px rgba(11, 116, 209, .18);
    transform: translateY(-1px) scale(1.02);
}

.about-intro .btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border: 1.5px solid var(--border, #e8e8e8);
    color: var(--text, #111);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.about-intro .btn-ghost:hover {
    border-color: var(--brand, #0b74d1);
    color: var(--brand, #0b74d1);
}

/* ─────────────────────────────────────────────────
   SERVICE LOGOS CARD (intro right panel)
───────────────────────────────────────────────── */
.service-logos-card {
    background: var(--surface, #f8f9fa);
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    margin-bottom: 24px;
}

.svc-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.svc-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-light, #e8f2fb);
    border: 1px solid rgba(11, 116, 209, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand, #0b74d1);
    font-size: 22px;
    transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}

.svc-logo-item:hover .svc-logo-icon {
    background: var(--brand, #0b74d1);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 116, 209, .25);
}

.svc-logo-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3, #999);
}

.svc-logo-divider {
    width: 1px;
    height: 50px;
    background: var(--border, #e8e8e8);
    flex-shrink: 0;
}

/* Logo frame */
.logo-frame {
    background: var(--surface, #f8f9fa);
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    margin-bottom: 16px;
}

/* Inner animated brand group */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: brandFloat 4s ease-in-out infinite;
    will-change: transform;
}

.brand-lockup-img {
    height: 82px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    animation: brandGlow 4s ease-in-out infinite;
    will-change: filter;
}

.brand-lockup-text {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1, #1a1a2e);
    letter-spacing: -0.4px;
    white-space: nowrap;
}

[data-theme="dark"] .brand-lockup-text {
    color: #e2e8f0;
}

@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

@keyframes brandGlow {
    0%, 100% { filter: drop-shadow(0 2px 4px rgba(11, 116, 209, 0.10)); }
    50%       { filter: drop-shadow(0 6px 18px rgba(11, 116, 209, 0.34)); }
}

.intro-since {
    font-size: 13px;
    color: var(--text-3, #999);
    text-align: center;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.since-year {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand, #0b74d1);
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* ─────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────── */

/* Staggered entrance — intro left column */
.about-intro .eyebrow-tag {
    animation: aboutFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.05s;
}

.about-intro .intro-body {
    animation: aboutFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.2s;
}

.about-intro .intro-cta-row {
    animation: aboutFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.38s;
}

@keyframes aboutFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Right-side cards: staggered entrance + subtle float */
.intro-right .service-logos-card {
    transition: box-shadow .3s ease;
    animation:
        cardFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both,
        cardFloat  6s ease-in-out 1.2s infinite;
}

.intro-right .logo-frame {
    transition: box-shadow .3s ease;
    animation: cardFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

.intro-right .intro-since {
    animation: cardFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both;
}

.intro-right .service-logos-card:hover,
.intro-right .logo-frame:hover {
    animation-play-state: paused;
    box-shadow: 0 18px 44px rgba(11, 116, 209, .22);
}

.logo-frame:hover .brand-lockup {
    animation-play-state: paused;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .about-intro .eyebrow-tag,
    .about-intro .intro-body,
    .about-intro .intro-cta-row,
    .intro-right .service-logos-card,
    .intro-right .logo-frame,
    .intro-right .intro-since,
    .brand-lockup,
    .brand-lockup-img {
        animation: none;
    }
}

/* ─────────────────────────────────────────────────
   STORY / TIMELINE SECTION
───────────────────────────────────────────────── */
.story-section {
    background: var(--surface, #f8f9fa);
    padding: 88px 0;
}

.story-header {
    text-align: center;
    margin-bottom: 64px;
}

.story-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: var(--text, #111);
    margin: 12px 0 12px;
}

.story-sub {
    font-size: 16px;
    color: var(--text-2, #666);
}

.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 16px;
}

/* Center vertical line */
.tl-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border, #e8e8e8);
    transform: translateX(-50%);
    z-index: 0;
}

/* Timeline rows */
.tl-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.tl-item.tl-left {
    flex-direction: row;
    justify-content: flex-end;
    padding-right: calc(50% + 32px);
}

.tl-item.tl-right {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: calc(50% + 32px);
}

/* Dot */
.tl-dot {
    width: 14px;
    height: 14px;
    background: var(--brand, #0b74d1);
    border: 3px solid var(--surface, #f8f9fa);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px var(--brand, #0b74d1);
    flex-shrink: 0;
}

/* Cards */
.tl-card {
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 14px;
    padding: 24px 28px;
    width: 100%;
    max-width: 340px;
    transition: box-shadow .2s, transform .2s;
}

.tl-card:hover {
    box-shadow: 0 8px 24px rgba(11, 116, 209, 0.10);
    transform: translateY(-2px);
}

.tl-card-accent {
    border-color: var(--brand, #0b74d1);
    background: var(--brand-light, #e8f2fb);
}

.tl-year {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand, #0b74d1);
    margin-bottom: 8px;
}

.tl-event {
    font-size: 17px;
    font-weight: 700;
    color: var(--text, #111);
    margin-bottom: 8px;
}

.tl-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-2, #666);
    margin: 0;
}

/* ─────────────────────────────────────────────────
   WHY CHOOSE US — ACCORDION
───────────────────────────────────────────────── */
.why-us-section {
    background: var(--bg, #fff);
}

.why-us-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface, #f8f9fa);
    transition: border-color .2s;
}

.accordion-item.open {
    border-color: var(--brand, #0b74d1);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #111);
    cursor: pointer;
    text-align: left;
    transition: background .15s;
    font-family: inherit;
}

.accordion-item.open .accordion-header {
    color: var(--brand, #0b74d1);
}

.accordion-header:hover {
    background: rgba(0, 0, 0, .03);
}

.accordion-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand, #0b74d1);
    min-width: 26px;
}

.accordion-arrow {
    margin-left: auto;
    font-size: 11px;
    opacity: .6;
}

.accordion-body {
    padding: 0 18px 16px 58px;
    font-size: 14px;
    color: var(--text-2, #555);
    line-height: 1.65;
}

/* ─────────────────────────────────────────────────
   CONTACT + FEEDBACK SECTION
───────────────────────────────────────────────── */
.contact-feedback-section {
    background: var(--surface, #f8f9fa);
}

.contact-feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.cf-form-col,
.cf-info-col {
    display: flex;
    flex-direction: column;
}

.cf-sub {
    max-width: none;
    margin: 0 0 28px;
    text-align: left;
}

.cf-contact-intro {
    text-align: left;
    margin-bottom: 28px;
}

.cf-contact-items {
    max-width: none;
    margin: 0;
}

/* Feedback card */
.feedback-card {
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e8e8e8);
    border-radius: var(--radius, 16px);
    padding: 40px 44px;
    width: 100%;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Field labels */
.fb-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2, #555);
    display: block;
    margin-bottom: 6px;
}

.optional-tag {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-3, #8a97aa);
}

.required-star {
    color: #ef4444;
    margin-left: 2px;
}

/* Validation */
.input-error {
    border-color: #ef4444 !important;
}

.field-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: block;
}

/* Submit button spinner (relies on @keyframes spin from app.css) */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Toast messages */
.fb-success-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, .08);
    border: 1px solid rgba(16, 185, 129, .3);
    color: #059669;
    padding: 14px 18px;
    border-radius: var(--radius-sm, 8px);
    font-size: 14px;
    font-weight: 500;
    animation: fadeSlideIn .3s ease;
}

.fb-error-toast {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .25);
    color: #dc2626;
    padding: 14px 18px;
    border-radius: var(--radius-sm, 8px);
    font-size: 14px;
    font-weight: 500;
    animation: fadeSlideIn .3s ease;
}

/* ─────────────────────────────────────────────────
   CONTACT INFO (right column)
───────────────────────────────────────────────── */
.contact-intro {
    color: var(--text-2, #555);
    font-size: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-light, #e8f2fb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand, #0b74d1);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text, #111);
}

.contact-details p,
.contact-details a {
    color: var(--text-2, #555);
    font-size: 14px;
    line-height: 1.6;
}

.contact-details a {
    color: var(--brand, #0b74d1);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.country-label {
    font-weight: 500;
    margin-right: 4px;
}

/* ─────────────────────────────────────────────────
   FORM UTILITIES (feedback form)
───────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2, #555);
}

.form-input {
    padding: 12px 14px;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: var(--radius-sm, 8px);
    font-size: 14px;
    background: var(--surface, #f8f9fa);
    color: var(--text, #111);
    font-family: inherit;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand, #0b74d1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.success-message {
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .3);
    color: #10b981;
    padding: 12px 16px;
    border-radius: var(--radius-sm, 8px);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.error-message {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: var(--radius-sm, 8px);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ─────────────────────────────────────────────────
   MAP SECTION
───────────────────────────────────────────────── */
.map-section {
    background: var(--surface, #f8f9fa);
    padding: 56px 0;
}

.mapSize {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    border: 0;
    display: block;
}

.map-iframe-wrap {
    width: 100%;
    min-width: 0;
}

/* ─────────────────────────────────────────────────
   RESPONSIVE DESIGN
───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }

    .intro-since {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    /* Collapse timeline to single column */
    .tl-line {
        left: 20px;
        transform: none;
    }

    .tl-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .tl-item.tl-left,
    .tl-item.tl-right {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 52px;
        padding-right: 0;
    }

    .tl-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .intro-right {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .contact-feedback-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mapSize {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .about-intro {
        padding: 48px 0 40px;
    }

    .intro-heading {
        font-size: 28px;
    }

    .intro-body {
        font-size: 15px;
    }

    .intro-cta-row {
        flex-direction: column;
    }

    .about-intro .btn-solid,
    .about-intro .btn-ghost {
        justify-content: center;
        text-align: center;
    }

    .service-logos-card {
        padding: 16px;
        gap: 8px;
    }

    .svc-logo-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .feedback-card {
        padding: 24px 16px;
    }

    .contact-feedback-grid {
        gap: 32px;
    }

    .story-section {
        padding: 60px 0;
    }

    .mapSize {
        height: 280px;
    }
}

@media (max-width: 360px) {
    .service-logos-card {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .svc-logo-divider {
        width: 40px;
        height: 1px;
    }

    .feedback-card {
        padding: 20px 12px;
    }
}
