/* ============================================================
   LANDSCAPING — Complete Stylesheet
   Design System: "Clean system annotated by teenagers"
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bark: #4A3728;
  --sage: #7A8B5C;
  --paper: #FBF6ED;
  --pencil: #B8B0A4;
  --cream: #EDE8DC;
  --ink: #2C1E14;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--paper);
  color: var(--bark);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 6rem);
}

section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   SKETCHY BORDER SYSTEM
   The core decorative element — 8-value border-radius
   makes rectangles read as hand-drawn.
   ============================================================ */
.sketchy {
  border: 2px solid var(--bark);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.sketchy:nth-child(2n) {
  border-radius: 15px 225px 15px 255px / 225px 15px 255px 15px;
}

.sketchy:nth-child(3n) {
  border-radius: 225px 15px 255px 15px / 15px 255px 15px 225px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pencil);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 6rem);
  max-width: 1100px;
  margin-inline: auto;
  position: relative;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--bark);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hamburger toggle — visible on mobile */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--bark);
  padding: 0;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--bark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Mobile nav — active state */
.nav-links.active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--pencil);
  padding: 1rem clamp(1rem, 5vw, 6rem) 1.5rem;
  width: 100%;
}

.nav-links.active a {
  padding: 0.6rem 0;
  width: 100%;
  border-bottom: 1px solid var(--cream);
  font-size: 1.05rem;
}

.nav-links.active a:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links.active {
    /* Reset mobile overrides when on desktop */
    position: static;
    flex-direction: row;
    border-bottom: none;
    padding: 0;
    width: auto;
    background: transparent;
  }

  .nav-links.active a {
    padding: 0;
    width: auto;
    border-bottom: none;
    font-size: 1rem;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  text-align: center;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(4rem, 10vw, 8rem);
}

.hero-logo {
  width: clamp(200px, 40vw, 360px);
  height: auto;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero .subheadline {
  max-width: 600px;
  margin-inline: auto;
  color: var(--bark);
  opacity: 0.8;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hand-arrow {
  width: 60px;
  height: auto;
  color: var(--sage);
  transform: rotate(15deg);
  display: inline-block;
  position: relative;
  top: 4px;
}

.hand-arrow svg {
  width: 60px;
  height: auto;
  stroke: var(--sage);
  fill: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--bark);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--bark);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  line-height: 1.4;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent;
  color: var(--bark);
}

.btn-outline:hover {
  background: var(--bark);
  color: var(--paper);
}

/* ============================================================
   CARDS (`.card`)
   ============================================================ */
.card {
  background: var(--cream);
  padding: 1.5rem;
  border: 2px solid var(--bark);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  transition: transform 0.2s ease;
}

.card:nth-child(2n) {
  border-radius: 15px 225px 15px 255px / 225px 15px 255px 15px;
}

.card:nth-child(3n) {
  border-radius: 225px 15px 255px 15px / 15px 255px 15px 225px;
}

.card:hover {
  transform: translateY(-2px) rotate(0deg) !important;
}

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

.services-grid .card:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.services-grid .card:nth-child(even) {
  transform: rotate(0.6deg);
}

.services-grid .card:nth-child(3n) {
  transform: rotate(-1.2deg);
}

.services-grid .card:hover {
  transform: rotate(0deg) translateY(-2px) !important;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--bark);
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ============================================================
   WHY HIRE US (`.reasons`)
   ============================================================ */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.reason {
  text-align: center;
}

.reason-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.reason h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.reason p {
  color: var(--bark);
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ============================================================
   CROSSED-OUT TEXT
   ============================================================ */
.crossed-out {
  text-decoration: line-through;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  opacity: 0.6;
  margin-right: 0.3em;
}

/* ============================================================
   ANNOTATIONS (`.annotation`)
   ============================================================ */
.annotation {
  font-family: 'Caveat', cursive;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--sage);
  display: inline-block;
  transform: rotate(-2deg);
  position: relative;
}

.annotation:nth-child(2n) {
  transform: rotate(1.5deg);
}

.annotation:nth-child(3n) {
  transform: rotate(-3deg);
}

.annotation-block {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--sage);
  display: block;
  transform: rotate(-1.5deg);
  position: relative;
  margin-block: 0.5rem;
}

/* ============================================================
   PHOTO PLACEHOLDER (`.photo-placeholder`)
   ============================================================ */
.photo-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--pencil);
  border: 2px dashed var(--pencil);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  text-align: center;
  padding: 1rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about p {
  max-width: 700px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ============================================================
   BEFORE / AFTER PHOTOS
   ============================================================ */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  max-width: 800px;
}

