/* ================================================================
   SYNERGY GRID — Contact Page Animations & Styles
   File: assets/css/contact-animations.css
   Load in contact.html <head> after preloader.css

   Brand:  Green #169c53 · Blue #4554b1 · Navy #0d0d0d
   Fonts:  Bebas Neue (display) · Cormorant Garamond (serif) · DM Sans (body)
   ================================================================ */


/* ──────────────────────────────────────────────────────────────
   PHASE 1 — HERO: frozen until preloader exits
   ────────────────────────────────────────────────────────────── */
body.page-loading .contact-hero__eyebrow,
body.page-loading .contact-hero__title,
body.page-loading .contact-hero__sub,
body.page-loading .contact-hero__scroll {
    opacity: 0 !important;
    animation-play-state: paused !important;
}
body.page-loading .contact-hero__bg img {
    opacity: 0 !important;
    transform: scale(1.1) !important;
}

/* Fire each element in sequence once preloader is done */
body.page-ready .contact-hero__bg img {
    animation: contactImgReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards !important;
}
body.page-ready .contact-hero__eyebrow {
    animation: contactHeroPop    0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.10s forwards !important;
    animation-play-state: running !important;
}
body.page-ready .contact-hero__title {
    animation: contactHeroZoom   0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards !important;
    animation-play-state: running !important;
}
body.page-ready .contact-hero__sub {
    animation: contactHeroFadeUp 0.85s ease 0.50s forwards !important;
    animation-play-state: running !important;
}
body.page-ready .contact-hero__scroll {
    animation: contactHeroFadeIn 1s ease 1.35s forwards !important;
    animation-play-state: running !important;
}

/* Preloader-skip: show everything immediately for returning visitors */
body.sg-preloader-skip .contact-hero__eyebrow,
body.sg-preloader-skip .contact-hero__title,
body.sg-preloader-skip .contact-hero__sub,
body.sg-preloader-skip .contact-hero__scroll,
body.sg-preloader-skip .contact-hero__bg img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Hero keyframes */
@keyframes contactImgReveal {
    0%   { opacity: 0; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1.04); }
}
@keyframes contactHeroPop {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes contactHeroZoom {
    0%   { opacity: 0; transform: scale(0.94) translateY(18px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes contactHeroFadeUp {
    0%   { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes contactHeroFadeIn {
    from { opacity: 0; }
    to   { opacity: 0.65; }
}


/* ──────────────────────────────────────────────────────────────
   PHASE 2 — SCROLL REVEAL (mirrors about-animations.css)
   ────────────────────────────────────────────────────────────── */
[data-sg-anim] {
    opacity: 0;
    will-change: opacity, transform;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-property: opacity, transform;
    transition-delay: var(--sg-delay, 0s);
}
[data-sg-anim="fade-up"]    { transform: translateY(48px);              transition-duration: 0.85s; }
[data-sg-anim="fade-left"]  { transform: translateX(-56px);             transition-duration: 0.9s;  }
[data-sg-anim="fade-right"] { transform: translateX(56px);              transition-duration: 0.9s;  }
[data-sg-anim="scale-up"]   { transform: scale(0.88) translateY(28px);  transition-duration: 0.85s; }
[data-sg-anim="fade-in"]    { transform: none;                          transition-duration: 0.75s; }

[data-sg-anim].sg-revealed  {
    opacity: 1;
    transform: none !important;
}

/* EM underline draw on section headings */
.contact-title em {
    position: relative;
    display: inline-block;
}
.contact-title em::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 100%; height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.sg-revealed .contact-title em::after {
    transform: scaleX(1);
}


/* ================================================================
   CONTACT HERO
   ================================================================ */
.contact-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.contact-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.contact-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    opacity: 0;
}

/* Gradient overlay — deep from bottom, lighter at top */
.contact-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(13, 13, 13, 0.40) 0%,
            rgba(13, 13, 13, 0.65) 40%,
            rgba(13, 13, 13, 0.92) 100%),
        linear-gradient(to right,
            rgba(22, 156, 83, 0.08) 0%,
            transparent 60%);
}

.contact-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.contact-hero__eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sg-green);
    display: block;
    margin-bottom: 18px;
    opacity: 0;
}

.contact-hero__title {
    font-family: var(--font-display);
    font-size: clamp(54px, 8vw, 110px);
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 0.92;
    color: #ffffff;
    margin: 0 0 28px;
    opacity: 0;
}

.contact-hero__title em {
    font-style: italic;
    font-family: var(--font-serif);
    font-size: clamp(48px, 7vw, 96px);
    letter-spacing: 2px;
    color: var(--sg-blue-light);
}

.contact-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 300;
    color: rgba(240, 237, 232, 0.70);
    max-width: 540px;
    line-height: 1.65;
    margin: 0;
    opacity: 0;
}

