/*
Theme Name: 1 Glass Stop
Theme URI: https://1glassstop.com
Author: 1 Glass Stop
Author URI: https://1glassstop.com
Description: Bootstrap-powered WordPress theme for 1 Glass Stop – Houston wholesale glass distributor and manufacturer. Responsive, clean, and professional.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: one-glass-stop
Tags: bootstrap, business, glass, service, responsive, one-column, two-columns, custom-menu, custom-logo, featured-images, footer-widgets, translation-ready
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --color-primary:  #1a3a5c;
  --color-accent:   #2e8bc0;
  --color-accent-2: #b8d4e8;
  --color-dark:     #0d1f30;
  --color-light:    #f4f8fb;
  --color-white:    #ffffff;
  --color-text:     #2d3748;
  --color-muted:    #718096;
  --color-border:   #d1e3ef;
  --font-heading:   'Oswald', sans-serif;
  --font-body:      'Source Sans 3', sans-serif;
  --transition:     0.3s ease;
  --radius:         6px;
  --shadow:         0 4px 20px rgba(0,0,0,.10);
  --shadow-hover:   0 8px 32px rgba(0,0,0,.18);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TOP BAR
   ============================================================ */
#top-bar {
  background: var(--color-dark);
  color: var(--color-accent-2);
  font-size: .85rem;
  padding: .45rem 0;
}
#top-bar a { color: var(--color-accent-2); }
#top-bar a:hover { color: var(--color-white); text-decoration: none; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
#site-header {
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 1030;
}
#site-header .navbar img { max-height: 62px; width: auto; }
#site-header .navbar-brand span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#site-header .navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85) !important;
  padding: .6rem 1.1rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
#site-header .navbar-nav .nav-link:hover,
#site-header .navbar-nav .nav-link.active {
  color: var(--color-white) !important;
  background: rgba(255,255,255,.12);
}
#site-header .navbar-toggler { border-color: rgba(255,255,255,.3); }

#site-header .animated-toggler {
  background: transparent !important;
}

#site-header .animated-toggler:focus {
  outline: none;
  box-shadow: none; /* Remove focus outline/shadow */
}

#site-header .animated-toggler .icon-bar {
    display: block;
    background-color: #fff;
    height: 3px;
    width: 25px;
    margin-top: 5px;
    margin-bottom: 5px;
    position: relative;
    left: 0;
    opacity: 1;
    transition: all 0.35s ease-out;
    transform-origin: center left;
}

/* State when the navbar is expanded (open) */
#site-header .animated-toggler[aria-expanded="true"] .icon-bar:nth-child(1) {
  transform: translate(15%, -33%) rotate(45deg);
}

#site-header .animated-toggler[aria-expanded="true"] .icon-bar:nth-child(2) {
  opacity: 0; /* Hides the middle bar */
}

#site-header .animated-toggler[aria-expanded="true"] .icon-bar:nth-child(3) {
  transform: translate(15%, 33%) rotate(-45deg) ;
}
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-title { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.section-title::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: .5rem;
}
section { padding: 5rem 0; }
.section-light { background: var(--color-light); }
.section-dark { background: var(--color-primary); color: #fff; }
.section-dark h1,.section-dark h2,.section-dark h3 { color: #fff; }
.section-dark .section-title::after { background: var(--color-accent-2); }

/* ============================================================
   ABOUT
   ============================================================ */
#about .about-lead {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services .service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}
#services .service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}
#services .service-card .service-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-accent-2);
  color: var(--color-primary);
  font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
#services .service-card h4 { font-size: 1rem; margin-bottom: .4rem; }
#services .service-card p { font-size: .92rem; color: var(--color-muted); margin: 0; }

/* ============================================================
   GALLERY
   ============================================================ */
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
#gallery .gallery-item {
  overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer;
}
#gallery .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}
#gallery .gallery-item:hover img { transform: scale(1.08); filter: brightness(.82); }

/* Lightbox */
#lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.88); z-index: 9999;
  align-items: center; justify-content: center; padding: 1rem;
}
#lightbox-overlay.active { display: flex; }
#lightbox-overlay img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius); box-shadow: 0 8px 48px rgba(0,0,0,.6); }
#lightbox-overlay .lb-close {
  position: absolute; top: 1.5rem; right: 2rem;
  color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
#lightbox-overlay .lb-close:hover { color: var(--color-accent-2); }

/* ============================================================
   INFO STRIP (Hours + Contact)
   ============================================================ */
#info-strip { background: var(--color-primary); padding: 3.5rem 0; }
#info-strip h4 {
  color: var(--color-accent-2);
  font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: .75rem;
}
#info-strip p, #info-strip address { color: rgba(255,255,255,.82); margin-bottom: 0; font-style: normal; }
#info-strip a { color: var(--color-accent-2); }
#info-strip a:hover { color: #fff; text-decoration: none; }
#info-strip .strip-divider { border-color: rgba(255,255,255,.15); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
#contact .form-control,
#contact .form-select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-family: var(--font-body);
}
#contact .form-control:focus,
#contact .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 .2rem rgba(46,139,192,.2);
}
#contact .btn-send {
  background: var(--color-accent);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 2.2rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
}
#contact .btn-send:hover { background: var(--color-primary); }

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  color: #fff; text-align: center; padding: 4.5rem 0;
}
#cta-banner h2 { color: #fff; font-size: clamp(1.5rem,3vw,2.2rem); }
#cta-banner p { color: rgba(255,255,255,.88); font-size: 1.1rem; }
#cta-banner .btn-cta {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 2.4rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  margin-top: .5rem;
}
#cta-banner .btn-cta:hover { background: #fff; color: var(--color-primary); text-decoration: none; }

/* ============================================================
   COVERAGE
   ============================================================ */
#coverage { background: var(--color-light); }
#coverage .map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.62);
  padding: 3.5rem 0 1.5rem;
  font-size: .9rem;
}
#site-footer h5 {
  color: var(--color-accent-2);
  font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 1rem;
}
#site-footer a { color: rgba(255,255,255,.65); }
#site-footer a:hover { color: #fff; text-decoration: none; }
#site-footer ul { list-style: none; padding: 0; margin: 0; }
#site-footer ul li { margin-bottom: .4rem; }
#site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem; padding-top: 1.2rem;
  text-align: center; font-size: .8rem;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--color-accent); color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--color-primary); }

/* ============================================================
   WP CORE ALIGNMENT CLASSES
   ============================================================ */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--color-muted); margin-top: .4rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
  section { padding: 3rem 0; }
  #gallery .gallery-grid { grid-template-columns: repeat(2,1fr); }
  #info-strip .strip-divider { display: none; }
}

.ml-lightbox-button {
  display: none;
}