/* =========================================================
   COTTON FREIGHT TRADING
   CLEAN CONSOLIDATED CSS
========================================================= */


/* =========================================================
   1. ROOT / GLOBAL
========================================================= */

:root {
  --cft-navy: #061d35;
  --cft-deep: #04172b;
  --cft-panel: #102c49;
  --cft-panel-2: #173653;

  --cft-gold: #f5b81b;
  --cft-blue: #1877f2;

  --cft-white: #ffffff;
  --cft-muted: #d4e0ea;

  --cft-line: rgba(255, 255, 255, 0.18);

  --cft-max: 1500px;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


html,
body {
  min-height: 100%;
  max-width: 100%;
}


body {
  margin: 0;

  background: var(--cft-navy);
  color: var(--cft-white);

  overflow-x: hidden;
}


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


a {
  color: inherit;
}


.section-shell,
.history-shell {
  width: min(94vw, var(--cft-max));

  margin-left: auto;
  margin-right: auto;
}


/* PAGE SWITCHING */

[data-site-page] {
  background: var(--cft-navy);
  color: var(--cft-white);
}


.page-mode-ready [data-site-page]:not(.page-active),
body.page-mode-ready [data-site-page][hidden] {
  display: none !important;
}


.eyebrow {
  color: var(--cft-gold);

  font-weight: 900;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.section-heading {
  max-width: 980px;

  margin: 0 0 38px;

  text-align: left;
}


.section-heading h1,
.section-heading h2 {
  color: var(--cft-white);
}


.section-heading p {
  color: var(--cft-muted);
}


/* =========================================================
   2. HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;

  z-index: 1000;

  background: var(--cft-deep);

  border-top: 3px solid var(--cft-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}


.nav-shell {
  position: relative;

  width: min(94vw, var(--cft-max));
  min-height: 86px;

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


.brand {
  display: inline-flex;

  padding: 4px 10px;

  background: #ffffff;

  border-radius: 2px;
}


.brand-logo {
  width: 114px;
  height: 76px;

  object-fit: cover;
  object-position: center 42%;
}


.nav-links {
  display: flex;
  align-items: center;

  gap: 34px;
}


.nav-links a {
  color: #ffffff;

  font-weight: 800;

  text-decoration: none;
}


.nav-links a:hover,
.nav-links a.page-current {
  color: var(--cft-gold);
}


.nav-cta {
  padding: 12px 20px;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
}


.nav-toggle {
  display: none;
}


/* =========================================================
   3. PRODUCTS DROPDOWN
========================================================= */

.products-dropdown {
  position: relative;

  display: inline-block;
}


.products-dropdown-button {
  display: inline-block;
}


.products-dropdown-menu {
  display: none;

  position: absolute;

  top: 100%;
  left: 0;

  min-width: 190px;

  padding: 8px 0;

  background: var(--cft-deep);

  border: 1px solid rgba(255, 255, 255, 0.20);

  z-index: 9999;
}


.products-dropdown:hover .products-dropdown-menu,
.products-dropdown:focus-within .products-dropdown-menu {
  display: flex;
  flex-direction: column;
}


.products-dropdown-menu a {
  display: block;

  width: 100%;

  padding: 10px 16px;

  color: #ffffff;

  white-space: nowrap;

  text-decoration: none;
}


.products-dropdown-menu a:hover {
  color: var(--cft-gold);

  background: var(--cft-panel);
}


/* =========================================================
   4. BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 22px;

  font-weight: 900;

  text-decoration: none;
}


.btn-primary {
  min-width: 200px;

  background: var(--cft-gold);
  color: var(--cft-deep);

  border-radius: 999px;
}


.btn-secondary {
  color: #ffffff;

  border: 1px solid #ffffff;
}


.btn-hero-contact {
  display: inline-flex;

  min-width: 245px;

  padding: 16px 28px;

  background: transparent;

  color: #ffffff;

  border: 2px solid #ffffff;
  border-radius: 4px;

  font-size: 17px;
  font-weight: 900;

  text-align: center;
}


.btn-hero-contact:hover {
  background: #ffffff;

  color: var(--cft-deep);
}


/* =========================================================
   5. HOME
========================================================= */

.hero {
  width: min(94vw, var(--cft-max));

  min-height: calc(100vh - 86px);

  margin-inline: auto;

  padding: 54px 0 64px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(500px, 0.85fr);

  column-gap: 35px;

  align-items: start;

  background: var(--cft-navy);
}


.hero-copy {
  width: 100%;
  max-width: 690px;

  padding-top: 8px;

  color: #ffffff;
}


.hero-copy .eyebrow {
  margin-bottom: 22px;
}


.hero h1 {
  margin: 0 0 26px;

  color: #ffffff;

  font-size: 70px;
  line-height: 1.08;

  letter-spacing: -0.035em;
}


.hero-copy > p,
.hero-lede {
  width: 100%;

  margin: 0 0 28px;

  color: var(--cft-muted);

  font-size: 25px;
  line-height: 1.5;

  text-align: justify;
  text-justify: inter-word;
}


.hero-actions {
  margin: 0 0 10px;
}


.hero-actions .btn-primary {
  min-width: 245px;

  padding: 18px 32px;

  font-size: 17px;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}


/* AVAILABLE */

.availability-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 8px;

  width: max-content;
  max-width: 650px;

  margin: 0 0 42px;

  padding: 20px 22px;

  background: rgba(255, 255, 255, 0.09);

  border-left: 5px solid var(--cft-gold);
}


.availability-note strong {
  color: var(--cft-gold);

  font-size: 21px;
  font-weight: 900;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}


.availability-note span {
  color: rgba(255, 255, 255, 0.90);

  font-size: 16px;
  line-height: 1.5;

  white-space: nowrap;
}


/* HOME CONTACT */

.home-contact-button {
  display: inline-flex;

  min-width: 245px;

  margin: 0 0 42px;
}


.hero-business-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 30px;

  width: 100%;
}


