/* ============================================
   BASE.CSS - Scaffolding Depot
   Core styles shared across all pages
   ============================================ */

/* Font Fallbacks */
@font-face {
    font-family: 'Poppins';
    font-display: swap;
    src: local('Arial');
    size-adjust: 105%;
}

@font-face {
    font-family: 'Open Sans';
    font-display: swap;
    src: local('Arial');
    size-adjust: 105%;
}

/* CSS Variables */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray: #666666;
    --dark-navy: #253041;
    --brand-orange: #F6A000;
    --text-color: #333333;
    --font-headline: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font-body); line-height: 1.5; scroll-behavior: smooth; margin: 0; padding: 0; }
body { background-color: var(--white); color: var(--text-color); margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headline); font-weight: 700; line-height: 1.3; color: var(--brand-orange); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 0.5rem; line-height: 1.5; }

/* Layout */
.container { max-width: 1400px; margin: 0 auto; }
.section { width: 100%; padding: 20px 0; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }

/* Product Grid Layout */
.c-row > .inner {
    display: flex !important;
    width: 100% !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

/* Reserve space for injected header/footer to avoid CLS on load */
#header-placeholder,
#footer-placeholder {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#footer-placeholder {
    min-height: 340px;
}

/* Ensure no gaps around header and main content */
.site-header-container,
main {
    margin: 0;
    padding: 0;
    display: block;
}

@media (max-width: 768px) {
    #footer-placeholder {
        min-height: 320px;
    }

    #footer-placeholder {
        min-height: 320px;
    }
}

/* 3-column rows */
.row-Nghwumd_wI .c-column,
.row-iTbdR5ohMf .c-column,
.row-ZGUfoy5rKW .c-column,
.row-o5NPOVI8Ca .c-column {
    flex: 1 1 calc(33.333% - 14px) !important;
    min-width: 250px !important;
    max-width: calc(33.333% - 14px) !important;
}

/* 4-column rows */
.row-Hj76CZrtRJ .c-column,
.row-xIofUljk7Y .c-column,
.row-j7_X8ZZ_NZ .c-column {
    flex: 1 1 calc(25% - 15px) !important;
    min-width: 200px !important;
    max-width: calc(25% - 15px) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .row-Hj76CZrtRJ .c-column,
    .row-xIofUljk7Y .c-column {
        flex: 1 1 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

@media (max-width: 768px) {
    .c-row > .inner {
        display: block !important;
    }
    
    .row-Nghwumd_wI .c-column,
    .row-iTbdR5ohMf .c-column,
    .row-ZGUfoy5rKW .c-column,
    .row-o5NPOVI8Ca .c-column,
    .row-Hj76CZrtRJ .c-column,
    .row-xIofUljk7Y .c-column,
    .row-j7_X8ZZ_NZ .c-column,
    .c-column {
        max-width: 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-bottom: 20px !important;
    }
    
    .c-column > .inner {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .c-column:last-child {
        margin-bottom: 0 !important;
    }
}

/* Button Text Size Override - Must override fix-cls.css */
@media screen and (min-width: 0px) and (max-width: 480px) {
    #preview-container [class*="button-"] .main-heading-button,
    #preview-container .main-heading-button {
        font-size: 24px !important;
    }
}

@media screen and (min-width: 481px) and (max-width: 10000px) {
    #preview-container [class*="button-"] .main-heading-button,
    #preview-container .main-heading-button {
        font-size: 24px !important;
    }
}

/* Fallback for any main-heading-button class */
#preview-container .main-heading-button {
    font-size: 24px !important;
}
.col { flex: 1; min-width: 0; }
.page-content { background-color: var(--white); padding: 20px; }

/* Legacy layout support */
.c-section, .fullSection { width: 100%; }
.c-row { display: flex; flex-wrap: wrap; width: 100%; margin-bottom: 20px; }
.c-row > .inner { display: flex; flex-wrap: wrap; width: 100%; }
.c-column { flex: 1; min-width: 0; }
.c-column > .inner, .vertical.inner { display: flex; flex-direction: column; }

/* Homepage Content Padding */
#preview-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Header / Navigation */
.site-header { background-color: var(--dark-navy); padding: 10px 0; position: sticky; top: 0; z-index: 1000; }
.nav-menu { display: flex; list-style: none; gap: 10px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.nav-menu li { list-style: none; }
.nav-menu a { color: var(--white); font-size: 13px; font-weight: 700; padding: 10px 15px; display: block; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--brand-orange); text-decoration: none; }

