/* =============================================================
   ACE HOSPITALITY — COMPONENT STYLES
   White & Gold Luxury Theme
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────────── */
.ace-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--ease-normal);
}

.ace-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.ace-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.ace-navbar__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.ace-navbar__logo-img { height: 48px; width: auto; object-fit: contain; }

/* Desktop nav links */
.ace-navbar__nav { display: flex; }

.ace-nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0; padding: 0;
}

.ace-nav-links a {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--ease-fast);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.ace-nav-links a:hover,
.ace-nav-links .current-menu-item > a,
.ace-nav-links .current-page-ancestor > a {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

.ace-navbar__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ace-navbar__cta { font-size: 12px; padding: 10px 22px; }

/* Hamburger */
.ace-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.ace-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--ease-fast);
}
.ace-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ace-hamburger.open span:nth-child(2) { opacity: 0; }
.ace-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu Overlay */
.ace-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.ace-mobile-menu.open { display: flex; }

.ace-mobile-nav {
    list-style: none;
    text-align: center;
    padding: 0; margin: 0;
}
.ace-mobile-nav li { margin: 14px 0; }
.ace-mobile-nav a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--ease-fast);
}
.ace-mobile-nav a:hover { color: var(--gold-primary); }

.ace-mobile-close {
    position: absolute;
    top: 24px; right: 28px;
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* Page wrapper offset for fixed navbar */
.ace-page-wrapper { padding-top: 72px; }


/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.ace-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 0;
}

.ace-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ace-footer__logo-img { height: 44px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }

.ace-footer__tagline {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
    margin-bottom: 28px;
}

.ace-footer__social {
    display: flex;
    gap: 16px;
}
.ace-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    transition: all var(--ease-fast);
    text-decoration: none;
}
.ace-social-link:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
}

.ace-footer__heading {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 24px;
}

.ace-footer__links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ace-footer__links a,
.ace-footer__links span {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--ease-fast);
}
.ace-footer__links a:hover { color: var(--gold-primary); }

.ace-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 0;
}
.ace-footer__contact-list svg { flex-shrink: 0; margin-top: 2px; opacity: 0.5; }

.ace-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}
.ace-footer__bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin: 0;
}
.ace-footer__bottom em { color: var(--gold-primary); font-style: italic; }


/* ─────────────────────────────────────────────────────────────
   WHATSAPP FLOAT BUTTON
───────────────────────────────────────────────────────────── */
.ace-wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 999;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform var(--ease-fast), box-shadow var(--ease-fast);
    text-decoration: none;
}
.ace-wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
    color: #fff;
}


/* ─────────────────────────────────────────────────────────────
   HERO SECTION (used in front-page and page heroes)
───────────────────────────────────────────────────────────── */
.ace-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
}

.ace-hero--dark {
    background: var(--bg-dark);
    color: var(--text-light);
}
.ace-hero--dark h1,
.ace-hero--dark h2,
.ace-hero--dark p { color: var(--text-light); }

.ace-hero__content { position: relative; z-index: 2; max-width: 720px; }

.ace-hero__stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--gold-border);
}
.ace-stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold-primary);
    line-height: 1;
}
.ace-stat-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────────
   PAGE HERO (interior pages)
───────────────────────────────────────────────────────────── */
.ace-page-hero {
    background: var(--bg-surface);
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--border-light);
}
.ace-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.ace-breadcrumb a { color: var(--text-muted); }
.ace-breadcrumb a:hover { color: var(--gold-primary); }
.ace-breadcrumb span { color: var(--gold-primary); }


/* ─────────────────────────────────────────────────────────────
   CARDS — BLOG
───────────────────────────────────────────────────────────── */
.ace-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ace-blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all var(--ease-normal);
    box-shadow: var(--shadow-sm);
}
.ace-blog-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.ace-blog-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-surface);
}
.ace-blog-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ace-blog-card:hover .ace-blog-card__img img { transform: scale(1.05); }

.ace-blog-card__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ace-blog-card__tag {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.ace-blog-card__title {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}
.ace-blog-card__excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 20px;
}
.ace-blog-card__meta {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}