.hero-business-links a {
  color: #ffffff;

  font-weight: 800;

  text-decoration: underline;

  text-decoration-color: var(--cft-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}


.hero-business-links .hero-messenger-link {
  order: 1;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding: 9px 15px;

  background: #0084ff;

  border-radius: 999px;

  text-decoration: none;
}


.hero-business-links .hero-facebook-link {
  order: 2;
}


.hero-business-links .home-location-block {
  order: 3;
}


.hero-messenger-link svg,
.home-facebook-icon {
  width: 19px;
  height: 19px;

  fill: currentColor;
}


.hero-facebook-link {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  padding: 11px 18px;

  background: var(--cft-blue);

  color: #ffffff;

  border-radius: 999px;

  text-decoration: none !important;

  font-weight: 700;
}


.hero-business-links a[href*="google.com"] {
  font-size: 20px;
  font-weight: 700;
}


.home-location-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 12px;
}


.home-mini-map {
  width: 260px;
  height: 145px;

  overflow: hidden;

  border: 2px solid var(--cft-gold);
  border-radius: 10px;
}


.home-mini-map iframe {
  width: 100%;
  height: 100%;

  border: 0;
}


/* HOME PHOTOS */

.hero-media.hero-collage {
  width: 100%;
  max-width: 620px;

  justify-self: end;
  align-self: start;
}


.hero-collage {
  display: grid;

  gap: 10px;
}


.hero-collage .collage-group {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 7px;

  padding: 7px;

  margin-bottom: 12px;

  background: rgba(255, 255, 255, 0.92);

  border-radius: 16px;
}


.hero-collage .collage-group:last-child {
  margin-bottom: 0;
}


.hero-collage .collage-group img {
  width: 100%;
  height: 100%;

  min-height: 95px;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: 9px;
}


/* =========================================================
   6. HISTORY
========================================================= */

.history,
#history {
  padding: 48px 0 50px;

  background: var(--cft-deep);

  color: #ffffff;
}


.history-heading {
  max-width: 900px;

  margin-bottom: 34px;
}


#history h2 {
  color: #ffffff;

  font-size: 52px;
}


.history-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;

  margin-top: 24px;
}


.history-grid article {
  min-height: 190px;

  padding: 26px;

  background: var(--cft-panel);

  border: 1px solid rgba(255, 255, 255, 0.12);
}


.history-grid span {
  color: var(--cft-gold);

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.history-grid h3 {
  margin: 12px 0;

  color: #ffffff;

  font-size: 22px;
}


.history-grid p,
.history-close {
  color: var(--cft-muted);
}


.history-close {
  width: 100%;

  margin: 30px 0 0;

  padding-top: 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.16);

  font-size: 18px;
  line-height: 1.75;
}


/* =========================================================
   7. PRODUCTS
========================================================= */

.products,
#products {
  width: min(94vw, var(--cft-max));

  margin-inline: auto;

  padding: 70px 0 30px;

  background: var(--cft-navy);

  color: #ffffff;
}


.products h1,
.products h2,
.products h3 {
  color: #ffffff;
}


.products p {
  color: var(--cft-muted);
}


.products-overview-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 26px;

  margin: 0 0 60px;
}


.products-overview-card {
  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: var(--cft-panel-2);

  color: #ffffff;

  border: 3px solid #ffffff;
  border-radius: 10px;

  text-decoration: none;
}


.products-overview-card:hover {
  border-color: var(--cft-gold);
}


.products-overview-collage {
  height: 190px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 4px;

  padding: 6px;

  background: #ffffff;
}


.products-overview-collage img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  background: #ffffff;

  border-radius: 5px;
}


.products-overview-copy {
  min-height: 230px;

  display: flex;
  flex-direction: column;

  padding: 24px 26px;
}


.products-overview-number {
  margin-bottom: 20px;

  color: var(--cft-gold);

  font-size: 14px;
  font-weight: 900;

  letter-spacing: 2px;
}


.products-overview-card h3 {
  margin: 0 0 16px;

  font-size: 32px;
  line-height: 1.1;
}


