/*
 Theme Name:   Astra FDN Child
 Theme URI:    https://example.com/
 Description:  Child theme for Astra with custom center mega-menu for Food Drink Nation.
 Author:       Susan Escobar
 Template:     astra
 Version:      1.0.0
*/

/* =========================
   Global
   ========================= */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #000000;
    color: #f5e1a4;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.fdn-page-wrapper {
    min-height: 100vh;
    background: #000000;
    color: #f5e1a4;
}

/* =========================
   Header & Title
   ========================= */

.fdn-header {
    padding: 10px 20px 0;
    border-bottom: 1px solid #604a14;
    position: relative;
    z-index: 50;
}

/* Center the logo/title row */
.fdn-header-top {
    display: flex;
    justify-content: center;   /* center logo block */
    align-items: center;
    position: relative;        /* for absolute language switcher */
    padding: 10px 0;
}

/* Logo block (emoji + text) */
.fdn-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #cda160;

}

/* Bigger beer emoji */
.fdn-logo-mark {
    font-size: 2.5rem;
}

/* Bigger center title text */
.fdn-logo-text {
    font-size: 2.5rem;         /* bump this up/down as you like */
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Language switcher on far right */
.fdn-lang-switcher {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.fdn-lang-switcher a {
    margin-left: 4px;
}
/* Language switcher on far right */
.fdn-phone {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    text-transform: uppercase;
}



/* =========================
   Search bar
   ========================= */

.fdn-search-bar {
    margin: 10px auto 15px;
    max-width: 480px;
}

.fdn-search-bar input[type="search"] {
    width: 75%;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #604a14;
    background: #111111;
    color: #cda160;
   
}
.fdn-search-bar .ast-search-submit{
    display: none;
}
.fdn-search-bar .search-submit{
    background-color: #cda160;
    color: #111111;
    margin-left: .2rem ;
}

/* =========================
   Top Navigation / Mega Menu
   ========================= */

.fdn-main-nav {
    border-top: 1px solid #604a14;
    border-bottom: 1px solid #604a14;
    margin-top: 8px;
    padding: 8px 0;
    background: #cda160;
    color: #111111;
}

.fdn-main-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0;
    margin: 0;
}

.fdn-main-menu > li {
    position: relative;
}

.fdn-main-menu > li > a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.fdn-main-menu > li > a:hover,
.fdn-main-menu > li.fdn-active > a {
    background: #cda160;
    color: #000000;
}

/* Hide native dropdowns – we use mega panel instead */
.fdn-main-menu li .sub-menu {
    display: none !important;
}

/* Center-only mega panel */
.fdn-mega-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    max-width: 960px;
    width: calc(100% - 80px);
    background: #111111;
    border: 1px solid #604a14;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    padding: 16px 20px;
    display: none;
    z-index: 40;
}

.fdn-mega-panel.is-open {
    display: block;
}

.fdn-mega-panel .fdn-submenu-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px 20px;
}

.fdn-mega-panel .fdn-submenu-grid > li > a {
    font-size: 0.9rem;
    padding: 4px 0;
    display: block;
    border-bottom: 1px solid transparent;
}

.fdn-mega-panel .fdn-submenu-grid > li > a:hover {
    border-bottom-color: #f6d26b;
}

/* =========================
   Clean up how mega menu displays
   ========================= */

/* Top-level tiles in the mega panel (level 2 categories) */
.fdn-mega-panel .fdn-submenu-grid > li > a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 0 4px;
    border-bottom: 1px solid #604a14;
    margin-bottom: 4px;
}

/* Container for the grandchildren list (level 3) */
.fdn-mega-panel .fdn-submenu-grid > li > .sub-menu {
    margin: 4px 0 0;
    padding-left: 10px;
    list-style: none;
}

/* Individual grandchildren links */
.fdn-mega-panel .fdn-submenu-grid > li > .sub-menu > li > a {
    font-size: 0.8rem;
    opacity: 0.85;
    display: block;
    padding: 2px 0;
}

