/* =====================================================
   SOCCA DREAM — GLOBAL SITEWIDE STYLES
   Applies to: ALL pages — header, footer, buttons,
   forms, navigation, checkout, cart, everywhere.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  --sd-navy:       #1B2A6B;
  --sd-navy-dark:  #111c4a;
  --sd-navy-light: #263587;
  --sd-gold:       #C9A84C;
  --sd-gold-light: #e4c97a;
  --sd-white:      #FFFFFF;
  --sd-off-white:  #F4F5FA;
  --sd-red:        #CE2B37;
  --sd-green:      #009246;
  --sd-muted:      #7a82a8;
  --sd-border:     #dde0ee;
  --sd-radius:     12px;
}

/* =====================================================
   BASE TYPOGRAPHY
   ===================================================== */
body {
  font-family: 'Barlow', sans-serif !important;
  background: var(--sd-off-white) !important;
  color: #1a1a2e !important;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif !important;
  color: var(--sd-navy-dark) !important;
}
a {
  color: var(--sd-navy) !important;
  transition: color 0.2s !important;
}
a:hover { color: var(--sd-gold) !important; }

/* =====================================================
   SITE HEADER / NAVIGATION
   ===================================================== */
#masthead,
.site-header,
header.site-header,
.header-main,
.main-header,
#header {
  background: var(--sd-navy-dark) !important;
  border-bottom: 3px solid var(--sd-gold) !important;
  box-shadow: 0 2px 20px rgba(17,28,74,0.3) !important;
}

/* Top bar / contact strip if present */
.header-top,
.top-bar,
.header-topbar {
  background: var(--sd-navy) !important;
  border-bottom: 1px solid rgba(201,168,76,0.2) !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.8rem !important;
  font-family: 'Barlow', sans-serif !important;
}
.header-top a,
.top-bar a { color: var(--sd-gold) !important; }

/* Site logo text */
.site-title,
.site-title a,
.logo-text {
  font-family: 'Bebas Neue', sans-serif !important;
  color: var(--sd-gold) !important;
  letter-spacing: 3px !important;
  text-decoration: none !important;
}

/* Main navigation */
#site-navigation,
.main-navigation,
.primary-navigation,
nav.navbar,
.header-nav {
  background: transparent !important;
}
.main-navigation ul li a,
.primary-navigation ul li a,
nav.navbar ul li a,
#site-navigation ul li a {
  font-family: 'Barlow', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.75) !important;
  transition: color 0.2s !important;
  text-decoration: none !important;
}
.main-navigation ul li a:hover,
.primary-navigation ul li a:hover,
#site-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
#site-navigation ul li.current-menu-item > a {
  color: var(--sd-gold) !important;
}

/* Dropdown menus */
.main-navigation ul ul,
.primary-navigation ul ul {
  background: var(--sd-navy-dark) !important;
  border-top: 2px solid var(--sd-gold) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 8px 24px rgba(17,28,74,0.3) !important;
}
.main-navigation ul ul li a,
.primary-navigation ul ul li a {
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  padding: 10px 16px !important;
}

/* Mobile menu toggle */
.menu-toggle,
.navbar-toggle,
button.menu-toggle {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
  color: var(--sd-white) !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-family: 'Barlow', sans-serif !important;
}

/* =====================================================
   GLOBAL BUTTONS
   ===================================================== */
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.btn {
  font-family: 'Barlow', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.15s !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
}
.button,
button:not(.menu-toggle):not(.search-toggle):not(.close-search),
input[type="submit"] {
  background: var(--sd-navy) !important;
  color: var(--sd-white) !important;
  padding: 0.7rem 1.5rem !important;
}
.button:hover,
button:not(.menu-toggle):hover,
input[type="submit"]:hover {
  background: var(--sd-navy-light) !important;
  color: var(--sd-white) !important;
  transform: translateY(-1px) !important;
}