.products-overview-card p {
  margin: 0 0 25px;

  color: #dbe6ef;

  font-size: 16px;
  line-height: 1.6;
}


.products-overview-copy strong {
  margin-top: auto;

  color: var(--cft-gold);

  font-size: 15px;
}


/* =========================================================
   8. PRODUCT SUBPAGES
========================================================= */

.product-subpage {
  padding-top: 70px;
  padding-bottom: 70px;
}


.product-subpage-heading {
  margin-bottom: 36px;
}


.product-subpage-title {
  margin: 10px 0 18px;

  color: #ffffff;

  font-size: 48px;
  line-height: 1.1;

  white-space: nowrap;
}


.product-subpage-intro {
  max-width: 900px;

  color: #ffffff;

  font-size: 17px;
  line-height: 1.7;
}


.fiber-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 18px;
}


.fiber-products-grid,
.pillow-products-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;
}


.fiber-card {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: var(--cft-panel);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}


.fiber-card > a {
  display: flex;
  flex-direction: column;

  height: 100%;

  color: inherit;

  text-decoration: none;
}


.fiber-card img {
  width: 100%;
  height: 320px;

  object-fit: cover;

  background: #ffffff;
}


.fiber-products-grid .fiber-card img,
.pillow-products-grid .fiber-card img {
  height: 330px;

  object-fit: contain;
}


.fiber-card > div,
.fiber-card > a > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;

  padding: 16px 14px 18px;
}


.fiber-card h3 {
  margin: 0 0 10px;

  padding: 7px 10px;

  background: var(--cft-navy);

  color: #ffffff;

  border-left: 4px solid var(--cft-gold);

  font-size: 17px;
}


.fiber-card p {
  margin: 0;

  color: var(--cft-muted);

  font-size: 12px;
  line-height: 1.5;
}


.product-type-label {
  display: table;

  margin-bottom: 8px;

  padding: 5px 8px;

  background: var(--cft-gold);

  color: var(--cft-deep);

  font-size: 10px;
  font-weight: 900;

  text-transform: uppercase;
}


.grade-sublabel {
  display: table;

  margin: -3px 0 9px;

  padding: 4px 8px;

  background: #fff2c8;

  color: var(--cft-deep);

  font-size: 11px;
  font-weight: 800;
}


.view-product {
  display: inline-block;

  margin-top: auto;

  padding-top: 13px;

  color: var(--cft-gold);

  font-size: 12px;
  font-weight: 800;

  text-decoration: none;
}


/* =========================================================
   9. SALES TEAM
========================================================= */

.product-contact-panel {
  margin-top: 50px;
  margin-bottom: 20px;

  padding: 45px;

  background: var(--cft-navy);
}


.sales-team-contact-link {
  color: var(--cft-gold) !important;

  font-weight: 900;

  text-decoration: underline;

  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


.product-sales-links,
.product-sales-clean,
.contact-sales-clean {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 14px;

  width: 100%;
}


.product-sales-links {
  max-width: 1100px;

  margin-top: 22px;
  margin-bottom: 26px;
}


.product-sales-clean .sales-person,
.contact-sales-clean .sales-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;

  padding: 18px 16px;

  background: var(--cft-panel-2);

  border: 2px solid #ffffff;
  border-radius: 7px;
}


.product-sales-clean .sales-person {
  min-height: 150px;
}


.contact-sales-clean .sales-person {
  min-height: 118px;
}


.product-sales-clean .sales-person > strong,
.contact-sales-clean .sales-person > strong {
  margin: 0 0 8px;

  color: var(--cft-gold);

  font-size: 16px;
  font-weight: 900;
}


.product-sales-clean .sales-job-title,
.contact-sales-clean .sales-job-title {
  margin: 0 0 7px;

  color: #ffffff;

  font-size: 12px;
  font-weight: 800;

  white-space: nowrap;
}


.product-sales-clean .sales-person > small,
.contact-sales-clean .sales-person > small {
  margin: 0 0 8px;

  color: #c6d6e4;

  font-size: 11px;
  font-weight: 700;

  white-space: nowrap;
}


.product-sales-clean .sales-phone,
.contact-sales-clean .sales-phone {
  color: #ffffff;

  font-size: 15px;
  font-weight: 900;

  white-space: nowrap;
}


/* =========================================================
   10. TEXTILE WASTES
========================================================= */

.textile-waste-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;
}


.textile-waste-grid .scrap-photo-grid,
.textile-waste-grid .yarn-photo-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 2px;

  height: 260px;

  background: #ffffff;
}


.textile-waste-grid .scrap-photo-grid img,
.textile-waste-grid .yarn-photo-grid img {
  width: 100%;
  height: 260px;

  object-fit: contain;

  background: #ffffff;
}


.textile-waste-grid .other-product-copy {
  padding: 20px;

  background: var(--cft-panel-2);
}


/* =========================================================
   11. APPLICATIONS
========================================================= */

.applications {
  padding: 56px 0 68px;

  background: var(--cft-deep);
}


