/* =========================
   Hardscapes Resin Professionals
   Navy • White • Gold Theme
   Full style.css
   ========================= */

:root{
  --max: 1100px;

  /* Brand */
  --navy: #0f1f3d;
  --navy-soft: #1b2e55;
  --gold: #c6a44a;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --card: #ffffff;

  /* Text */
  --text: #1c1f26;
  --muted: #5c6472;

  /* Borders & effects */
  --line: rgba(15,31,61,.10);
  --shadow: 0 12px 32px rgba(15,31,61,.08);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; }
.container{ max-width: var(--max); margin:0 auto; padding: 22px; }

/* Accessibility skip link */
.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left: 16px; top: 16px; width:auto; height:auto;
  padding:10px 12px;
  background:#fff; color:#000;
  border-radius:10px;
  z-index: 999;
  border: 1px solid rgba(0,0,0,.12);
}

/* =========================
   HEADER / NAV
   ========================= */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: padding 200ms ease, background 200ms ease;
}

/* logo left, nav right */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* allow dropdown positioning */
.topbar .container.nav{ position: relative; }

/* Brand (logo only) */
.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}

/* Logo sizing (set to 90px normal, 70px on scroll) */
.brand img{
  height: 90px;
  width: auto;
  display:block;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease, height 200ms ease;
  transform-origin: left center;
}
.brand:hover img{
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(198,164,74,0.35));
}

/* shrink on scroll (class toggled by JS) */
.topbar.is-scrolled .nav{
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar.is-scrolled .brand img{
  height: 70px;
}

/* Desktop menu */
.menu{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.menu a{
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.78);
  background: transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.menu a:hover{
  color: #ffffff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.menu a[aria-current="page"]{
  color: #ffffff;
  border-color: rgba(198,164,74,.70);
  background: rgba(198,164,74,.14);
}

/* =========================
   BUTTONS
   ========================= */
.actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 14px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration:none;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15,31,61,.05);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,31,61,.08);
  border-color: rgba(15,31,61,.18);
}
.btn.primary{
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15,31,61,.18);
}
.btn.primary:hover{
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}
.btn.gold{
  border-color: rgba(198,164,74,.55);
  color: var(--navy);
  background: rgba(198,164,74,.10);
}
.btn.gold:hover{
  border-color: rgba(198,164,74,.80);
  background: rgba(198,164,74,.14);
}

/* =========================
   CONTENT / TYPOGRAPHY
   ========================= */
h1,h2,h3{ letter-spacing: .2px; }
h1{ margin: 10px 0 10px; font-size: 36px; line-height:1.08; color: var(--navy); }
h2{ margin: 0 0 10px; font-size: 22px; line-height:1.15; color: var(--navy); }
h3{ margin: 0 0 6px; font-size: 16px; line-height:1.2; color: var(--navy); }

p{ margin: 8px 0; color: var(--muted); }
.small{ font-size: 12px; color: var(--muted); }

.sub-heading{
  margin: 0 0 14px;
  color: rgba(15,31,61,.72);
  font-weight: 650;
  font-size: 16px;
}

/* Layout helpers */
.section{ padding: 18px 0; }

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; }
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section .card{ padding: 18px; }

/* Notes / badges */
.note{
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15,31,61,.18);
  background: rgba(15,31,61,.02);
  color: var(--muted);
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

/* Lists */
ol, ul{ color: var(--muted); }
li{ margin: 6px 0; }

/* Forms */
label{
  display:block;
  margin: 10px 0 6px;
  color: rgba(15,31,61,.72);
  font-size: 13px;
  font-weight: 600;
}
input, select, textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,31,61,.14);
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(198,164,74,.65);
  box-shadow: 0 0 0 4px rgba(198,164,74,.18);
}
textarea{ min-height: 120px; resize: vertical; }

/* Tables */
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 12px;
  border: 1px solid rgba(15,31,61,.12);
}
.table th, .table td{
  text-align:left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15,31,61,.10);
  color: var(--muted);
}
.table th{
  color: var(--navy);
  background: rgba(15,31,61,.03);
}

/* =========================
   GALLERY THUMBS
   ========================= */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .gallery{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; }
}