/* Dropdown menus */
.nav-menu-item.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--dark-navy); list-style: none; padding: 8px 0; min-width: 200px; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border-radius: 4px; }
.nav-menu-item.dropdown:hover > .dropdown-menu { display: block; }
.dropdown-item a { padding: 10px 20px; font-size: 12px; color: var(--white); }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-headline); font-size: 16px; font-weight: 700; padding: 12px 24px; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; text-align: center; }
.btn-primary { background-color: var(--brand-orange); color: var(--white); }
.btn-primary:hover { background-color: #C48000; text-decoration: none; }

/* Page Title */
.page-title { font-family: var(--font-headline); font-size: 2rem; font-weight: 700; color: var(--brand-orange); text-align: center; padding: 20px 0; margin-bottom: 20px; }

/* Images */
.c-image, .image-container { text-align: center; display: flex; justify-content: center; align-items: center; }

/* Text blocks */
.text-output { line-height: 1.4; }
[class*="paragraph-"], [class*="heading-"], [class*="sub-heading-"] { padding: 5px 0; }

/* Utility Classes */
.text-center { text-align: center; }
.hide { display: none; }
.mw-100 { max-width: 100%; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .row, .c-row > .inner { flex-direction: column; }
    .col, .c-column { width: 100%; flex: none; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .nav-menu { flex-direction: column; align-items: center; gap: 5px; }
    .nav-menu a { padding: 5px 15px; }
    .site-header { position: relative; }
    
    /* Mobile dropdown functionality */
    .nav-menu-item.dropdown { width: 100%; text-align: center; }
    .dropdown-menu { display: none; position: static; width: 100%; box-shadow: none; border-radius: 0; padding: 0; margin-top: 5px; }
    .nav-menu-item.dropdown.active .dropdown-menu { display: block; }
    .nav-menu-item.dropdown > a::after { content: ' ▼'; font-size: 10px; }
    .dropdown-item a { padding: 5px 20px; }
    .dropdown-item a strong { color: var(--brand-orange); }
}

/* ====================================
   FOOTER STYLES
   ==================================== */

footer.site-footer {
  background-color: #f5f5f5 !important;
  padding: 2rem 0 0 !important;
  margin-top: 3rem;
  margin-bottom: 0;
  width: 100%;
}

.site-footer .footer-heading {
  text-align: center;
  margin-bottom: 1.25rem;
}

.site-footer .footer-heading h2 {
  font-size: 2rem !important;
  font-weight: 700;
  margin: 0;
  color: #2c3e50 !important;
}

.site-footer .footer-heading .text-orange {
  color: #F6A000 !important;
}

/* Trust Bar */
.site-footer .footer-trust-bar {
  background: linear-gradient(135deg, #F6A000 0%, #F6A000 100%) !important;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1.25rem;
  margin: 0 auto 1.5rem;
  max-width: 1200px;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer .trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .trust-item img {
  max-width: 100%;
  height: auto;
  filter: brightness(1.1);
}

.site-footer .safety-badge {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
}

.site-footer .safety-badge h3 {
  color: white !important;
  font-size: 2rem !important;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.site-footer .credit-cards-badge {
  background-color: #000 !important;
  color: white !important;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0; /* Removing padding to give more space, or rely on flex centering */
  overflow: hidden; /* Clip content to the circle shape */
}

.site-footer .credit-cards-badge img {
  max-width: none !important; /* Allow image to exceed container width */
  width: 170px !important; /* Force the larger size (approx +30%) */
  height: auto !important;
  border-radius: 0 !important; /* Prevent circular cropping of the image itself */
  padding: 0 !important; /* Remove any padding on the image */
  background: transparent !important; /* Ensure image background doesn't conflict */
}

/* Contact Bar */
.site-footer .footer-contact-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 0 2rem;
}

.site-footer .contact-button {
  background-color: #000 !important;
  color: white !important;
  padding: 1rem 2rem;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.site-footer .contact-button:hover {
  background-color: #333 !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.site-footer .contact-button .icon {
  font-size: 1.2rem;
}

/* ====================================
   CTA CONTACT SECTION
   ==================================== */

.cta-contact {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.cta-contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.cta-contact p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.cta-contact a {
  color: #F6A000;
  text-decoration: none;
  font-weight: 600;
}

.cta-contact a:hover {
  text-decoration: underline;
}

.cta-contact .btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #F6A000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-contact .btn:hover {
  background-color: #C48000;
  text-decoration: none;
}

@media (max-width: 768px) {
  .cta-contact {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }
  
  .cta-contact h2 {
    font-size: 1.5rem;
  }
  
  .cta-contact p {
    font-size: 1rem;
  }
}

/* Footer Links Grid */
.site-footer .footer-links {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
}

.site-footer .footer-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.site-footer .footer-row-centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer .footer-row a {
  color: #2c3e50 !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  text-align: center;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-row a:hover {
  color: #F6A000 !important;
  text-decoration: none !important;
  border-color: #F6A000;
  background-color: rgba(255, 87, 34, 0.05);
}

/* Footer Logo */
.site-footer .footer-logo {
  text-align: center;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
}

.site-footer .footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}

/* Footer Legal */
.site-footer .footer-legal {
  background-color: #2c3e50 !important;
  color: white !important;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 1.1rem;
}

.site-footer .footer-legal p {
  margin: 0.5rem 0;
  color: white !important;
}

.site-footer .footer-legal a {
  color: #F6A000 !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.site-footer .footer-legal a:hover {
  color: #F6A000 !important;
  text-decoration: underline !important
  text-decoration: underline;
}

.site-footer .footer-disclaimer {
  background-color: #1a252f;
  color: #999999;
  padding: 1rem 0 1rem 0;
  font-size: 0.8rem;
  line-height: 1.0;
  width: 100%;
  margin: 0;
  text-align: left;
}

.site-footer .footer-disclaimer p {
  max-width: 1400px;
  margin: 0 auto 0.35rem auto;
  padding: 0 2rem;
  color: #999999;
}

.site-footer .footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.site-footer .footer-disclaimer strong {
  color: #cccccc;
  font-weight: 600;
}

/* Footer Disclaimer Accordion */
.site-footer .disclaimer-summary {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-footer .disclaimer-summary p {
  margin: 0;
  padding: 0;
}

.site-footer .disclaimer-summary a {
  color: var(--brand-orange);
  text-decoration: underline;
}

.site-footer .disclaimer-toggle {
  background: none;
  border: 1px solid #666;
  color: #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.site-footer .disclaimer-toggle:hover {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: white;
}

.site-footer .disclaimer-details {
  max-width: 1400px;
  margin: 1rem auto 0 auto;
  padding: 0 2rem;
}

.site-footer .disclaimer-section {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #333;
}

.site-footer .disclaimer-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.site-footer .disclaimer-section h4 {
  color: #ccc;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-family: var(--font-headline);
}

.site-footer .disclaimer-section p {
  margin: 0;
  padding: 0;
  color: #999;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 992px) {
  .site-footer .footer-row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .site-footer .footer-trust-bar {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-heading h2 {
    font-size: 2rem !important;
  }
  
  .site-footer .footer-trust-bar {
    flex-direction: column;
    padding: 1.5rem;
  }
  
  .site-footer .footer-contact-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-footer .contact-button {
    width: 100%;
    max-width: 400px;
    justify-content: center;
  }
  
  .site-footer .footer-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .site-footer .credit-cards-badge {
    width: 120px;
    height: 120px;
    font-size: 1rem;
  }
  
  .site-footer .footer-disclaimer {
    font-size: 0.75rem;
    padding: 0.85rem 0;
    line-height: 1.0;
  }
  
  .site-footer .footer-disclaimer p {
    padding: 0 1.5rem;
    margin-bottom: 0.3rem;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-heading h2 {
    font-size: 1.5rem !important;
  }
  
  .site-footer .safety-badge h3 {
    font-size: 1.5rem !important;
  }
  
  .site-footer .footer-row {
    grid-template-columns: 1fr;
  }
  
  .site-footer .footer-trust-bar {
    gap: 1rem;
  }
  
  .site-footer .footer-disclaimer {
    font-size: 0.7rem;
    padding: 0.75rem 0;
    line-height: 1.0;
  }
  
  .site-footer .footer-disclaimer p {
    padding: 0 1rem;
    margin-bottom: 0.25rem;
  }
}

/* ====================================
   TERMS & CONDITIONS PAGE
   ==================================== */

.terms-content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.terms-content h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 3px solid #F6A000;
  padding-bottom: 1rem;
}

.terms-section {
  margin-bottom: 3rem;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #F6A000;
}

.terms-section h2 {
  font-size: 1.75rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.terms-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.spec-image {
  text-align: center;
  margin: 2rem 0;
}

.spec-image img {
  max-width: 100%;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 4px;
}

.contact-section {
  background-color: #e8f5e9;
  border-left-color: #4caf50;
}

.terms-section a {
  color: #F6A000;
  text-decoration: none;
  font-weight: 600;
}

.terms-section a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .terms-content h1 {
    font-size: 2rem;
  }
  
  .terms-section {
    padding: 1.5rem;
  }
  
  .terms-section h2 {
    font-size: 1.5rem;
  }
}