.applications > .section-shell {
  width: min(94vw, var(--cft-max));
}


.applications .section-heading {
  margin: 0 auto 46px;

  text-align: center;
}


.applications h2 {
  font-size: clamp(42px, 4vw, 62px);
}


.application-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 20px;
}


.application-grid > div,
.application-card {
  overflow: hidden;

  padding-bottom: 22px;

  background: rgba(255, 255, 255, 0.065);

  border: 1px solid rgba(255, 255, 255, 0.12);
}


.application-grid img {
  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;
}


.application-grid h3 {
  margin: 18px 20px 8px;
}


.application-grid p {
  margin: 0;

  padding: 0 20px;

  color: var(--cft-muted);
}


.application-details-link {
  display: block;

  margin: 16px 20px 0;

  color: var(--cft-gold);

  font-size: 13px;
  font-weight: 900;
}


/* =========================================================
   12. CONTACT
========================================================= */

.contact,
.contact-clean {
  padding: 60px 0 70px;

  background: var(--cft-navy);
}


.contact-clean-shell {
  display: flex;

  align-items: flex-start;

  gap: 48px;
}


.contact-clean-main {
  flex: 1 1 60%;

  min-width: 0;
}


.contact-sales-title {
  margin: 0 0 28px;

  color: var(--cft-gold);

  font-size: 48px;
  line-height: 1.05;

  font-weight: 900;
}


.contact-sales-grid {
  margin: 0 0 36px;
}


.contact-clean-info {
  margin-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.20);
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}


.contact-info-row {
  display: grid;

  grid-template-columns: 120px 1fr;

  gap: 24px;

  padding: 22px 0;
}


.contact-info-row strong {
  color: var(--cft-gold);

  font-size: 15px;
}


.contact-info-row > div {
  display: flex;
  flex-direction: column;

  gap: 8px;
}


.contact-info-row a {
  color: #ffffff;

  font-size: 17px;
  font-weight: 800;

  text-decoration: none;
}


.contact-clean-actions {
  display: flex;
  flex-direction: column;

  gap: 18px;

  margin-top: 24px;
}


.contact-text-link {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  color: #ffffff;

  font-size: 15px;
  font-weight: 900;

  text-decoration: none;
}


.contact-text-link span {
  padding-bottom: 3px;

  border-bottom: 2px solid var(--cft-gold);
}


.contact-text-icon {
  width: 18px;
  height: 18px;

  fill: #ffffff;
}


.contact-map-panel {
  flex: 0 0 40%;

  max-width: 560px;

  padding: 26px;

  background: #1b405f;

  border: 1px solid #ffffff;
  border-top: 4px solid var(--cft-gold);
}


.contact-map-panel h3 {
  margin: 0 0 14px;

  font-size: 28px;
}


.map-business-address {
  margin-bottom: 20px;
}


.map-business-address strong {
  display: block;

  margin-bottom: 6px;

  color: var(--cft-gold);
}


.contact-map-frame {
  width: 100%;
  height: 320px;

  overflow: hidden;

  background: #ffffff;
}


.contact-map-frame iframe {
  width: 100%;
  height: 100%;

  border: 0;
}


.contact-map-link {
  display: inline-block;

  margin-top: 16px;

  color: var(--cft-gold);

  font-weight: 900;

  text-decoration: underline;
}


/* =========================================================
   13. FOOTER
========================================================= */

.site-footer,
footer {
  background: var(--cft-deep);

  border-top: 3px solid var(--cft-gold);
}


.site-footer {
  padding: 45px 0 20px;
}


.footer-modern {
  width: min(94vw, var(--cft-max));

  margin-inline: auto;

  display: grid;

  grid-template-columns: 1.2fr 0.8fr 1fr;

  gap: 60px;
}


.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.footer-logo {
  width: 105px;

  margin-bottom: 15px;

  background: #ffffff;
}


.footer-brand strong {
  margin-bottom: 5px;

  font-size: 18px;
}


.footer-brand span,
.footer-contact span {
  color: #cbd8e4;

  font-size: 14px;
}


.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;

  gap: 9px;
}


.footer-links h3,
.footer-contact h3 {
  margin: 0 0 14px;

  color: var(--cft-gold);
}


.footer-links a,
.footer-contact a {
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;
}


/* FOOTER SALES */

.footer-sales-numbers {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px 24px;

  width: 100%;

  margin: 12px 0 16px;
}


.footer-sales-numbers > div,
.footer-sales-numbers > a {
  display: flex;
  flex-direction: column;

  gap: 2px;

  text-decoration: none;
}


.footer-sales-numbers strong {
  color: var(--cft-gold);

  font-size: 14px;
}


.footer-sales-numbers .footer-job-title {
  margin: 3px 0 4px;

  font-size: 11px;
  font-weight: 800;
}


.footer-sales-numbers small {
  margin-bottom: 4px;

  color: #a9bfd3;

  font-size: 9px;
}