/* Gold / primary action buttons */
.button.alt,
.button-primary,
.btn-primary,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--sd-gold) !important;
  color: var(--sd-navy-dark) !important;
}
.button.alt:hover,
.button-primary:hover,
.btn-primary:hover {
  background: var(--sd-gold-light) !important;
  color: var(--sd-navy-dark) !important;
}

/* =====================================================
   GLOBAL FORMS
   ===================================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
  font-family: 'Barlow', sans-serif !important;
  font-size: 0.9rem !important;
  border: 1.5px solid var(--sd-border) !important;
  border-radius: 6px !important;
  padding: 0.65rem 0.9rem !important;
  background: var(--sd-white) !important;
  color: #1a1a2e !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  width: 100% !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--sd-navy) !important;
  box-shadow: 0 0 0 3px rgba(27,42,107,0.08) !important;
}
label {
  font-family: 'Barlow', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  color: var(--sd-navy-dark) !important;
  margin-bottom: 4px !important;
  display: block !important;
}

/* =====================================================
   CHECKOUT & CART PAGES
   ===================================================== */
.woocommerce-checkout,
.woocommerce-cart {
  background: var(--sd-off-white) !important;
}

/* Checkout sections */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  background: var(--sd-white) !important;
  border-radius: var(--sd-radius) !important;
  border: 1px solid var(--sd-border) !important;
  padding: 2rem !important;
  margin-bottom: 1.5rem !important;
}

/* Section headings */
.woocommerce-checkout h3,
.woocommerce-cart h2,
.woocommerce-order-details h2,
#order_review_heading {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--sd-navy-dark) !important;
  letter-spacing: 1px !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 2px solid var(--sd-border) !important;
  margin-bottom: 1.25rem !important;
}

/* Order review table */
.woocommerce-checkout-review-order table,
.woocommerce-cart-form table {
  font-family: 'Barlow', sans-serif !important;
  border-collapse: collapse !important;
  width: 100% !important;
}
.woocommerce-checkout-review-order table th,
.woocommerce-cart-form table th,
.shop_table th {
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: var(--sd-muted) !important;
  padding: 10px 12px !important;
  border-bottom: 2px solid var(--sd-border) !important;
  background: var(--sd-off-white) !important;
}
.woocommerce-checkout-review-order table td,
.woocommerce-cart-form table td,
.shop_table td {
  padding: 12px !important;
  border-bottom: 1px solid var(--sd-border) !important;
  font-size: 0.9rem !important;
  color: #333 !important;
}

/* Place order / proceed button */
#place_order,
.wc-proceed-to-checkout .checkout-button,
.checkout-button {
  background: var(--sd-navy) !important;
  color: var(--sd-white) !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 1rem 2rem !important;
  border-radius: 6px !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
#place_order:hover,
.checkout-button:hover {
  background: var(--sd-navy-light) !important;
}

/* Coupon / promo code */
.woocommerce-form-coupon-toggle a,
.showcoupon {
  color: var(--sd-gold) !important;
  font-weight: 600 !important;
}
.woocommerce-form-coupon input[type="text"],
#coupon_code {
  border-color: var(--sd-border) !important;
}
.woocommerce-form-coupon .button,
#apply_coupon {
  background: var(--sd-navy) !important;
  color: var(--sd-white) !important;
}

/* Payment methods */
.woocommerce-checkout #payment {
  background: var(--sd-white) !important;
  border-radius: var(--sd-radius) !important;
  border: 1px solid var(--sd-border) !important;
  overflow: hidden !important;
}
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--sd-border) !important;
  padding: 1rem 1.5rem !important;
}
.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 600 !important;
  color: var(--sd-navy-dark) !important;
}
.woocommerce-checkout #payment div.payment_box {
  background: var(--sd-off-white) !important;
  color: #555 !important;
  font-size: 0.85rem !important;
}
.woocommerce-checkout #payment div.place-order {
  padding: 1.5rem !important;
  background: var(--sd-white) !important;
}

