/* ==========================================================================
   Highcreek Landscaping & Construction LLC. — Design Tokens & Base Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand colors (from client branding sheet) */
  --color-blue: #0191ea;          /* brand blue, used everywhere for consistency */
  --color-blue-accessible: #0191ea; /* matches --color-blue site-wide per client request */
  --color-blue-dark: #015d94;
  --color-dark: #201e1f;
  --color-brown: #5d4037;
  --color-brown-light: #7a5548;
  --color-white: #ffffff;

  /* Neutrals derived for layout */
  --color-off-white: #f6f7f8;
  --color-light-blue-tint: #eaf6ff;
  --color-border: #e3e5e7;
  --color-text-muted: #55585c;

  /* Typography */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (4/8px rhythm) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radius & shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(32, 30, 31, 0.12);
  --shadow-md: 0 8px 24px rgba(32, 30, 31, 0.14);
  --shadow-lg: 0 16px 48px rgba(32, 30, 31, 0.20);

  /* Layout */
  --container-max: 1200px;
  --header-height: 128px;
  --transition-fast: 180ms ease;
  --transition-med: 280ms ease;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

img { max-width: 100%; display: block; }
a { color: var(--color-blue-accessible); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 var(--space-4); color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue-accessible);
  margin-bottom: var(--space-3);
}

.text-center { text-align: center; }

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus states — always visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-9) 0;
}

.section--tight { padding: var(--space-7) 0; }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--color-white); }
.section--off-white { background: var(--color-off-white); }
.section--tint { background: var(--color-light-blue-tint); }

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  min-height: 48px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none !important;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-blue-accessible);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-blue-accessible);
}
.btn--white:hover {
  background: var(--color-light-blue-tint);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-white);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
}

.btn--brown {
  background: var(--color-brown);
  color: var(--color-white);
}
.btn--brown:hover {
  background: var(--color-brown-light);
  transform: translateY(-1px);
}

.btn--sm {
  padding: var(--space-3) var(--space-5);
  min-height: 40px;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */

.topbar {
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.875rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  gap: var(--space-4);
}
.topbar__socials {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.topbar__socials a {
  color: var(--color-white);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  transition: background var(--transition-fast);
}
.topbar__socials a:hover {
  background: var(--color-blue-accessible);
  text-decoration: none;
}
.topbar__socials svg { width: 16px; height: 16px; fill: currentColor; }

.topbar__call {
  background: var(--color-blue-accessible);
  color: var(--color-white);
  font-weight: 700;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.topbar__call:hover { background: var(--color-blue-dark); text-decoration: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  gap: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-dark);
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 64px;
  width: auto;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-dark);
  letter-spacing: 0.01em;
}
.brand__tagline {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brown);
  display: block;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.main-nav__list {
  display: flex;
  gap: var(--space-5);
}
.main-nav__list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-dark);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.main-nav__list a:hover,
.main-nav__list a[aria-current="page"] {
  color: var(--color-blue-accessible);
  border-color: var(--color-blue-accessible);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  color: var(--color-dark);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1024px) {
  .main-nav__list { gap: var(--space-4); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6) var(--space-5);
    transform: translateX(100%);
    transition: transform var(--transition-med);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 95;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__list {
    flex-direction: column;
    gap: var(--space-1);
  }
  .main-nav__list a {
    display: block;
    padding: var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav .btn { margin-top: var(--space-5); width: 100%; }
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32,30,31,0.5);
    z-index: 90;
  }
  .nav-backdrop.is-open { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  color: var(--color-white);
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,30,31,0.55) 0%, rgba(32,30,31,0.75) 55%, rgba(32,30,31,0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-9) 0 var(--space-8);
  max-width: 760px;
}
.hero h1 {
  font-family: var(--font-display);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

.page-hero {
  position: relative;
  color: var(--color-white);
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32,30,31,0.72);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-8) 0 var(--space-7);
}
.page-hero h1 { font-family: var(--font-display); color: var(--color-white); margin-bottom: var(--space-3); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 65ch; }
.breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* Blue-background variant with brand-colored text (no photo/overlay) */
.page-hero--brand {
  background-color: var(--color-blue);
}
.page-hero--brand::before { display: none; }
.page-hero--brand h1 { color: var(--color-white); }
.page-hero--brand .breadcrumb,
.page-hero--brand .breadcrumb a { color: var(--color-white); }
.page-hero--brand .page-hero__content { padding: var(--space-5) 0; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-light-blue-tint);
  color: var(--color-blue-accessible);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__icon img { width: 32px; height: 32px; object-fit: contain; }

.service-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.service-card p { font-size: 0.95rem; }

/* Trust / stat strip */
.trust-strip {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.trust-strip .grid { padding: var(--space-6) 0; }
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
}
.trust-item svg {
  width: 28px; height: 28px;
  color: var(--color-blue-accessible);
  flex-shrink: 0;
}
.trust-item img {
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==========================================================================
   Before / After gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  background: var(--color-off-white);
  display: block;
  width: 100%;
  padding: 0;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform var(--transition-med);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(32,30,31,0.88), rgba(32,30,31,0));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,14,14,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(90vw, 700px);
  max-height: 85vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  position: absolute;
  bottom: var(--space-6);
  left: 0; right: 0;
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-heading);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--color-blue-accessible);
}
.lightbox__close { top: var(--space-5); right: var(--space-5); }
.lightbox__prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox__prev svg, .lightbox__next svg, .lightbox__close svg { width: 24px; height: 24px; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field {
  margin-bottom: var(--space-5);
}
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
  color: var(--color-dark);
}
.form-field .required { color: var(--color-brown); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 48px;
  background: var(--color-white);
  color: var(--color-dark);
  transition: border-color var(--transition-fast);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-blue-accessible);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,198,0.18);
}
.form-field .helper-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--success { background: #e6f6ea; color: #1c6b32; display: block; }
.form-status--error { background: #fdecec; color: #b3261e; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--space-8) 0 var(--space-5);
}
.site-footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-4);
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--color-white); }
.site-footer .brand__name { color: var(--color-white); }
.site-footer .brand__tagline { color: rgba(255,255,255,0.65); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid li { margin-bottom: var(--space-2); font-size: 0.925rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-socials {
  display: flex;
  gap: var(--space-3);
}
.footer-socials a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
}
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-socials a:hover { background: var(--color-blue-accessible); }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: var(--color-blue);
  color: var(--color-white);
  padding: var(--space-8) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Misc utility
   ========================================================================== */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.tag {
  background: var(--color-light-blue-tint);
  color: var(--color-blue-accessible);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.divider {
  height: 4px;
  width: 72px;
  background: var(--color-blue);
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-5);
}
.divider--left { margin-left: 0; }
