/* css/style.css */

/* Reset & base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: #000; color: #fff;
  padding: 0.5rem;
  z-index: 100;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* Headings – unified margins & sizes */
h1 { font-size: 2rem;   margin: 2rem 0 1rem; }
h2 { font-size: 1.75rem; margin: 1.75rem 0 0.75rem; }
h3 { font-size: 1.5rem;  margin: 1.5rem 0 0.5rem;  }
h4 { font-size: 1.25rem; margin: 1.25rem 0 0.5rem; }
h5 { font-size: 1rem;    margin: 1rem 0 0.5rem;    }
h6 { font-size: 0.875rem; margin: 0.875rem 0 0.5rem; }

/* Base heading color (inherit from body) */
h1, h2, h3, h4, h5, h6 {
  color: inherit;
}

/* Component-specific heading colors */
.service h2,
.unit h3,
.location h2 {
  color: #760000;
}

/* Override branding h1 to white */
header .branding h1 {
  color: #fff;
}

/* Body */
body {
  font-family: Geneva, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
  text-align: center;
  padding: 1rem;
  padding:0;
}

/* Global Links */
a { text-decoration: none; }
a:link { color: #64302F; }
a:visited { color: #996600; }
a:hover,
a:focus { color: #64302F; }
a:active { color: #FFCC00; }

p {
  line-height: 1.6;
  margin: 0 0 1rem;
}

.service-icon {
  display: block;
  font-size: 2rem;    /* adjust size as needed */
  margin: 2rem auto 0.5rem;
  color: #760000;      /* matches your brand maroon */
}

/* clear the float if needed */
section {
  overflow: auto;
}

/* float the image right */
section img.float-right {
  float: right;
  width: 40%;            /* or whatever % of the text column you like */
  max-width: 300px;      /* cap its size */
  height: auto;
  margin: 0 0 1rem 1rem; /* bottom + left gutter */
}

/* stack under text on small screens */
@media (max-width: 600px) {
section img.float-right {
    float: none;
    display: block;
    width: 100%;
    margin: 1rem auto;
  }
}

/* Lists unified indent & spacing */
ul,
ol {
  margin: 1rem 0 1rem 1.5rem;
  padding-left: 0;
  list-style-position: outside;
}
li { margin-bottom: 0.5rem; }

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* make all storage-unit images smaller */
.units .unit img {
  width: 200px;    /* or whatever fixed width you like */
  height: auto;    /* preserves aspect ratio */
  margin: 0 auto 1rem; /* center and add a bit of bottom spacing */
  display: block;  /* (you already have this globally, but just in case) */
}

/* Header */
header {
  background-color: #922B26;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0 0.3rem;
}
.branding h1 {
  margin: 0;
}
.tagline {
  opacity: 0.85;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
nav ul li a:link,
nav ul li a:visited {
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
nav ul li a:hover,
nav ul li a:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

nav ul li a[aria-current="page"],
nav ul li a.active {
  background-color: #FFCC00;   /* gold highlight */
  color: #922B26;              /* site maroon */
  font-weight: bold;
}

/* Main content container */
main {
  max-width: 1000px;
  margin: 2rem auto;
  text-align: left;
  padding: 0 1rem;
}

/* Home page services */

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.service {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}
.service:hover { transform: translateY(-5px); }

/* Units Grid */
.units .unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.unit {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}
.unit:hover { transform: translateY(-5px); }

/* 3-across card/grid layout */
.units .unit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Location section */
.location {
  margin-top: 2rem;
  text-align: center;
}

.links-list {
  list-style: none;   
  padding-left: 0;
  margin: 0;
}

.links-list p {
  line-height: 1.3;
  margin: 0;
}

.vendor {
  margin: 1.5rem 0;
}

.vendor dt {
  font-weight: 700;
  color: #760000;
  margin-bottom: 0.25rem;
}

.vendor dd {
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}


/* Hero section for Commercial Truck Parking */
.hero--truck-parking {
  position: relative;
  min-height: 340px;              /* adjust for your design */
  display: flex;
  align-items: center;
  padding: 3rem 1.5rem;

  background-image: url("../i/truck-parking/trucks-parked.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;                 /* assume light text over image */
}

/* Optional: dark overlay to improve text contrast */
.hero--truck-parking::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);  /* tweak strength as needed */
}

.hero--truck-parking .hero-text {
  position: relative;   /* keeps text above the overlay */
  max-width: 720px;
}

.hero--truck-parking h2,
.hero--truck-parking p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* Primary button */
.btn {
  display: inline-block;
  background: #b23028;         /* deep red�tweak as needed */
  color: #fff;
  padding: 0.9rem 1.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #8f261f;
  transform: translateY(-2px);
}

.btn:active {
  background: #7a1f19;
  transform: translateY(0);
}

/* Ensure button text stays white */
.btn,
.btn:link,
.btn:visited {
  color: #fff !important;
}

/* 1. Base settings for all inline icons */
.vendor dd a {
	  text-decoration: none;
  color: #64302F;
  position: relative;
  padding-left: 1.6em;      /* room for icon + gap */
}

.vendor dd a:hover {
  text-decoration: underline;
}

/* 2. Phone icon */
.vendor dd a[href^="tel:"]::before {
  content: "📞";            /* or replace with url(phone.svg) */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;           /* matches surrounding text size */
  line-height: 1;           /* keep square */
}

/* 3. Email icon */
.vendor dd a[href^="mailto:"]::before {
  content: "??";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
  line-height: 1;
}

/* 4. Website icon (any http/https that's NOT Facebook) */
.vendor dd a[href^="http"]:not([href*="facebook.com"])::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
  line-height: 1;
}

/* 5. Facebook icon */
.vendor dd a[href*="facebook.com"]::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
  line-height: 1;
}

.map-container {
  float: right;
  width: 100%;
  max-width: 600px;
  margin: 0 0 1.5rem 1rem;
}
@media (max-width: 600px) {
  .map-container {
    float: none;
    margin: 1rem auto;
  }
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: #666;
  margin-top: 2rem;
}


/* keep grid only on .unit-grid */
@media (max-width: 768px) {
  .units .unit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .units .unit-grid {
    grid-template-columns: 1fr;
  }
}

/* flex container */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* flex items: three-up ? two-up ? one-up */
.services .service {
  flex: 0 1 calc(33.333% - 1rem);
}
@media (max-width: 768px) {
  .services .service {
    flex: 0 1 calc(50% - 1rem);
  }
}
@media (max-width: 480px) {
  .services .service {
    flex: 0 1 100%;
  }
}