.fdn-mega-panel .fdn-submenu-grid > li > .sub-menu > li > a:hover {
    opacity: 1;
    border-bottom: 1px solid #f6d26b;
}

/* =========================
   Map 
   ========================= */
.hero-iframe {
  position: relative;
  width: 100%;
  height: 0;
  /* Adjust padding-bottom to control aspect ratio (e.g. 56.25% = 16:9) */
  padding-bottom: 56.25%;
  overflow: hidden;
}
.hero-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* =========================
   Main 3-column layout
   ========================= */

.fdn-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 20px;
    padding: 20px;
}

/* Sidebars */

.fdn-sidebar {
    background: #111111;
    border-radius: 4px;
    border: 1px solid #604a14;
    padding: 12px;
    font-size: 0.9rem;
}

.fdn-sidebar-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #f6d26b;
}

.fdn-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fdn-sidebar-list li {
    margin-bottom: 4px;
}

/* Center content */

.fdn-content {
    background: #000000;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Map area wrapper – full height */

.fdn-map-wrapper {
    background: #111111;
    border-radius: 4px;
    border: 1px solid #604a14;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.fdn-map-wrapper.fdn-map-full {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

/* Iframe fills the whole wrapper */

.fdn-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Center buttons under map */

.fdn-center-buttons {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fdn-btn {
    border-radius: 999px;
    padding: 6px 18px;
    border: 1px solid #f6d26b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================
   Footer
   ========================= */

.fdn-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #604a14;
    font-size: 0.8rem;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
    .fdn-layout {
        grid-template-columns: 1fr;
    }

    .fdn-sidebar-left,
    .fdn-sidebar-right {
        order: 2;
    }

    .fdn-content {
        order: 1;
    }

    .fdn-mega-panel {
        width: calc(100% - 40px);
        max-width: none;
    }
}

@media (max-width: 600px) {
    .fdn-header {
        padding: 8px 12px 0;
    }

    .fdn-layout {
        padding: 12px;
    }

    .fdn-main-menu {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }

    .fdn-logo-text {
        font-size: 1.8rem; /* slightly smaller on tiny screens */
    }

    .fdn-logo-mark {
        font-size: 1.8rem;
    }
}

/* =========================
   News Ticker
   ========================= */

/* Prevent Astra from treating ticker as menu */
#fdn-ticker-wrapper nav,
#fdn-ticker-wrapper ul,
#fdn-ticker-wrapper li {
    all: unset !important;
}

/* Ticker bar */
.fdn-news-ticker {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 1rem;
    background: #000;
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
}

/* Label */
.fdn-news-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scroll container */
.fdn-news-track {
    overflow: hidden;
    flex: 1;
}

/* Scrolling items */
.fdn-news-items {
    display: inline-flex;
    gap: 3rem;
    animation: fdn-marquee 35s linear infinite;
}

.fdn-news-item {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.fdn-news-item:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Animation */
@keyframes fdn-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* =========================
   FDN Two-Column Sections
   ========================= */
.fdn-two-col-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.25); /* subtle panel; adjust if needed */
}

.fdn-section-title {
  margin: 0 0 0.9rem 0;
  text-align: center;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.fdn-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fdn-two-col-card {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
}

.fdn-subtitle {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.fdn-section-text {
  margin: 0 0 0.75rem 0;
  opacity: 0.9;
}

.fdn-section-link {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
}

.fdn-section-link:hover {
  text-decoration: underline;
}

/* Responsive: stack columns */
@media (max-width: 768px) {
  .fdn-two-col-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Sections below the 3-column layout ===== */
.fdn-below-layout{
  max-width: 1200px;         /* match your page width if you have one */
  margin: 0 auto;
  padding: 1.25rem;          /* aligns with your overall spacing */
}

/* Force the inner two-column grids */
.fdn-below-layout .fdn-two-col-grid{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 1rem;
  display:grid !important;
}

@media (max-width: 768px){
  .fdn-below-layout .fdn-two-col-grid{
    grid-template-columns: 1fr;
  }
}