.footer-sales-numbers .footer-phone {
  color: #ffffff;

  font-size: 12px;
  font-weight: 900;
}


.footer-bottom {
  width: min(94vw, var(--cft-max));

  margin: 35px auto 0;

  padding-top: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  color: #9fb1c3;

  border-top: 1px solid rgba(255, 255, 255, 0.15);

  font-size: 12px;
}


.footer-bottom span:last-child {
  text-align: right;
}


/* =========================================================
   14. LARGE SCREENS
========================================================= */

@media (min-width: 1700px) {

  :root {
    --cft-max: 1650px;
  }

}

/* =========================================================
   PRODUCT SUBPAGES - MESSENGER BUTTON
========================================================= */

.product-messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 280px;
  margin-top: 14px;
  padding: 12px 16px;
  background: #0084ff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 4px;
}

.product-messenger-link svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}


/* =========================================================
   FINAL PAGE VISIBILITY FIX
========================================================= */

body.page-mode-ready #home[hidden],
body.page-mode-ready #history[hidden],
body.page-mode-ready #products[hidden],
body.page-mode-ready #applications[hidden],
body.page-mode-ready #contact[hidden] {
  display: none !important;
}

/* =========================================================
   15. NORMAL TABLET + MOBILE RESPONSIVE LAYOUT
   0px - 1100px
========================================================= */

