/* Reset & Base Styles */
html {
  box-sizing: border-box;
  font-size: 16px;
  /* Base desktop font size */
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  line-height: 1.6;
  color: #222;
  background: #fff;
  font-size: 1rem;
  /* equals 16px on desktop */
}

/* Links */
a {
  color: #0073aa;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Headings - use REM for scalable sizing */
h1 {
  font-size: 2.5rem;
  /* 40px desktop */
}

h2 {
  font-size: 2rem;
  /* 32px desktop */
}

h3 {
  font-size: 1.75rem;
  /* 28px desktop */
}

h4 {
  font-size: 1.5rem;
  /* 24px desktop */
}

h5 {
  font-size: 1.25rem;
  /* 20px desktop */
}

h6 {
  font-size: 1rem;
  /* 16px desktop */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Buttons (WooCommerce included) */
button,
.button,
input[type=submit],
.woocommerce a.button,
.woocommerce button.button {
  font-size: 1rem;
  background: #0073aa;
  color: #fff;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover,
.button:hover,
.woocommerce a.button:hover {
  background: #005f8d;
}

/* Forms */
input,
select,
textarea {
  width: 100%;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 1em;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-size: 0.95rem;
}

/* Tables (cart, checkout, account) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th,
td {
  padding: 0.75em;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

/* =========================================
   RESPONSIVE FONT SIZE
   ========================================= */
@media (max-width: 768px) {
  html {
    font-size: 15px;
    /* Slightly smaller on tablets */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
    /* Smaller base size for phones */
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}



/* Base hero styling */
.home-hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Grid setup */
.hero-grid {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Column count classes */
.hero-grid.columns-1 {
  grid-template-columns: 1fr;
}

.hero-grid.columns-2 {
  grid-template-columns: 1fr 1fr;
}

.hero-grid.columns-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Column content */
.hero-col {
    width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Left column text */
.hero-left h1 {
  font-size: 3rem;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 900;
}

.hero-left .subtitle {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin:0;
}

.hero-btn {
  display: inline-block;
  padding: 12px 24px;
  background: rgb(204, 204, 204);
  color: #3d3d3d;
  text-decoration: none;
  border-radius: 24px;
  width: 150px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-col{
    width: 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-btn {
    margin: 0 auto;
  }
}

.our-companies {
  max-width: 1200px;
  margin: auto;
  margin-top: 50px;
  text-align: center;
}

.our-companies-section {
  background-color: #142552;
  border-radius: 20px;
  padding: 50px;
  margin-top: 10px;
  color: #fff;
}

.our-companies-context h1 {
  font-size: 65px;
  font-weight: 700;
}

.our-companies-context p {
  font-size: 25px;
  font-weight: 400;
}

.our-companies-logo {
  display: flex;
  gap: 30px;
}

.our-companies-logo div {
  width: 33%;
  height: 372px;
  margin: auto;
  padding: 20px;
  align-content: center;
  border-radius: 20px;
}

.our-companies-logo div.amc{
  background-color: rgb(49, 62, 147, 0.7);
}

.our-companies-logo div.scanbake{
  background-color: #ffb846;
  background-color: rgb(255, 184, 70, 0.7);
  
}


.our-companies-logo div.compass{
  background-color: #ff914d;
  background-color: rgb(255, 145, 77, 0.7);
}

.our-companies-logo div img {
  width: 100%;
  object-fit: contain;
}


/* Responsive adjustments */
@media (max-width: 768px) {

  .our-companies-section {
    padding: 20px;
  }

  .our-companies-context h1 {
    font-size: 25px;
    font-weight: 700;
  }

  .our-companies-context p {
    font-size: 8px;
    font-weight: 400;
  }

  .our-companies-logo div {
  width: 33%;
  height: 100px;
  padding: 5px;
}
}