/* ============================================
   Grand Glass Co — Liquid glass, strong window washing
   ============================================ */

:root {
  --bg-deep: #ffffff;
  --bg-mid: #f4f9fc;
  --bg-surface: #e6f0f5;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --accent: #0077b6; /* Strong blue */
  --accent-soft: rgba(0, 119, 182, 0.15);
  --text: #1d3545;
  --text-muted: #587182;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 50, 80, 0.08);
  --font-sans: 'Montserrat', system-ui, sans-serif;
  --font-serif: 'Montserrat', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ----- Header: solid bar, liquid glass ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: #0096c7;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-mid);
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.56) 0%,
      rgba(255, 255, 255, 0.50) 45%,
      rgba(244, 249, 252, 0.60) 100%
    ),
    url('images/hero-top.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--glass-border);
}

.hero-overlay {
  /* Removed overlay as background is now solid light color */
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}


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

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px var(--accent-soft);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.4);
  color: var(--accent);
  border: 1px solid var(--accent);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* ----- Glass card (reusable) ----- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----- Sections ----- */
.section {
  padding: 4.5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 560px;
}

/* ----- Why section ----- */
.why-card {
  padding: 2rem;
}

.why-quote {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.8;
}

/* ----- Services grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ----- About ----- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text {
  padding: 2rem;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 1rem;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-img {
  aspect-ratio: 3 / 4;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.72);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 900px) {
  .about-img {
    min-height: 220px;
  }
}

.about-img::after {
  content: attr(data-label);
}

/* If you add real images, use background-image on .about-img and remove the ::after */
.about-img[style*="background-image"]::after {
  content: none;
}

/* ----- Our Work gallery (larger tiles, more section space) ----- */
.section.gallery {
  padding-top: 6.25rem;
  padding-bottom: 6.25rem;
}

.section.gallery .container {
  max-width: 1280px;
}

.section.gallery .section-lead {
  margin-bottom: 3rem;
}

.before-after-scroll {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.85rem 0 1.35rem;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}

.before-after-scroll::-webkit-scrollbar {
  height: 8px;
}

.before-after-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 999px;
}

.before-after-slide {
  flex: 0 0 min(500px, 92vw);
  padding: 0.85rem;
  overflow: hidden;
}

.before-after-slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
  overflow: hidden;
}

.before-after-card {
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  transition: box-shadow 0.3s ease;
}

.before-after-card:hover {
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0, 50, 80, 0.14);
}

.before-after-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: default;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.32s ease;
}

.before-after-card:hover img {
  transform: scale(1.08);
}

@media (min-width: 600px) {
  .before-after-slide {
    flex: 0 0 min(560px, 86vw);
  }

  .before-after-card {
    min-height: 320px;
  }

  .before-after-card:hover img {
    transform: scale(1.1);
  }
}

@media (min-width: 1000px) {
  .before-after-slide {
    flex: 0 0 min(620px, 78vw);
  }

  .before-after-card {
    min-height: 360px;
  }
}

.before-after-slide-inner--single {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Same tile width as one photo in a two-up pair (half of inner grid minus gap) */
.before-after-single-cell {
  width: calc((100% - 0.75rem) / 2);
  min-width: 0;
}

.before-after-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.before-after-badge-after {
  color: var(--accent);
}

.before-after-badge-tag {
  color: var(--text);
}

.before-after-badge-tag-accent {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .before-after-card,
  .before-after-card img {
    transition: none;
  }

  .before-after-card:hover img {
    transform: none;
  }

  .before-after-card:hover {
    box-shadow: var(--shadow);
  }
}

/* ----- Reviews ----- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  padding: 2rem;
}

.review-text {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 1.25rem;
  font-style: italic;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.review-location {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----- Contact ----- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info,
.contact-form {
  padding: 2rem;
}

.contact-info h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-info p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent);
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}


.required-mark {
  color: #b42318;
  font-weight: 700;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.service-options {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
}

.service-options legend {
  padding: 0 0.3rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.service-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0;
  font-weight: 500;
  color: var(--text);
}

.service-option input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

/* ----- Footer ----- */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--accent);
}

/* ----- Mobile ----- */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
