/* Square Roots Custom Inc. — Main Stylesheet */

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

:root {
  --dark: #2e2e2e;
  --darker: #1e1e1e;
  --mid: #444;
  --accent: #c8a96e;
  --light: #f5f2ee;
  --white: #ffffff;
  --text: #e0ddd8;
  --font: 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}

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

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

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(30,30,30,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #3a3a3a;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* HERO */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--darker);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--darker);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--darker);
}

/* SECTIONS */
section {
  padding: 6rem 2rem;
}

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

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1rem;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ABOUT STRIP */
.about-strip {
  background: var(--mid);
  padding: 5rem 2rem;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 0.25rem;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--mid);
  padding: 2rem;
  border-left: 3px solid var(--accent);
  transition: transform 0.2s;
}

.service-card:hover { transform: translateY(-3px); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--mid);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  opacity: 0.9;
}

.gallery-item:hover img {
  transform: scale(1.05);
  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;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.lightbox-close:hover { opacity: 1; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-info strong {
  color: var(--white);
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--mid);
  border: 1px solid #555;
  border-radius: 2px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}

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

.contact-form textarea { height: 140px; resize: vertical; }

.contact-form select option { background: var(--dark); }

/* FOOTER */
footer {
  background: var(--darker);
  border-top: 1px solid #333;
  padding: 3rem 2rem;
  text-align: center;
}

footer p {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

footer a { color: #999; }
footer a:hover { color: var(--accent); }

/* PAGE HERO (inner pages) */
.page-hero {
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2rem;
  background: var(--darker);
  position: relative;
  overflow: hidden;
  margin-top: 64px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--darker); padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid #333; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn-outline { margin-left: 0; margin-top: 0.75rem; }
  .hero-content .btn { display: block; width: fit-content; margin: 0 auto 0.75rem; }
}