/* ─────────────────────────────────────────────────────────────
   CARDS — EVENTS / GALLERY
───────────────────────────────────────────────────────────── */
.ace-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ace-event-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: var(--bg-dark);
    aspect-ratio: 4/3;
    display: block;
}

.ace-event-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ace-event-card:hover .ace-event-card__img { transform: scale(1.06); }

.ace-event-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: opacity var(--ease-normal);
}
.ace-event-card__cat {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 8px;
}
.ace-event-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   BLOG SEARCH / FILTERS
───────────────────────────────────────────────────────────── */
.ace-blog-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--bg-white);
    padding: 20px 24px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
}

.ace-blog-filters input[type="text"],
.ace-blog-filters select {
    background: var(--bg-main);
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--text-primary);
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color var(--ease-fast);
}
.ace-blog-filters input[type="text"] { flex: 1; min-width: 220px; }
.ace-blog-filters select { min-width: 180px; }
.ace-blog-filters input:focus,
.ace-blog-filters select:focus { border-color: var(--gold-primary); }

.ace-blog-filters select option {
    background: #fff;
    color: var(--text-primary);
}


/* ─────────────────────────────────────────────────────────────
   SINGLE BLOG POST
───────────────────────────────────────────────────────────── */
.ace-single-post {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.ace-single-post__cover {
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover;
    margin-bottom: 48px;
}

.ace-post-body h2 { font-size: var(--text-3xl); margin-top: 48px; margin-bottom: 16px; }
.ace-post-body h3 { font-size: var(--text-2xl); margin-top: 36px; margin-bottom: 12px; }
.ace-post-body p  { font-size: 1.08rem; margin-bottom: 24px; }

.ace-post-body blockquote {
    border-left: 3px solid var(--gold-primary);
    padding: 16px 28px;
    margin: 40px 0;
    background: var(--bg-surface);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--gold-dark);
}

.ace-post-body img {
    width: 100%;
    margin: 32px 0 12px;
}

.ace-post-body figcaption,
.ace-post-body .wp-caption-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* Video embed */
.ace-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 32px 0;
    border: 1px solid var(--border-gray);
}
.ace-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Author Box */
.ace-author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-gray);
    margin-top: 56px;
}
.ace-author-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-border);
    flex-shrink: 0;
}
.ace-author-name { font-size: var(--text-lg); margin-bottom: 4px; }
.ace-author-bio  { font-size: 14px; color: var(--text-secondary); margin: 0; }


/* ─────────────────────────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────────────────────────── */
.ace-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-primary);
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color var(--ease-fast);
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--gold-primary); }

.wpcf7-form input[type="submit"] {
    background: var(--gold-primary);
    color: #111;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background var(--ease-fast);
    margin-bottom: 0;
}
.wpcf7-form input[type="submit"]:hover { background: var(--gold-dark); color: #fff; }


/* ─────────────────────────────────────────────────────────────
   MARQUEE / TICKER
───────────────────────────────────────────────────────────── */
.ace-marquee {
    overflow: hidden;
    background: var(--gold-primary);
    padding: 14px 0;
    white-space: nowrap;
}
.ace-marquee__track {
    display: inline-flex;
    animation: marquee 28s linear infinite;
}
.ace-marquee__item {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #111;
    padding: 0 32px;
}
.ace-marquee__dot {
    color: #111;
    opacity: 0.4;
    padding: 0 4px;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ace-blog-grid   { grid-template-columns: repeat(2, 1fr); }
    .ace-events-grid { grid-template-columns: repeat(2, 1fr); }
    .ace-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 768px) {
    .ace-navbar__nav    { display: none; }
    .ace-navbar__cta    { display: none; }
    .ace-hamburger      { display: flex; }

    .ace-blog-grid      { grid-template-columns: 1fr; }
    .ace-events-grid    { grid-template-columns: 1fr; }
    .ace-contact-grid   { grid-template-columns: 1fr; }
    .ace-footer__grid   { grid-template-columns: 1fr; }
    .ace-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
