/* ============================================================
   Hardy Commodities — Global.css (CLEANED & FIXED)
   Header/Menu styling removed — handled by header-menu.css
   Footer styling removed — footer is now component-scoped
   ============================================================ */

/* === 1. RESET & BODY DEFAULTS === */
/* === 2. UNIVERSAL RESPONSIVE IMAGES === */
/* === 3. LINKS === */
/* === 4. SECTION LAYOUT === */
/* === 5. TYPOGRAPHY & HEADINGS === */
/* === 6. QUOTE GRID === */
/* === 7. MAIN CONTENT === */
/* === 8. BUTTONS === */
/* === 9. SERVICES PAGE OVERRIDES === */
/* === 10. IMAGE UPSCALE === */
/* === 11. ACCESSIBILITY === */


/* ============================================================
   1. RESET & BODY DEFAULTS
   ============================================================ */
html, body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Arial, sans-serif;
  height: 100%;
  overflow-x: hidden;
}


body {
  display: flex;
  flex-direction: column;
  background-color: black;
  font-size: 1rem;
  line-height: 1.6;
}


body.quotetable { background-color: black; }
body.services { background-color: lightgreen; }

body {
  background-color: #000;
}

main { flex: 1; } 

/* Keep sticky footer behavior */
footer { margin-top: auto; } 

html { font-size: 18px; }



/* ============================================================
   2. UNIVERSAL RESPONSIVE IMAGES
   ============================================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a img {
  display: inline !important;
  vertical-align: text-bottom;
}


/* ============================================================
   3. LINKS
   ============================================================ */
a { color: gold; text-decoration: none; }
a:hover { text-decoration: underline; color: gold; }


/* ============================================================
   4. SECTION LAYOUT
   ============================================================ */
section { margin: 0; padding-top: 10px; }


/* ============================================================
   5. TYPOGRAPHY & HEADINGS
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  margin: 0.5em 0;
  line-height: 1.2;
}


/* ============================================================
   6. QUOTE GRID
   ============================================================ */
section.quote-grid h3, section.quote-grid h4,
section.quote-grid h5, section.quote-grid h6 { color: white; }

.quote-grid { position: relative; margin-top: 30px; }

.quote-grid::before, .quote-grid::after {
  position: absolute;
  top: 15%;
  transform: translateY(-50%);
  color: gold;
  font-size: 20px;
  pointer-events: none;
  transition: opacity 0.3s;
}

.quote-grid.blink-left::before { content: "⇦"; left: -5px; animation: blink 1.5s infinite; }
.quote-grid.blink-right::after { content: "⇨"; right: -5px; animation: blink 1.5s infinite; }

@keyframes blink {
  0%,50%,100% { opacity: 1; }
  25%,75% { opacity: 0; }
}

.quote-grid-wrapper { overflow-x: auto; width: 100%; }

.quote-grid table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.quote-grid table th,
.quote-grid table td {
  padding: 4px 6px;
  line-height: 1.4;
  font-size: 1rem;
  white-space: nowrap;
  border: 1px solid white;
  text-align: center;
  vertical-align: middle;
}

.dashboard .quote-grid table th,
.dashboard .quote-grid table td {
  text-align: left !important;
}

body.quotetable .quote-grid th,
body.quotetable .quote-grid td {
  border: 1px solid #ccc;
}

@media (max-width: 1024px) {
  .quote-grid table th,
  .quote-grid table td {
    border: 1px solid white !important;
    text-align: left;
  }
}

@media (min-width: 1025px) {
  .quote-grid table th,
  .quote-grid table td {
    text-align: center;
  }
}

@media (min-width: 1366px) {
  .quote-grid table th,
  .quote-grid table td {
    font-size: 1.05rem;
    padding: 6px 8px;
  }
}

@media (min-width: 1600px) {
  .quote-grid table th,
  .quote-grid table td {
    font-size: 1.2rem;
    padding: 10px 12px;
  }
}

@media (min-width: 1920px) {
  .quote-grid table th,
  .quote-grid table td {
    font-size: 1.4rem;
    padding: 14px 16px;
  }
}

.dashboard .quote-grid table td {
  text-align: center;
  vertical-align: middle;
}

@media (min-width: 1025px) {
  body:not(.quotetable) .quote-grid table th,
  body:not(.quotetable) .quote-grid table td {
    border: none !important;
  }
}

body.quotetable .quote-grid table td { text-align: left !important; }
body.quotetable .quote-grid table th { text-align: center !important; }


/* ============================================================
   7. MAIN CONTENT
   ============================================================ */
main {
  padding: 0;
  margin-top: 0px;
}



/* ============================================================
   8. BUTTONS
   ============================================================ */
button {
  background-color: gold;
  color: black;
  border: none;
  padding: 8px 12px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background-color: darkgoldenrod;
  color: white;
}


/* ============================================================
   9. SERVICES PAGE OVERRIDES
   ============================================================ */
.services-section p,
.services-section ul,
.services-section ol,
.services-section li { color: black; }

.services-section h3,
.services-section h4,
.services-section h5,
.services-section h6 {
  color: black;
  text-align: left;
}

.services-section a {
  color: blue !important;
  text-decoration: underline;
}

.services-section a:hover {
  color: darkblue !important;
}

.trading_platforms img {
  padding-left: 6px;
  padding-right: 25px;
  box-sizing: border-box;
}


/* ============================================================
   10. IMAGE UPSCALE
   ============================================================ */
@media (min-width: 1600px) {
  img { max-width: 90%; height: auto; }

  div[align="center"] img {
    width: 45vw !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 1920px) {
  div[align="center"] img {
    width: 50vw !important;
    max-width: none !important;
    height: auto !important;
  }
}


/* ============================================================
   11. ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid gold;
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus, button:focus {
  outline: 3px solid gold;
  outline-offset: 2px;
  background-color: #333;
}

body {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.8;
}






