/* ===========================
   Boyd Security Doors — Components
   =========================== */

/* ===========================
   Navigation
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.nav__logo span {
  color: var(--orange);
}

.nav__logo:hover {
  color: var(--white);
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: #ccc;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--orange);
}

.nav__cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
}

.nav__cta:hover {
  background: var(--orange-dark);
  color: var(--white) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero__content h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 1.2rem;
}

.hero__content h1 span {
  color: var(--orange);
}

.hero__content p {
  color: #ccc;
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__phone {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero__phone:hover {
  color: var(--orange);
}

.hero__btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   Trust Bar
   =========================== */
.trust-bar {
  background: var(--orange);
  padding: 1.2rem 1.5rem;
}

.trust-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===========================
   Service Cards
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--grey-mid);
  margin-bottom: 0;
}

/* ===========================
   Gallery Grid
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--grey-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
  padding: 2rem 1rem 0.8rem;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  font-family: var(--font-body);
}

/* ===========================
   CTA Banner
   =========================== */
.cta-banner {
  background: var(--black);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: #aaa;
  margin: 0 auto 1.5rem;
  max-width: 52ch;
}

.cta-banner__phone {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.cta-banner__phone:hover {
  color: #ff7a2e;
}

/* ===========================
   Page Hero (inner pages)
   =========================== */
.page-hero {
  background: var(--black);
  padding: 3.5rem 1.5rem;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  color: #aaa;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--grey-dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: #111;
  color: #aaa;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
}

.footer__brand span {
  color: var(--orange);
}

.footer__tagline {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.footer__links h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.footer__links ul li {
  margin-bottom: 0.4rem;
}

.footer__links a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--orange);
}

.footer__contact h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.footer__phone {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin-bottom: 0.3rem;
}

.footer__bottom {
  border-top: 1px solid #222;
  padding-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