/* Scroll indicator */
.contact-hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
}

.contact-hero__scroll span {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.45);
}

.contact-hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(240, 237, 232, 0.35), transparent);
    animation: sg-scroll-line 1.8s ease-in-out infinite;
}

@keyframes sg-scroll-line {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50%       { transform: scaleY(0.6); opacity: 0.15; }
}


/* ================================================================
   SECTION LABEL (shared)
   ================================================================ */
.sg-section-label {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sg-green);
    display: block;
    margin-bottom: 16px;
}


/* ================================================================
   CONTACT BODY — Two-column layout
   ================================================================ */
.contact-section {
    padding: 100px 0 110px;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(69, 84, 177, 0.25) 30%,
        rgba(22, 156, 83, 0.20) 60%,
        transparent 100%);
}

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

/* ── Left column — info ── */
.contact-info__label {
    margin-bottom: 6px;
}

.contact-info__headline {
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: 3px;
    color: #fff;
    line-height: 1;
    margin: 0 0 20px;
}

.contact-info__lead {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 300;
    color: rgba(240, 237, 232, 0.60);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 340px;
}

/* Info cards stack */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, border-color 0.35s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 0%;
    background: var(--cc-accent, var(--sg-green));
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.10);
}

.contact-card:hover::before { height: 100%; }

.contact-card--blue { --cc-accent: var(--sg-blue-light); }
.contact-card--green { --cc-accent: var(--sg-green); }

.contact-card__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--cc-accent, var(--sg-green));
    transition: background 0.3s, color 0.3s;
}

.contact-card:hover .contact-card__icon {
    background: rgba(255, 255, 255, 0.07);
}



.contact-card__label {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.38);
    display: block;
    margin-bottom: 6px;
}

.contact-card__value {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 300;
    color: rgba(240, 237, 232, 0.88);
    line-height: 1.4;
    display: block;
}

.contact-card__note {
    font-family: var(--font-body);
    font-size: 11.5px;
    color: rgba(240, 237, 232, 0.35);
    display: block;
    margin-top: 3px;
}

/* Social row under cards */
.contact-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-socials__label {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.30);
    margin-right: 6px;
}

.contact-socials a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    color: rgba(240, 237, 232, 0.45);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.contact-socials a:hover {
    color: #fff;
    border-color: rgba(107, 125, 232, 0.45);
    background: rgba(107, 125, 232, 0.10);
}


/* ── Right column — form ── */
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    padding: 52px 48px;
    position: relative;
    overflow: hidden;
}

/* Subtle top-edge glow on the form card */
.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--sg-blue-light) 50%,
        transparent 100%);
    opacity: 0.35;
}

.contact-form-wrap__eyebrow {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sg-blue-light);
    display: block;
    margin-bottom: 10px;
}

.contact-form-wrap__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.8vw, 36px);
    letter-spacing: 2.5px;
    color: #fff;
    margin: 0 0 36px;
}

/* Form grid */
.sg-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sg-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sg-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-form__label {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.40);
}

.sg-form__input,
.sg-form__select,
.sg-form__textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 300;
    color: rgba(240, 237, 232, 0.85);
    outline: none;
    width: 100%;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.sg-form__input::placeholder,
.sg-form__textarea::placeholder {
    color: rgba(240, 237, 232, 0.22);
}

.sg-form__input:focus,
.sg-form__select:focus,
.sg-form__textarea:focus {
    border-color: rgba(107, 125, 232, 0.50);
    background: rgba(107, 125, 232, 0.05);
    box-shadow: 0 0 0 3px rgba(107, 125, 232, 0.08);
}

.sg-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(240,237,232,0.30)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.sg-form__select option {
    background: #1a1a2e;
    color: rgba(240, 237, 232, 0.85);
}

