/* ============================================================
   BERNAR GLASS INC — STYLESHEET (AZRA TECH LIGHT THEME)
   Designed by Azra Tech
   ============================================================ */

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

:root {
  --bg:           #f4f2ee;
  --bg2:          #edeae4;
  --bg3:          #e6e2db;
  --ink:          #111110;
  --ink2:         #36342f;
  --muted:        #8a8780;
  --rule:         #d8d4cb;
  --white:        #ffffff;
  --serif:        'Instrument Serif', Georgia, serif;
  --sans:         'DM Sans', sans-serif;
  --mono:         'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1;
}
.nav-logo-text {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-logo-text strong {
  font-weight: 600;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-socials { display: flex; gap: 0.9rem; align-items: center; }
.nav-socials a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nav-socials a:hover { color: var(--ink); }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  background: var(--ink);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.75; }

/* ── HERO ── */
.hero {
  padding-top: 68px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.hero-left {
  padding: 5rem 4rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
  animation: fadeUp 0.9s 0.1s both ease-out;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.hero-title em { font-style: italic; }

.hero-sub {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink2);
  max-width: 440px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2.5rem;
}
.hero-tags span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink2);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.75rem;
  border-radius: 1px;
}

.hero-actions { display: flex; gap: 0.9rem; align-items: center; }

.hero-right {
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.9s 0.22s both ease-out;
}

.hero-image-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.hero-image-wrap:hover img { transform: scale(1.03); }

.hero-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--white);
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--rule);
}
.badge-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
}
.badge-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.hero-phone-block {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  background: var(--bg2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-phone-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-phone-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.hero-phone-num:hover { border-color: var(--ink); }

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.stats-bar-item {
  flex: 1;
  padding: 1.8rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stats-bar-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
}
.stats-bar-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats-bar-divider {
  width: 1px;
  height: 40px;
  background: var(--rule);
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  border-radius: 2px;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.75; }

.btn-ghost {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost::after { content: '→'; }

/* ── SECTION BASE ── */
section { padding: 7rem 5rem; }

.section-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--rule);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.section-title em { font-style: italic; }
.section-body {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink2);
  max-width: 520px;
  font-weight: 300;
}
.rule {
  width: 40px;
  height: 1px;
  background: var(--rule);
  margin: 1.8rem 0;
}

/* ── ABOUT ── */
.about-strip {
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.about-image {
  background: url('images/Image-09.png') center / cover;
  min-height: 480px;
}
.about-text {
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rule);
}

/* ── SERVICES ── */
.services {
  background: var(--bg);
  padding: 7rem 0;
  border-bottom: 1px solid var(--rule);
}
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2rem;
  padding-left: 5rem;
  padding-right: 5rem;
}
.services-sub {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 300px;
  line-height: 1.75;
  text-align: right;
  font-weight: 300;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg2);
}
.service-card:nth-child(3n) { border-right: none; }
.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: brightness(0.96) saturate(0.9);
}
.service-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.88) saturate(0.85);
}
.service-card-body {
  padding: 1.8rem 2rem;
  background: var(--white);
  border-top: 1px solid var(--rule);
}
.service-num {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.service-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.service-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1rem;
}
.service-arrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: inline-block;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s;
}
.service-card:hover .service-arrow { border-color: var(--ink); }

/* ── QUOTE BANNER ── */
.quote-banner {
  background: var(--ink);
  padding: 5rem;
  text-align: center;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  max-width: 680px;
  margin: 0 auto 1.2rem;
  line-height: 1.55;
  opacity: 0.9;
}
.quote-attr {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ── GALLERY ── */
.gallery {
  background: var(--bg2);
  padding: 7rem 5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.gallery-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.masonry { columns: 3; column-gap: 6px; }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: brightness(0.93) saturate(0.9);
}
.masonry-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.75) saturate(0.8);
}
.masonry-item-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3rem 1rem 1rem;
  background: linear-gradient(to top, rgba(17,17,16,0.82), transparent);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--white);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.masonry-item:hover .masonry-item-label { opacity: 1; transform: translateY(0); }

/* ── HARDWARE ── */
.hardware {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.hardware-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}
.hardware-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2.5rem;
}
.hw-item {
  background: var(--white);
  padding: 1.6rem;
  transition: background 0.2s;
}
.hw-item:hover { background: var(--bg2); }
.hw-icon {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  opacity: 0.2;
  color: var(--ink);
}
.hw-item-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.hw-item-type {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hardware-image { position: relative; }
.hardware-image img {
  width: 100%;
  display: block;
  filter: saturate(0.9);
  transition: filter 0.5s;
}
.hardware-image:hover img { filter: saturate(1); }
.hardware-image::after {
  content: '';
  position: absolute;
  left: -1rem; top: 1rem;
  right: 1rem; bottom: -1rem;
  border: 1px solid var(--rule);
  z-index: -1;
}
.hardware-image--delayed { transition-delay: 0.15s; }

/* ── CONTACT ── */
.location-section {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}
.location-map {
  background: var(--bg3);
  min-height: 550px;
  position: relative;
  overflow: hidden;
}
.location-map iframe {
  width: 100%; height: 100%; border: none;
  position: absolute; inset: 0;
}

/* ── TERMS ── */
.terms-section {
  background: var(--bg2);
  padding: 7rem 5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.terms-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.terms-sub {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.75;
  text-align: right;
  font-weight: 300;
}
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.terms-card {
  background: var(--white);
  padding: 2.5rem;
  transition: background 0.2s;
}
.terms-card:hover { background: var(--bg); }
.terms-card-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.terms-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}
.terms-card-body {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ink2);
  font-weight: 300;
}
.location-info {
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rule);
}
.location-intro { margin-bottom: 2.5rem; }

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.contact-line:last-of-type { border-bottom: none; }
.contact-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 60px;
}
.contact-value {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
}
.contact-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-value a:hover { border-color: var(--ink); }

.contact-socials { display: flex; gap: 0.8rem; margin-top: 2rem; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.9rem;
  border-radius: 1px;
  transition: background 0.2s, border-color 0.2s;
}
.social-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.contact-cta { margin-top: 1.8rem; width: fit-content; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 2rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-socials a {
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--white); }
.footer-azra {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 1rem;
}
.footer-azra a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-azra a:hover { color: var(--white); }

/* ── REVEAL ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .service-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-socials { display: none; }
  section { padding: 4rem 1.5rem; }
  .services { padding: 4rem 0; }
  .services-header { padding-left: 1.5rem; padding-right: 1.5rem; flex-direction: column; gap: 1rem; }
  .services-sub { text-align: left; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3.5rem 1.5rem; border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-right { min-height: 380px; }
  .about-strip, .location-section { grid-template-columns: 1fr; }
  .about-text { border-left: none; border-top: 1px solid var(--rule); padding: 3.5rem 1.5rem; }
  .about-image { min-height: 300px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(n) { border-right: none; }
  .masonry { columns: 2; column-gap: 4px; }
  .masonry-item { margin-bottom: 4px; }
  .hardware-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-intro { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .location-info { padding: 3.5rem 1.5rem; border-left: none; border-top: 1px solid var(--rule); }
  .terms-section { padding: 4rem 1.5rem; }
  .terms-header { flex-direction: column; gap: 1rem; }
  .terms-sub { text-align: left; }
  .terms-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stats-bar-item { min-width: 50%; padding: 1.5rem; }
  .stats-bar-divider { display: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  .footer-azra { border-left: none; padding-left: 0; }
  .quote-banner { padding: 4rem 1.5rem; }
}
@media (max-width: 540px) {
  .masonry { columns: 1; }
  .hardware-items { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
}