@media (max-width: 1100px) {

  .section-shell,
  .history-shell,
  .products,
  #products,
  .applications > .section-shell,
  .product-subpage,
  .product-contact-panel,
  .footer-modern,
  .footer-bottom {
    width: 92vw;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  /* HEADER / HAMBURGER */
  .nav-shell {
    width: 92vw;
    min-height: 76px;
  }

  .brand-logo {
    width: 88px;
    height: 58px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    font-size: 26px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--cft-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 9999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .products-dropdown,
  .products-dropdown-button {
    width: 100%;
  }

  .products-dropdown-menu {
    display: none !important;
    position: static;
    width: 100%;
    min-width: 0;
    padding: 4px 0 8px 14px;
    border: 0;
  }

  .products-dropdown.mobile-open .products-dropdown-menu {
    display: flex !important;
    flex-direction: column;
  }

  /* HOME - NORMAL STACK */
  .hero,
  #home.hero {
    width: 92vw;
    max-width: 760px;
    min-height: 0;
    margin: 0 auto;
    padding: 40px 0 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.08;
    margin-bottom: 18px;
  }

  .hero-copy > p,
  .hero-lede {
    font-size: 17px;
    line-height: 1.65;
    text-align: left;
    margin-bottom: 22px;
  }

  .availability-note {
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
  }

  .availability-note span {
    white-space: normal;
  }

  .home-contact-button {
    margin-bottom: 24px;
  }

  .hero-business-links {
    gap: 18px;
  }

  .hero-business-links a[href*="google.com"] {
    font-size: 15px;
  }

  .home-mini-map {
    width: 240px;
    height: 135px;
  }

  /* HOME PHOTOS - 2 PER LINE */
  .hero-media.hero-collage {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    justify-self: center;
  }

  .hero-collage .collage-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    margin-bottom: 10px;
  }

  .hero-collage .collage-group img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  /* HISTORY */
  #history {
    padding: 42px 0 48px;
  }

  #history h2 {
    font-size: 40px;
  }

  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .history-grid article {
    min-height: 0;
    padding: 20px;
  }

  /* PRODUCTS OVERVIEW */
  #products {
    padding-top: 48px;
    padding-bottom: 38px;
  }

  .products-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .products-overview-collage {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-overview-collage img {
    aspect-ratio: 1 / 1;
  }

  .products-overview-copy {
    min-height: 0;
    padding: 20px;
  }

  /* FIBER + PILLOWS - 2 PER ROW */
  .product-subpage {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .product-subpage-title {
    font-size: 40px;
    white-space: normal;
  }

  .fiber-grid,
  .fiber-products-grid,
  .pillow-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .fiber-products-grid .fiber-card img,
  .pillow-products-grid .fiber-card img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  /* SALES TEAM - 2 PER ROW */
  .product-sales-clean,
  .contact-sales-clean,
  .product-contact-panel .product-sales-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-sales-clean .sales-person,
  .contact-sales-clean .sales-person,
  .product-contact-panel .sales-person {
    min-height: 0;
    padding: 15px;
  }

  .product-sales-clean .sales-job-title,
  .contact-sales-clean .sales-job-title,
  .product-sales-clean .sales-person > small,
  .contact-sales-clean .sales-person > small,
  .product-sales-clean .sales-phone,
  .contact-sales-clean .sales-phone {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-contact-panel {
    padding: 24px;
  }

  /* TEXTILE WASTES - 2 CARDS PER ROW */
  .textile-waste-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .textile-waste-grid .scrap-photo-grid,
  .textile-waste-grid .yarn-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .textile-waste-grid .scrap-photo-grid img,
  .textile-waste-grid .yarn-photo-grid img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  /* APPLICATIONS - 2 PER ROW */
  .applications {
    padding: 46px 0 52px;
  }

  .applications h2 {
    font-size: 40px;
  }

  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .application-grid > div,
  .application-card {
    padding-bottom: 16px;
  }

  .application-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .application-grid h3 {
    margin: 14px 14px 7px;
    font-size: 16px;
    line-height: 1.3;
  }

  .application-grid p {
    padding: 0 14px;
    font-size: 13px;
    line-height: 1.5;
  }

  .application-details-link {
    margin: 10px 14px 0;
    font-size: 11px;
  }

  /* CONTACT - MAP BELOW DETAILS */
  #contact {
    padding: 46px 0 54px;
  }

  .contact-clean-shell {
    width: 92vw;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .contact-clean-main,
  .contact-map-panel {
    width: 100%;
    max-width: none;
    flex: none;
  }

  .contact-sales-title {
    font-size: 38px;
  }

  .contact-map-panel {
    padding: 18px;
  }

  .contact-map-frame,
  .contact-map-frame iframe {
    height: 220px;
  }

  /* FOOTER - NORMAL TABLET */
  .footer-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-sales-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-bottom span:last-child {
    text-align: left;
  }
}


/* =========================================================
   16. PHONE
   0px - 620px
========================================================= */

@media (max-width: 620px) {

  .section-shell,
  .history-shell,
  .nav-shell,
  .hero,
  .products,
  #products,
  .applications > .section-shell,
  .product-subpage,
  .product-contact-panel,
  .contact-clean-shell,
  .footer-modern,
  .footer-bottom {
    width: 90vw;
    max-width: none;
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand-logo {
    width: 78px;
    height: 52px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .nav-links {
    top: 68px;
  }

  .nav-links > a,
  .products-dropdown-button {
    font-size: 12px;
  }

  .products-dropdown-menu a {
    font-size: 11px;
  }

  /* HOME */
  .hero,
  #home.hero {
    padding: 28px 0 34px;
    gap: 22px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .hero-copy > p,
  .hero-lede {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .hero-actions .btn-primary {
    min-width: 160px;
    padding: 11px 18px;
    font-size: 11px;
  }

  .availability-note {
    padding: 13px 14px;
    margin-bottom: 18px;
  }

  .availability-note strong {
    font-size: 12px;
  }

  .availability-note span {
    font-size: 10px;
  }

  .home-contact-button {
    width: 100%;
    min-width: 0;
    margin-bottom: 18px;
    padding: 11px 14px;
    font-size: 11px;
  }

  .hero-business-links {
    gap: 12px;
  }

  .hero-business-links a,
  .hero-business-links a[href*="google.com"] {
    font-size: 10px;
  }

  .home-mini-map {
    width: 190px;
    height: 105px;
  }

  .hero-collage .collage-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 9px;
  }

  .hero-collage .collage-group img {
    border-radius: 5px;
  }

  /* HISTORY - STACK */
  #history {
    padding: 34px 0 40px;
  }

  #history h2 {
    font-size: 30px;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-grid article {
    padding: 18px;
  }

  .history-grid h3 {
    font-size: 18px;
  }

  .history-grid p,
  .history-close {
    font-size: 13px;
    line-height: 1.6;
  }

  /* PRODUCTS OVERVIEW - NORMAL STACK */
  #products {
    padding-top: 38px;
    padding-bottom: 42px;
  }

  .products-overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .products-overview-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-overview-card h3 {
    font-size: 24px;
  }

  .products-overview-card p {
    font-size: 13px;
  }

  /* FIBER / PILLOW PHOTOS - 2 PER ROW */
  .product-subpage {
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .product-subpage-title {
    font-size: 30px;
  }

  .product-subpage-intro {
    font-size: 13px;
    line-height: 1.6;
  }

  .fiber-grid,
  .fiber-products-grid,
  .pillow-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fiber-card > div,
  .fiber-card > a > div {
    padding: 10px;
  }

  .fiber-card h3 {
    font-size: 12px;
    padding: 5px 7px;
  }

  .fiber-card p {
    font-size: 9px;
  }

  .product-type-label,
  .grade-sublabel {
    font-size: 8px;
  }

  .view-product {
    font-size: 9px;
  }

  /* SALES TEAM - STACK */
  .product-sales-clean,
  .contact-sales-clean,
  .product-contact-panel .product-sales-clean {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-contact-panel {
    padding: 18px;
  }

  .product-sales-clean .sales-person,
  .contact-sales-clean .sales-person,
  .product-contact-panel .sales-person {
    padding: 14px;
  }

  .product-sales-clean .sales-person > strong,
  .contact-sales-clean .sales-person > strong {
    font-size: 14px;
  }

  .product-sales-clean .sales-job-title,
  .contact-sales-clean .sales-job-title {
    font-size: 11px;
  }

  .product-sales-clean .sales-person > small,
  .contact-sales-clean .sales-person > small {
    font-size: 10px;
  }

  .product-sales-clean .sales-phone,
  .contact-sales-clean .sales-phone {
    font-size: 13px;
  }

  .product-messenger-link {
    max-width: 240px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .product-messenger-link svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-basis: 18px;
  }

  /* TEXTILE WASTES - 2 PER ROW */
  .textile-waste-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .textile-waste-grid .other-product-copy {
    padding: 10px;
  }

  .textile-waste-grid .other-product-copy h3 {
    font-size: 13px;
    line-height: 1.25;
  }

  .textile-waste-grid .other-product-copy p {
    font-size: 9px;
    line-height: 1.45;
  }

  /* APPLICATIONS - 2 PER ROW */
  .applications {
    padding: 36px 0 44px;
  }

  .applications h2 {
    font-size: 30px;
  }

  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .application-grid h3 {
    margin: 10px 10px 5px;
    font-size: 12px;
  }

  .application-grid p {
    padding: 0 10px;
    font-size: 9px;
    line-height: 1.45;
  }

  .application-details-link {
    margin: 8px 10px 0;
    font-size: 8px;
  }

  /* CONTACT - CLEAN STACK */
  #contact {
    padding: 36px 0 44px;
  }

  .contact-sales-title {
    font-size: 30px;
  }

  .contact-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .contact-info-row a {
    font-size: 13px;
  }

  .contact-clean-actions {
    gap: 12px;
    margin-top: 16px;
  }

  .contact-text-link {
    font-size: 11px;
  }

  .contact-map-panel {
    padding: 14px;
  }

  .contact-map-panel h3 {
    font-size: 20px;
  }

  .contact-map-frame,
  .contact-map-frame iframe {
    height: 170px;
  }

  /* FOOTER - NORMAL STACK */
  .site-footer {
    padding: 32px 0 18px;
  }

  .footer-modern {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-logo {
    width: 76px;
  }

  .footer-sales-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .footer-bottom {
    margin-top: 26px;
    gap: 8px;
    font-size: 10px;
    text-align: left;
  }
}


/* =========================================================
   17. VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .hero h1 {
    font-size: 27px;
  }

  /* Keep requested photo/card layouts at 2 per row. */
  .fiber-grid,
  .fiber-products-grid,
  .pillow-products-grid,
  .textile-waste-grid,
  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-sales-numbers {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   FINAL RESPONSIVE LAYOUT CLEANUP
   Better natural tablet + mobile layout
========================================================= */


/* =========================================================
   TABLET
   621px - 1100px
========================================================= */

@media (min-width: 621px) and (max-width: 1100px) {

  /* HISTORY */
  #history .history-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }


  /* MAIN PRODUCTS */
  #products .products-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  #products .products-overview-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }


  /* PRODUCT COLLAGE PHOTOS */
  .products-overview-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .products-overview-collage > img:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    aspect-ratio: 2 / 1 !important;
    object-fit: contain !important;
  }


  /* FIBER */
  .fiber-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }


  /* PILLOWS */
  .pillow-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .pillow-products-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    max-width: 50% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* TEXTILE WASTES */
  .textile-waste-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }


  /* APPLICATIONS */
  #applications .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }


  /* SALES TEAM */
  .product-sales-clean,
  .contact-sales-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

}


/* =========================================================
   MOBILE
   0px - 620px
========================================================= */

@media (max-width: 620px) {

  /* -----------------------------------------
     HOME PHOTOS
     Natural 2-column gallery
  ----------------------------------------- */

  #home .hero-media.hero-collage {
    width: 100% !important;
    max-width: none !important;
  }

  #home .hero-collage .collage-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  #home .hero-collage .collage-group img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  /* If a group has 3 photos, center the last photo */
  #home .hero-collage .collage-group > img:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: 50% !important;
    justify-self: center !important;
    aspect-ratio: 1 / 1 !important;
  }


  /* -----------------------------------------
     HISTORY
     One readable card per row
  ----------------------------------------- */

  #history .history-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #history .history-grid > * {
    grid-column: auto !important;
    width: 100% !important;
  }


  /* -----------------------------------------
     MAIN PRODUCTS
     One category per row
  ----------------------------------------- */

  #products .products-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #products .products-overview-grid > * {
    grid-column: auto !important;
    width: 100% !important;
  }


  /* Product category photos */
  .products-overview-collage {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .products-overview-collage > img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }

  .products-overview-collage > img:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: 50% !important;
    justify-self: center !important;
    aspect-ratio: 1 / 1 !important;
  }


  /* -----------------------------------------
     FIBER
     Keep 2 per row
  ----------------------------------------- */

  .fiber-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .fiber-products-grid > * {
    grid-column: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }


  /* -----------------------------------------
     PILLOWS
     One product per row
  ----------------------------------------- */

  .pillow-products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .pillow-products-grid > * {
    grid-column: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .pillow-products-grid .fiber-card img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    object-fit: contain !important;
  }


  /* -----------------------------------------
     TEXTILE WASTES
     One product per row
  ----------------------------------------- */

  .textile-waste-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .textile-waste-grid > * {
    width: 100% !important;
    grid-column: auto !important;
  }

  /* Keep the two photos inside each card */
  .textile-waste-grid .scrap-photo-grid,
  .textile-waste-grid .yarn-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }


  /* -----------------------------------------
     APPLICATIONS
     2 per row because these work well smaller
  ----------------------------------------- */

  #applications .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #applications .application-grid > * {
    grid-column: auto !important;
    width: 100% !important;
  }

  #applications .application-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: 50% !important;
    justify-self: center !important;
  }


  /* -----------------------------------------
     SALES TEAM
     One readable card per row
  ----------------------------------------- */

  .product-sales-clean,
  .contact-sales-clean,
  .product-contact-panel .product-sales-clean {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .product-sales-clean > *,
  .contact-sales-clean > * {
    grid-column: auto !important;
    width: 100% !important;
  }


  /* -----------------------------------------
     CONTACT
  ----------------------------------------- */

  #contact .contact-clean-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
  }

  #contact .contact-clean-main,
  #contact .contact-map-panel {
    width: 100% !important;
    max-width: none !important;
  }


  /* -----------------------------------------
     FOOTER
  ----------------------------------------- */

  .site-footer .footer-modern {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .site-footer .footer-contact {
    grid-column: auto !important;
  }

}
/* =========================================================
   MOBILE HOME - PUT PHOTOS IN THE MIDDLE
========================================================= */

