/* ===========================================================
   CUSTOM.CSS
   Yahan sirf DYNAMIC SECTIONS (flexible content modules) ki
   CSS likhen. Astra ki purani CSS ko yahan touch na karein.
   =========================================================== */

/* -----------------------------------------------------------
   Example: how to load a local font from the /font folder.
   1. Font files daalein: wp-content/themes/hillcrest-astra-child/font/
   2. Neeche jaisa @font-face likhein (path CSS file ke relative hai,
      isliye "font/filename.woff2" hi likhna hai, kuch aur nahi)
   ----------------------------------------------------------- */
/*
@font-face {
  font-family: "YourFontName";
  src: url("font/YourFontName-Regular.woff2") format("woff2"),
       url("font/YourFontName-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
*/

/* -----------------------------------------------------------
   Example: how to reference a static icon/image from /images
   (use this only for icons/decorative assets that are part of
   the theme itself — NOT for content images, those should be
   uploaded via WP Media Library and set through ACF fields)
   ----------------------------------------------------------- */
/*
.some-class {
  background-image: url("images/some-icon.svg");
}
*/

/* Add new section styles below, one block per module,
   e.g. .hero-section-hillcrest { ... } */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "GT Walsheim Trial Md";
  src:
    url("fonts/GTWalsheimTrial-Md.woff2") format("woff2"),
    url("fonts/GTWalsheimTrial-Md.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim Trial U Bd";
  src:
    url("fonts/GTWalsheimTrial-UBd.woff2") format("woff2"),
    url("fonts/GTWalsheimTrial-UBd.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim Trial Bd";
  src:
    url("fonts/GTWalsheimTrial-Bd.woff2") format("woff2"),
    url("fonts/GTWalsheimTrial-Bd.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src:
    url("fonts/Lato-Bold.woff2") format("woff2"),
    url("fonts/Lato-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src:
    url("fonts/Lato-Heavy.woff2") format("woff2"),
    url("fonts/Lato-Heavy.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src:
    url("fonts/Lato-Medium.woff2") format("woff2"),
    url("fonts/Lato-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src:
    url("fonts/Lato-Regular.woff2") format("woff2"),
    url("fonts/Lato-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src:
    url("fonts/Lato-Semibold.woff2") format("woff2"),
    url("fonts/Lato-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
html {
  scroll-behavior: smooth;
}

/* ===========================================================
   CUSTOM.CSS — Hillcrest Bakery dynamic sections
   =========================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #6fcbf0;
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 100px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 42px;
  border-radius: 100px;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.36);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  padding: 12px 42px;
  background: rgba(255, 255, 255, 0.36);
  border-bottom-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(56.94477844238281px);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-nav-link {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000000;
  padding: 0;
  border-radius: 100px;
  transition:
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-nav-link:focus-visible,
.header-nav-link[aria-expanded="true"] {
  background: #ee93b4;
  color: #ffffff;
}
.header-nav-link svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-dropdown-trigger[aria-expanded="true"] .header-dropdown-chevron {
  transform: rotate(180deg);
}

.header-dropdown {
  position: relative;
}
.header-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 16px;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  transition:
    opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.18s;
}
.header-dropdown-menu-inner {
  min-width: 180px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  padding: 10px;
}
.header-dropdown[data-open="true"] .header-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .header-dropdown:hover .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .header-dropdown:hover .header-dropdown-chevron {
    transform: rotate(180deg);
  }
}
.header-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  transition:
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-dropdown-menu a:hover {
  background: #ee93b4;
  color: #ffffff;
}

.header-logo {
  flex-shrink: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.header-logo img {
  height: 63px;
  width: auto;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-icon-btn {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  padding: 0;
  position: relative;
  border-radius: 50%;
  transition:
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-icon-btn:focus-visible {
  background: #ee93b4;
  color: #ffffff;
}
.header-icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  background: #f3a9c2;
}

.hero-bg-wrap {
  position: relative;
  width: 100%;
  height: 1000px;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-bg-img.is-visible {
  opacity: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.hero-title {
  font-family: "GT Walsheim Trial U Bd", "Lato", sans-serif;
  font-weight: 900;
  font-size: 120px;
  line-height: 100%;
  letter-spacing: -1px;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  padding-top: 165px;
}

.hero-bottom-group {
  margin-top: auto;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-thumbs {
  width: 515px;
  max-width: 100%;
  height: 140px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.36);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  padding: 9px;
  margin-bottom: 40px;
  display: flex;
  gap: 9px;
}
.hero-thumb {
  flex: 1;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  transition:
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-thumb:hover {
  transform: translateY(-2px);
}
.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-explore-btn {
  position: relative;
  overflow: hidden;
  width: 399px;
  max-width: 100%;
  height: 58px;
  border-radius: 50px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 4px 24px;
}
.hero-explore-btn::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 4px;
  left: calc(100% - 54px);
  border-radius: 999px;
  background: rgba(140, 224, 249, 1);
  z-index: 1;
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.hero-explore-btn:hover::before {
  left: 4px;
}
.hero-explore-label {
  position: relative;
  z-index: 2;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 16px;
  line-height: 21.2px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000000;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-explore-btn:hover .hero-explore-label {
  color: #000000;
}
.hero-explore-icon {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(140, 224, 249, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-explore-icon svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 56px;
    padding-top: 120px;
  }
  .site-header {
    left: 16px;
    right: 16px;
    padding: 10px 20px;
  }
  .header-nav {
    display: none;
  }
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  justify-content: space-between;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000000;
  padding: 0;
  flex: 1;
}
.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 32px;
  border-radius: 40px;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-item.is-active .mobile-nav-icon,
.mobile-nav-item:hover .mobile-nav-icon,
.mobile-nav-item:focus-visible .mobile-nav-icon {
  background: #ffffff;
}

@media (max-width: 1023px) {
  .mobile-bottom-nav {
    display: flex;
  }
}
