/* ==========================================================
   Black Oasis Outdoor Living — styles
   ========================================================== */

:root {
  --black: #0d0d0b;
  --charcoal: #1a1916;
  --charcoal-2: #24221e;
  --gold: #e3a52c;
  --gold-light: #f2c25a;
  --gold-dark: #b9821a;
  --sand: #f6f1e8;
  --sand-2: #ece4d6;
  --white: #ffffff;
  --text: #2a2824;
  --muted: #6b665c;
  --muted-light: #b9b2a5;
  --line: rgba(0, 0, 0, 0.1);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--black);
}
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 32px; } }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--charcoal); color: var(--muted-light); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1em;
}
.eyebrow-dark { color: var(--gold-dark); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-head-light p:last-child { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-2); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--black);
}
.brand-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  margin-top: 4px;
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 26px; height: 2px;
    background: var(--black);
    position: relative;
    transition: transform 0.25s, background 0.25s;
  }
  .nav-toggle-label span::before,
  .nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-nav a:not(.btn) { padding: 16px 24px; border-top: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin: 16px 24px 20px; }

  .nav-toggle:checked ~ .site-nav { max-height: 420px; }
  .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 420px) {
  :root { --header-h: 72px; }
  .brand img { width: 52px; height: 52px; }
  .brand-text { font-size: 0.98rem; }
}

/* ---------- Hero ---------- */
/* Mobile/tablet: image at full aspect, copy stacked below */
.hero { background: var(--black); color: var(--white); }
.hero-img { width: 100%; height: auto; }
.hero-content { padding: 48px 0 56px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 0.4em;
}
.hero .lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 1.8em;
}

/* Desktop: copy sits over the lit-wall side, brand mark stays visible on the right */
@media (min-width: 1100px) {
  .hero { position: relative; overflow: hidden; }
  .hero-img { aspect-ratio: 2048 / 768; object-fit: cover; }
  .hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0;
    background: linear-gradient(90deg, rgba(8, 8, 6, 0.9) 0%, rgba(8, 8, 6, 0.75) 32%, rgba(8, 8, 6, 0.15) 52%, rgba(8, 8, 6, 0) 60%);
  }
  .hero-copy { max-width: 44%; }
  .hero h1 { font-size: clamp(2.6rem, 3.6vw, 3.8rem); }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--black);
  border-top: 1px solid rgba(227, 165, 44, 0.35);
  color: var(--white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.trust-icon { color: var(--gold); font-size: 0.7rem; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { justify-content: flex-start; text-align: left; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.intro-images { position: relative; padding: 0 12% 18% 0; }
.intro-images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.intro-images img:first-child { aspect-ratio: 4 / 5; width: 100%; }
.intro-images img:last-child {
  position: absolute;
  right: 0; bottom: 0;
  width: 52%;
  aspect-ratio: 1;
  border: 6px solid var(--white);
}
.intro-copy p:not(.eyebrow) { color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 1.5em 0 2em; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-images { max-width: 520px; }
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-body { padding: 26px 26px 30px; border-top: 3px solid var(--gold); }
.service-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.filter-input { position: absolute; opacity: 0; pointer-events: none; }
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filters label {
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filters label:hover { border-color: var(--gold); }

#f-all:checked ~ .filters label[for="f-all"],
#f-hardscape:checked ~ .filters label[for="f-hardscape"],
#f-water:checked ~ .filters label[for="f-water"],
#f-desert:checked ~ .filters label[for="f-desert"],
#f-lighting:checked ~ .filters label[for="f-lighting"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
#f-all:focus-visible ~ .filters label[for="f-all"],
#f-hardscape:focus-visible ~ .filters label[for="f-hardscape"],
#f-water:focus-visible ~ .filters label[for="f-water"],
#f-desert:focus-visible ~ .filters label[for="f-desert"],
#f-lighting:focus-visible ~ .filters label[for="f-lighting"] {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

#f-hardscape:checked ~ .gallery-grid .g-item:not(.hardscape),
#f-water:checked ~ .gallery-grid .g-item:not(.water),
#f-desert:checked ~ .gallery-grid .g-item:not(.desert),
#f-lighting:checked ~ .gallery-grid .g-item:not(.lighting) { display: none; }

/* When filtered, drop the wide tiles back to single size so the grid stays even */
.filter-input:not(#f-all):checked ~ .gallery-grid .g-wide { grid-column: auto; grid-row: auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
}
.g-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--charcoal-2);
}
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
}
.g-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--white);
  background: rgba(13, 13, 11, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.gallery-cta {
  margin-top: 56px;
  text-align: center;
}
.gallery-cta p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--white);
  margin-bottom: 0.8em;
}

/* Lightbox (CSS :target) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(8, 8, 6, 0.94);
}
.lightbox:target { display: flex; }
.lb-backdrop { position: absolute; inset: 0; }
.lightbox figure { position: relative; margin: 0; max-width: 100%; max-height: 100%; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.lb-prev, .lb-next, .lb-close {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s, color 0.2s;
}
.lb-prev:hover, .lb-next:hover, .lb-close:hover { background: var(--gold); color: var(--black); }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 14px; right: 14px; font-size: 1.8rem; }
@media (max-width: 600px) {
  .lightbox { padding: 70px 16px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(rgba(10, 10, 8, 0.72), rgba(10, 10, 8, 0.82)),
    url("images/web/FB_IMG_1775154496671.jpg") center / cover no-repeat;
}
.banner-inner { max-width: 820px; }
.banner h2 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.2rem); }
.banner p:not(.eyebrow) { font-size: 1.1rem; margin-bottom: 2em; }
@media (min-width: 1024px) { .banner { background-attachment: fixed; } }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 34px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 18px;
}
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.why-copy > p:not(.eyebrow) { color: var(--muted); }
.why-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-top: 32px;
}
.why-point { padding-left: 18px; border-left: 2px solid var(--gold); }
.why-point h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.why-point p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.why-image { position: relative; }
.why-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-badge {
  position: absolute;
  left: -24px; bottom: 32px;
  padding: 20px 26px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.why-badge strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.why-badge span { font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-image { max-width: 520px; }
  .why-badge { left: 16px; }
}
@media (max-width: 560px) { .why-points { grid-template-columns: 1fr; } }

/* ---------- Service area ---------- */
.area { padding: 44px 0; text-align: center; }
.area .eyebrow { margin-bottom: 18px; }
.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
}
.area-list li {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  padding: 0 18px;
  border-right: 1px solid rgba(227, 165, 44, 0.45);
}
.area-list li:last-child { border-right: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.contact-note {
  padding: 16px 20px;
  background: var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem !important;
  color: var(--text) !important;
}
.contact-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-logo { width: 96px; height: 96px; margin: -8px auto 18px; }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.contact-value {
  font-weight: 600;
  text-align: right;
  text-decoration: none;
  color: var(--black);
  overflow-wrap: anywhere;
}
a.contact-value:hover { color: var(--gold-dark); }
.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .contact-actions { grid-template-columns: 1fr; }
  .contact-row { flex-direction: column; gap: 2px; }
  .contact-value { text-align: left; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-light); padding-top: 48px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
}
.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-name span { color: var(--gold); font-weight: 500; }
.footer-brand p { margin: 6px 0 0; font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 0.8rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Accessibility ---------- */
a:focus-visible, label:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