@media (max-width: 600px) {
  .before-after {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.before-after-frame {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 0.5rem;
}

.before-after-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.before-after-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 1;
  background: var(--paper);
  padding: 0.1em 0.5em;
  border-radius: 2px;
  transform: rotate(-3deg);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-card {
  max-width: 500px;
  margin-inline: auto;
  transform: rotate(1.5deg);
}

.testimonial-card:nth-child(2n) {
  transform: rotate(-1deg);
}

.testimonial-card:nth-child(3n) {
  transform: rotate(2deg);
}

.testimonial-card:hover {
  transform: rotate(0deg) translateY(-2px) !important;
}

.testimonial-quote {
  font-style: italic;
  color: var(--bark);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}

.testimonial-role {
  color: var(--pencil);
  font-size: 0.85rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-info {
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-info a {
  color: var(--bark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pencil);
  transition: text-decoration-color 0.2s, color 0.2s;
}

.contact-info a:hover {
  color: var(--sage);
  text-decoration-color: var(--sage);
}

.contact-info a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-field {
  margin-bottom: 1.25rem;
}

.label-optional {
  font-weight: 400;
  color: var(--pencil);
  font-size: 0.85rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.sketchy-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--pencil);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  background: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: 0;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.sketchy-input:focus {
  border-color: var(--sage);
}

.sketchy-input:focus-visible {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 20%, transparent);
}

.sketchy-input::placeholder {
  color: var(--pencil);
  opacity: 1;
}

textarea.sketchy-input {
  min-height: 120px;
  resize: vertical;
  border-radius: 15px 225px 15px 255px / 225px 15px 255px 15px;
}

select.sketchy-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A3728' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================================
   SVG DIVIDERS (`.divider`)
   ============================================================ */
.divider {
  display: block;
  width: 100%;
  height: 15px;
  color: var(--pencil);
  margin: 1rem 0;
  overflow: visible;
}

.divider svg {
  width: 100%;
  height: 15px;
  stroke: var(--pencil);
  fill: none;
}

/* ============================================================
   SECTION HEADINGS UTILITY
   ============================================================ */
.section-heading {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.section-subheading {
  color: var(--bark);
  opacity: 0.8;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-header {
  margin-bottom: 3rem;
}

#why h2,
#about h2,
#testimonials h2,
#contact h2 {
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 1.25rem;
  display: block;
}

.contact-info p strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ============================================================
   HIGHLIGHT / CALLOUT BLOCK
   ============================================================ */
.callout {
  background: var(--cream);
  border: 2px solid var(--sage);
  border-radius: 15px 225px 15px 255px / 225px 15px 255px 15px;
  padding: 1.5rem 2rem;
  position: relative;
}

.callout-annotation {
  position: absolute;
  top: -1rem;
  right: 1.5rem;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--sage);
  transform: rotate(3deg);
  background: var(--paper);
  padding: 0 0.3rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--cream);
  padding: 2rem clamp(1rem, 5vw, 6rem);
  text-align: center;
  font-size: 0.9rem;
  border-top: 2px solid var(--pencil);
  border-radius: 255px 15px 0 0 / 15px 255px 0 0;
}

.footer-inner {
  max-width: 1100px;
  margin-inline: auto;
}

.footer-copyright {
  color: var(--pencil);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--bark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--sage);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   SECTION BACKGROUND VARIANTS
   ============================================================ */
.section-cream {
  background: var(--cream);
}

.section-paper {
  background: var(--paper);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* — Tablet: 768px — */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .reasons {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .hero {
    text-align: center;
  }
}

/* — Desktop: 1024px — */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reasons {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   ACCESSIBILITY — FOCUS VISIBLE (global)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Remove default focus ring where we've already handled it */
:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@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;
  }

  .card,
  .services-grid .card,
  .testimonial-card {
    transform: none !important;
  }

  .card:hover,
  .services-grid .card:hover,
  .testimonial-card:hover {
    transform: none !important;
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .nav-toggle,
  nav,
  .hand-arrow,
  .divider {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .callout {
    border: 1px solid #ccc;
    border-radius: 4px;
    transform: none !important;
  }

  .btn {
    border: 1px solid black;
    background: white;
    color: black;
  }

  footer {
    background: white;
    border-top: 1px solid #ccc;
    border-radius: 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    opacity: 0.6;
  }

  a[href^="#"]::after {
    content: "";
  }
}