.thumb{
  position:relative;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid rgba(15,31,61,.12);
  background: #ffffff;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(15,31,61,.06);
}
.thumb img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
  transition: transform .25s ease;
}
.thumb:hover img{ transform: scale(1.03); }
.thumb .cap{
  position:absolute; left:0; right:0; bottom:0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(15,31,61,.75), rgba(15,31,61,0));
  color: #fff;
  font-size: 13px;
}

/* Lightbox */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(15,31,61,.72);
  display:none;
  align-items:center; justify-content:center;
  padding: 18px;
  z-index: 1000;
}
.lightbox.open{ display:flex; }
.lightbox-inner{ max-width: 1100px; width:100%; }
.lightbox-inner img{
  width:100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: #0b0f14;
}
.lightbox-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-top: 10px;
}
.lightbox-bar .btn{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #ffffff;
}
.lightbox-bar .btn:hover{
  background: rgba(255,255,255,.12);
}

/* =========================
   FOOTER
   ========================= */
.footer{
  background: var(--navy);
  border-top: none;
  margin-top: 26px;
  padding: 18px 0;
  color: rgba(255,255,255,.75);
}
.footer .row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
}
.footer a{ color: rgba(255,255,255,.80); text-decoration:none; }
.footer a:hover{ color: #ffffff; text-decoration: underline; }

/* =========================
   MOBILE NAV (Hamburger + dropdown)
   ========================= */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #ffffff;
  cursor:pointer;
}
.nav-toggle:hover{ background: rgba(255,255,255,.10); }

.nav-toggle .bars{
  width:18px;
  height:12px;
  position:relative;
}
.nav-toggle .bars span{
  position:absolute;
  left:0; right:0;
  height:2px;
  border-radius:2px;
  background: rgba(255,255,255,.85);
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}
.nav-toggle .bars span:nth-child(1){ top:0; }
.nav-toggle .bars span:nth-child(2){ top:5px; }
.nav-toggle .bars span:nth-child(3){ top:10px; }

@media (max-width: 900px){
  .nav-toggle{ display:inline-flex; }

  .menu{
    display:none;
    position:absolute;
    left:12px;
    right:12px;
    top:100%;
    margin-top:10px;
    padding:10px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(15,31,61,.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    flex-direction:column;
    gap:6px;
  }

  .menu a{
    justify-content:flex-start;
    border-radius:12px;
    padding:12px 12px;
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
  }
  .menu a:hover{
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.14);
  }

  .topbar.nav-open .menu{ display:flex; }

  /* hamburger -> X */
  .topbar.nav-open .nav-toggle .bars span:nth-child(1){
    top:5px;
    transform: rotate(45deg);
  }
  .topbar.nav-open .nav-toggle .bars span:nth-child(2){
    opacity:0;
  }
  .topbar.nav-open .nav-toggle .bars span:nth-child(3){
    top:5px;
    transform: rotate(-45deg);
  }

  /* keep logo from being too tall on small screens */
  .brand img{ height: 70px; }
}

/* =========================
   SERVICE CARDS POLISH
   ========================= */
.card.feature{
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.card.feature:hover{
  transform: translateY(-4px);
  border-color: rgba(198,164,74,.30);
  box-shadow: 0 18px 46px rgba(15,31,61,.12);
}

/* Tagline divider (gold) */
.feature .tagline{
  margin: 10px 0 14px;
  font-size: 15px;
  color: var(--navy);
  position: relative;
  padding-bottom: 10px;
}
.feature .tagline::after{
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 10px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.9;
}

/* Image zoom wrapper */
.service-media{
  border-radius: 14px;
  border: 1px solid rgba(15,31,61,.12);
  overflow: hidden;
  background: #ffffff;
  margin: 10px 0 12px;
}
.service-media img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 320ms ease;
}
.card.feature:hover .service-media img{
  transform: scale(1.04);
}

/* =========================
   SCROLL REVEAL ANIMATION
   ========================= */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .card.feature,
  .service-media img,
  .reveal,
  .brand img{
    transition: none !important;
  }
  .reveal{
    opacity: 1 !important;
    transform: none !important;
  }
}