/* =====================================================
   NOTICES & ALERTS
   ===================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: 'Barlow', sans-serif !important;
  border-radius: 6px !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500 !important;
}
.woocommerce-message { border-top-color: var(--sd-green) !important; }
.woocommerce-info { border-top-color: var(--sd-navy) !important; }
.woocommerce-error { border-top-color: var(--sd-red) !important; }

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.woocommerce-breadcrumb,
.breadcrumbs,
.breadcrumb {
  font-family: 'Barlow', sans-serif !important;
  font-size: 0.8rem !important;
  color: var(--sd-muted) !important;
  padding: 0.75rem 0 !important;
}
.woocommerce-breadcrumb a,
.breadcrumbs a {
  color: var(--sd-navy) !important;
  text-decoration: none !important;
}
.woocommerce-breadcrumb a:hover { color: var(--sd-gold) !important; }

/* =====================================================
   SITE FOOTER
   ===================================================== */
#colophon,
.site-footer,
footer.site-footer,
#footer {
  background: var(--sd-navy-dark) !important;
  border-top: 3px solid var(--sd-gold) !important;
  color: rgba(255,255,255,0.5) !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 0.85rem !important;
}
.site-footer a,
#colophon a,
#footer a {
  color: var(--sd-gold) !important;
  text-decoration: none !important;
}
.site-footer a:hover,
#colophon a:hover { opacity: 0.8 !important; }
.site-footer h3,
.site-footer h4,
.footer-widget-title,
.widget-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  color: var(--sd-white) !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-size: 1rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid rgba(201,168,76,0.3) !important;
}
.site-footer p,
#colophon p { color: rgba(255,255,255,0.45) !important; }

/* Footer bottom bar */
.footer-bottom,
.site-info,
#footer-bottom {
  background: rgba(0,0,0,0.2) !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  text-align: center !important;
  padding: 1rem 2rem !important;
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.3) !important;
}

/* =====================================================
   CARDS / CONTENT BLOCKS (global)
   ===================================================== */
.card,
.sd-card,
.entry,
.post {
  background: var(--sd-white) !important;
  border-radius: var(--sd-radius) !important;
  border: 1px solid var(--sd-border) !important;
}

/* =====================================================
   ITALIAN FLAG ACCENT (reusable utility)
   ===================================================== */
.sd-flag-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--sd-green) 33.3%, #fff 33.3% 66.6%, var(--sd-red) 66.6%);
  width: 100%;
}

/* =====================================================
   PAGE TITLE HERO (non-WooCommerce pages)
   ===================================================== */
.page-hero,
.entry-header,
.page-header {
  background: var(--sd-navy) !important;
  padding: 3rem 2.5rem 2.5rem !important;
  position: relative !important;
  overflow: hidden !important;
}
.page-hero::before,
.entry-header::before,
.page-header::before {
  content: '' !important;
  position: absolute !important;
  top: 0; left: 0; right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--sd-green) 33.3%, #fff 33.3% 66.6%, var(--sd-red) 66.6%) !important;
}
.page-title,
.entry-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  color: var(--sd-white) !important;
  letter-spacing: 3px !important;
}

/* =====================================================
   SEARCH BOX (global)
   ===================================================== */
.search-form input[type="search"],
.widget_search input[type="search"] {
  border: 1.5px solid var(--sd-border) !important;
  border-radius: 6px 0 0 6px !important;
  padding: 0.65rem 1rem !important;
  font-family: 'Barlow', sans-serif !important;
}
.search-form input[type="submit"],
.widget_search input[type="submit"] {
  background: var(--sd-navy) !important;
  color: white !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 0.65rem 1.25rem !important;
  border: none !important;
  cursor: pointer !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .site-footer { padding: 2rem 1.25rem !important; }
  .woocommerce-billing-fields,
  .woocommerce-shipping-fields {
    padding: 1.25rem !important;
  }
}