.sg-form__textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Submit button */
.sg-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sg-green) 0%, var(--sg-green-dark) 100%);
    border: none;
    border-radius: 2px;
    padding: 17px 40px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.sg-form__submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.sg-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(22, 156, 83, 0.40);
}

.sg-form__submit:hover::after { opacity: 1; }

.sg-form__submit i {
    font-size: 13px;
    transition: transform 0.3s;
}
.sg-form__submit:hover i { transform: translateX(4px); }

/* Sending/sent/error states */
.sg-form .loading,
.sg-form .error-message,
.sg-form .sent-message {
    display: none;
    font-family: var(--font-body);
    font-size: 12.5px;
    letter-spacing: 1px;
    margin-top: 8px;
}
.sg-form .loading { color: rgba(240, 237, 232, 0.45); }
.sg-form .error-message { color: #f87171; }
.sg-form .sent-message  { color: var(--sg-green); }


/* ================================================================
   MAP SECTION
   ================================================================ */
.map-section {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.map-section__inner {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.map-section__inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.45) invert(0.92) contrast(0.90) hue-rotate(182deg) saturate(0.7) brightness(0.85);
}

/* Map overlay label */
.map-section__badge {
    position: absolute;
    top: 32px;
    left: 32px;
    background: rgba(13, 13, 13, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    padding: 20px 24px;
    z-index: 2;
}

.map-section__badge-label {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--sg-green);
    display: block;
    margin-bottom: 6px;
}

.map-section__badge-name {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 2px;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.map-section__badge-addr {
    font-family: var(--font-body);
    font-size: 11.5px;
    color: rgba(240, 237, 232, 0.45);
    display: block;
}

.map-section__badge a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 9.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sg-blue-light);
    text-decoration: none;
    margin-top: 14px;
    transition: color 0.3s;
}
.map-section__badge a:hover { color: #fff; }
.map-section__badge a i { font-size: 11px; }


/* ================================================================
   QUICK CONTACT STRIP (WhatsApp / Phone / Email row)
   ================================================================ */
.quick-contact {
    padding: 70px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 15% 50%, rgba(22, 156, 83, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 85% 50%, rgba(69, 84, 177, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.quick-contact__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}



.quick-contact__eyebrow {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.35);
    display: block;
    margin-bottom: 10px;
}

.quick-contact__headline {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    letter-spacing: 2.5px;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.quick-contact__headline em {
    font-style: italic;
    font-family: var(--font-serif);
    color: var(--sg-green);
    font-size: 0.9em;
}

.quick-contact__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* WhatsApp button */
.btn-sg-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    border-radius: 2px;
    padding: 16px 32px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-sg-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
    color: #fff;
}
.btn-sg-whatsapp i { font-size: 16px; }

/* Call button */
.btn-sg-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.70);
    border: 1px solid rgba(240, 237, 232, 0.18);
    border-radius: 2px;
    padding: 15px 28px;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.btn-sg-call:hover {
    color: #fff;
    border-color: rgba(240, 237, 232, 0.45);
    background: rgba(255, 255, 255, 0.04);
}
.btn-sg-call i { font-size: 15px; }


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

/* Tablet */
@media (max-width: 991px) {
    .contact-hero {
        min-height: 60vh;
        padding-bottom: 70px;
    }

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

    .contact-info__lead {
        max-width: 100%;
    }

    .contact-form-wrap {
        padding: 40px 32px;
    }

    .quick-contact__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .contact-hero {
        min-height: 55vh;
        padding-bottom: 60px;
    }

    .contact-hero__title {
        line-height: 0.95;
    }

    .contact-section {
        padding: 72px 0 80px;
    }

    .sg-form__row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .map-section__inner {
        height: 320px;
    }

    .map-section__badge {
        top: 16px;
        left: 16px;
        right: 16px;
    }

    .quick-contact {
        padding: 52px 0;
    }

    .quick-contact__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-sg-whatsapp,
    .btn-sg-call {
        width: 100%;
        justify-content: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .contact-hero__title {
        font-size: clamp(44px, 12vw, 70px);
    }

    .contact-card {
        padding: 20px 20px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .contact-hero__eyebrow,
    .contact-hero__title,
    .contact-hero__sub,
    .contact-hero__scroll,
    .contact-hero__bg img {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .contact-hero__scroll-line {
        animation: none;
    }

    [data-sg-anim] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