@media (max-width: 620px) {

  #home.hero {
    display: flex !important;
    flex-direction: column !important;
  }

  #home .hero-copy {
    display: contents !important;
  }

  /* 1 */
  #home .eyebrow {
    order: 1 !important;
  }

  /* 2 */
  #home h1 {
    order: 2 !important;
  }

  /* 3 */
  #home .hero-lede {
    order: 3 !important;
  }

  /* 4 */
  #home .hero-actions {
    order: 4 !important;
  }

  /* 5 */
  #home .availability-note {
    order: 5 !important;
  }

  /* 6 - PHOTOS GO HERE */
  #home .hero-media.hero-collage {
    order: 6 !important;
    width: 100% !important;
    margin: 4px auto 20px !important;
  }

  /* 7 */
  #home .home-contact-button {
    order: 7 !important;
  }

  /* 8 */
  #home .hero-business-links {
    order: 8 !important;
  }

}
/* =========================================================
   MOBILE + TABLET HOME FINAL POSITIONING
========================================================= */


/* =========================================================
   MOBILE - CENTER SOCIAL + LOCATION
========================================================= */

@media (max-width: 620px) {

  #home .hero-business-links {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
  }

  #home .hero-business-links > a {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #home .home-location-block {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
  }

  #home .home-mini-map {
    margin-left: auto !important;
    margin-right: auto !important;
  }

}


