/*
Theme Name: Art n Cast
Theme URI: https://artncast.studio
Author: Art n Cast Studio
Description: Complete production-ready layout and styling for Art n Cast.
Version: 8.0
*/

/* ==========================================================================
   1. GLOBAL VARIABLES & RESETS
   ========================================================================== */
:root {
  --cream: #f7f4ef;
  --white: #ffffff;
  --text: #272522;
  --gold: #b89563;
  --gold-dark: #967344;
  --footer-bg: #ede3d1;
  --footer-text: #272522;
  --footer-muted: #71685a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background-color: var(--white);
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: min(1320px, 94%);
  margin: auto;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   2. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background: var(--cream);
  padding: 8px 20px;
  font-size: 11px;
  text-align: center;
  color: #555;
}

.top-bar span {
  margin: 0 15px;
}

/* ==========================================================================
   3. SITE HEADER & LOGO LAYOUT
   ========================================================================== */
header.site-header {
  background: var(--white);
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid #e8e8e8;
}

.header-container {
  height: 105px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: static;
}

/* BRAND LOGO FLEX OVERRIDES */
a.logo,
.site-header a.logo,
.mobile-drawer-logo {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  text-decoration: none !important;
  color: var(--text) !important;
  flex-shrink: 0 !important;
  width: auto !important;
  margin: 0 !important;
}

.logo:hover {
  opacity: 0.88;
}

/* LOGO SVG CONTAINER */
.logo-svg-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.logo-svg-container svg {
  display: block !important;
  width: 68px !important;
  height: 68px !important;
  flex-shrink: 0 !important;
}

/* LOGO TEXT BLOCK */
.logo-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.logo-text .brand-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 38px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: var(--text) !important;
  display: block !important;
  margin: 0 !important;
}

.logo-text small,
.logo-text .brand-tagline {
  display: block !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  letter-spacing: 2.2px !important;
  margin-top: 6px !important;
  color: #55524e !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

/* ==========================================================================
   4. DESKTOP NAVIGATION & MEGAMENU
   ========================================================================== */
.nav-links {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-links > a {
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text);
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  font-weight: 500;
}

.nav-links > a:hover {
  color: var(--gold-dark);
}

.nav-icons {
  display: flex;
  gap: 20px;
  font-size: 13px;
  align-items: center;
  flex-shrink: 0;
  font-weight: 500;
}

.nav-item.has-dropdown {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item-title {
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--text);
  transition: color 0.2s ease;
  cursor: pointer;
  font-weight: 500;
}

.nav-item.has-dropdown:hover .nav-item-title {
  color: var(--gold-dark);
}

.nav-item.has-dropdown:hover .nav-item-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text);
}

.subsequent-menu-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 1001;
}

.nav-item.has-dropdown:hover .subsequent-menu-box {
  display: block;
}

.mega-grid-container {
  width: min(1320px, 94%);
  margin: 0 auto;
  padding: 40px 0 45px 0;
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr) 260px;
  gap: 30px;
  text-align: left;
}

.mega-col.title-col h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.col-heading {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.mega-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mega-col li {
  margin-bottom: 10px !important;
  list-style: none !important;
}

.mega-col a {
  font-size: 13px;
  color: var(--text);
  transition: color 0.2s ease;
}

.mega-col a:hover {
  color: var(--gold-dark);
}

.feature-card {
  display: block;
  text-decoration: none;
}

.feature-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f4f4f4;
}

.feature-title {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.menu-btn,
.nav-mobile {
  display: none !important;
}

/* ==========================================================================
   5. COMPLETE FOOTER STYLING
   ========================================================================== */
footer {
  background-color: var(--footer-bg, #f7f4ef);
  color: var(--footer-text, #272522);
  padding: 60px 0 30px 0;
  border-top: 1px solid #e8e8e8;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr repeat(4, 1fr) !important;
  gap: 40px !important;
  align-items: start !important;
}

.footer-about .footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  max-width: 300px;
  margin-bottom: 20px;
}

/* FOOTER SOCIAL ICONS */
.footer-social {
  display: flex !important;
  gap: 12px !important;
}

.footer-social a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  transition: all 0.2s ease !important;
}

.footer-social a:hover {
  background-color: var(--text, #272522) !important;
}

.footer-social svg {
  width: 18px !important;
  height: 18px !important;
  fill: #272522 !important;
  transition: fill 0.2s ease !important;
}

.footer-social a:hover svg {
  fill: #ffffff !important;
}

/* FOOTER HEADINGS & LINKS */
.footer-grid h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
  color: var(--text, #272522);
  font-weight: 600;
}

.footer-grid ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-grid li {
  margin-bottom: 10px !important;
}

.footer-grid a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #000;
}

.footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 12px;
  color: #777;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  /* HEADER & LOGO RESPONSIVE FLUID SCALING */
  .menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-left: -8px;
    cursor: pointer;
    color: var(--text);
  }

  .header-container {
    height: 75px !important;
  }

  .nav-links {
    display: none !important;
  }

  a.logo,
  header .logo {
    gap: clamp(8px, 2.5vw, 16px) !important;
  }

  .logo-svg-container,
  .logo-svg-container svg {
    width: clamp(38px, 10vw, 48px) !important;
    height: clamp(38px, 10vw, 48px) !important;
  }

  .logo-text {
    white-space: nowrap !important;
  }

  .logo-text .brand-title {
    font-size: clamp(20px, 5.5vw, 26px) !important;
    line-height: 1 !important;
  }

  .logo-text small,
  .logo-text .brand-tagline {
    font-size: clamp(6px, 1.8vw, 7.5px) !important;
    letter-spacing: clamp(1px, 0.4vw, 1.8px) !important;
    margin-top: 3px !important;
  }

  /* MOBILE DRAWER NAVIGATION OVERLAY */
  .nav-mobile {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--white);
    overflow-y: auto;
    padding: 60px 20px 40px 20px;
  }

  body.menu-open .nav-mobile {
    display: block !important;
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
  }

  .mobile-drawer-header {
    display: grid;
    grid-template-columns: 35px 1fr 125px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
    margin-bottom: 16px;
  }

  .mobile-close-btn {
    font-size: 26px;
    color: var(--text);
    text-align: left;
    line-height: 1;
    padding: 8px;
    margin: -8px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    background: none;
    border: none;
    display: inline-block;
  }

  .mobile-drawer-logo {
    justify-content: center !important;
  }

  .mobile-drawer-search {
    justify-self: end;
    width: 100%;
  }

  .mobile-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 4px 8px;
    background: #fafafa;
  }

  .mobile-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 11px;
    outline: none;
    color: var(--text);
  }

  .mobile-search-btn {
    display: flex;
    align-items: center;
    color: var(--text);
    padding: 0;
  }

  .mobile-nav-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .mobile-nav-item > a,
  .mobile-accordion-btn {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    color: var(--text);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 4px 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .accordion-icon {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.3s ease;
    display: inline-block;
  }

  .mobile-accordion-content {
    display: none;
    padding: 12px 0 8px 12px;
  }

  .mobile-nav-item.open .mobile-accordion-content {
    display: block !important;
  }

  .mobile-nav-item.open .accordion-icon {
    transform: rotate(90deg);
  }

  .mobile-sub-group {
    margin-bottom: 16px;
  }

  .mobile-sub-title {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 8px;
  }

  .mobile-sub-group a {
    display: block;
    font-size: 14px;
    color: #444;
    padding: 5px 0;
  }

  .mobile-nav-utility {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
  }
}

/* FOOTER RESPONSIVE STYLES */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }

  .footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-about {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}