/* =========================================================
   TABLET - PUT PHOTOS IN MIDDLE OF HOME
   621px - 1100px
========================================================= */

@media (min-width: 621px) and (max-width: 1100px) {

  #home.hero {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Allows items inside hero-copy to be reordered */
  #home .hero-copy {
    display: contents !important;
  }

  /* 1 */
  #home .eyebrow {
    order: 1 !important;
  }

  /* 2 */
  #home h1 {
    order: 2 !important;
  }

  /* 3 */
  #home .hero-lede {
    order: 3 !important;
  }

  /* 4 */
  #home .hero-actions {
    order: 4 !important;
  }

  /* 5 */
  #home .availability-note {
    order: 5 !important;
  }

  /* 6 - PHOTOS */
  #home .hero-media.hero-collage {
    order: 6 !important;

    width: 100% !important;
    max-width: 620px !important;

    margin: 8px auto 24px !important;
  }

  /* 7 - CONTACT */
  #home .home-contact-button {
    order: 7 !important;

    margin-bottom: 20px !important;
  }

  /* 8 - SOCIAL + MAP */
  #home .hero-business-links {
    order: 8 !important;
  }

}
/* =========================================================
   HOME PHOTO GALLERY
   SAME LAYOUT ON MOBILE + TABLET
========================================================= */

@media (max-width: 1100px) {

  #home .hero-collage .collage-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 6px !important;

    padding: 6px !important;
  }

  #home .hero-collage .collage-group img {
    width: 100% !important;
    height: auto !important;

    aspect-ratio: 1 / 1 !important;

    object-fit: cover !important;
  }

  /* If there are 3 photos:
     center the 3rd one underneath */
  #home .hero-collage .collage-group > img:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;

    width: 50% !important;

    justify-self: center !important;

    aspect-ratio: 1 / 1 !important;
  }

}
/* =========================================================
   TABLET HOME - CENTER CONTACT + SOCIAL + MAP
========================================================= */

@media (min-width: 621px) and (max-width: 1100px) {

  #home .home-contact-button {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #home .hero-business-links {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
  }

  #home .hero-business-links > a {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #home .home-location-block {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
  }

  #home .home-mini-map {
    margin-left: auto !important;
    margin-right: auto !important;
  }

}