/* Marak Landscape & Construction — design system */

:root {
  --ink: #14201a;
  --ink-2: #33453b;
  --muted: #5d6f65;
  --green-900: #10301d;
  --green-800: #16452a;
  --green-700: #1d6b39;
  --green-600: #268049;
  --green-500: #35a05e;
  --sand: #f6f3ec;
  --sand-2: #ece7dc;
  --stone: #d7d0c2;
  --white: #fff;
  --amber: #d98324;
  --shadow-sm: 0 1px 2px rgba(20, 32, 26, 0.06), 0 2px 8px rgba(20, 32, 26, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 32, 26, 0.08), 0 12px 32px rgba(20, 32, 26, 0.08);
  --shadow-lg: 0 8px 24px rgba(20, 32, 26, 0.1), 0 24px 64px rgba(20, 32, 26, 0.12);
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); }
p { margin: 0 0 1.1em; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-600); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--green-900); color: #cfe0d5; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: .9rem;
}
.section-dark .eyebrow { color: var(--green-500); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-700); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-amber { background: var(--amber); color: #23160a; }
.btn-amber:hover { background: #c2731d; color: #23160a; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--sand); color: var(--green-900); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.topbar { background: var(--green-900); color: #b9d2c3; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; padding: .5rem 0; flex-wrap: wrap; }
.topbar a { color: #e5f0e9; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-areas { color: #93b3a1; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sand-2); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.16rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .8rem; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); color: var(--green-800); }

.has-menu { position: relative; }
.has-menu > button {
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); background: none; border: 0;
  padding: .55rem .8rem; border-radius: var(--r-sm); cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
}
.has-menu > button:hover, .has-menu.open > button { background: var(--sand); color: var(--green-800); }
.has-menu > button::after { content: ""; width: .42em; height: .42em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s; }
.has-menu.open > button::after { transform: rotate(-135deg) translateY(-2px); }
.menu-panel {
  position: absolute; top: calc(100% + .4rem); left: 0; background: #fff; border: 1px solid var(--sand-2);
  border-radius: var(--r); box-shadow: var(--shadow-md); padding: .5rem; min-width: 270px; display: none;
}
.has-menu.open .menu-panel { display: block; }
/* Hover/focus opening keeps the menus usable if JavaScript never runs. */
@media (min-width: 1081px) {
  .has-menu:hover .menu-panel, .has-menu:focus-within .menu-panel { display: block; }
}
.menu-panel.two-col { min-width: 480px; columns: 2; column-gap: .5rem; }
.menu-panel a { display: block; padding: .5rem .7rem; font-size: .92rem; font-weight: 550; break-inside: avoid; }

.header-cta { display: flex; align-items: center; gap: .6rem; }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--green-700); }

.nav-toggle { display: none; background: none; border: 1px solid var(--stone); border-radius: var(--r-sm); padding: .55rem .7rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--sand-2); padding: .75rem; gap: .1rem; box-shadow: var(--shadow-md);
    max-height: 75vh; overflow-y: auto;
  }
  .has-menu { width: 100%; position: static; }
  .has-menu > button { width: 100%; justify-content: space-between; }
  .menu-panel, .menu-panel.two-col { position: static; box-shadow: none; border: 0; min-width: 0; columns: 1; padding: 0 0 .5rem .75rem; }
}
@media (max-width: 620px) {
  .header-cta .btn { display: none; }
  .topbar-areas { display: none; }
  .site-header .wrap { min-height: 64px; gap: .6rem; }
  .brand { gap: .5rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .09em; white-space: nowrap; }
  .header-phone { font-size: .95rem; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
  .header-phone { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(9,28,17,.93) 0%, rgba(9,28,17,.82) 42%, rgba(9,28,17,.45) 100%);
}
.hero-inner { position: relative; padding: clamp(3.5rem, 2rem + 8vw, 7rem) 0; max-width: 700px; }
.hero h1 { color: #fff; }
.hero p { color: #d6e6dc; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; color: #b9d2c3; }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; }

.page-hero { background: var(--green-900); color: #d6e6dc; padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0 clamp(2.5rem, 1.5rem + 4vw, 3.5rem); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { max-width: 62ch; font-size: clamp(1.02rem, 1rem + .3vw, 1.15rem); }
.page-hero .btn { margin-top: .6rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; padding: .9rem 0; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li::after { content: "/"; margin-left: .35rem; color: var(--stone); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-700); text-decoration: underline; }
.page-hero .crumbs, .page-hero .crumbs a { color: #8fb3a0; }
.page-hero .crumbs a:hover { color: #fff; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--sand-2); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--stone); }
.card-media { aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .45rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--green-700); }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card-link { margin-top: auto; font-weight: 650; font-size: .93rem; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card-link::after { content: "\2192"; transition: transform .15s; }
.card:hover .card-link::after { transform: translateX(3px); }

.tile {
  display: block; padding: 1.15rem 1.3rem; background: #fff; border: 1px solid var(--sand-2);
  border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 650; transition: all .15s;
}
.tile:hover { border-color: var(--green-600); background: var(--sand); color: var(--green-800); }
.tile small { display: block; font-weight: 500; font-size: .84rem; color: var(--muted); margin-top: .15rem; }
.tile:hover small { color: var(--ink-2); }

/* ---------- Trust strip ---------- */
.trust { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust-item h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.trust-item p { font-size: .93rem; color: var(--muted); margin: 0; }
.trust-icon { width: 40px; height: 40px; color: var(--green-600); margin-bottom: .8rem; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.9rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: .5rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.1rem; height: .6rem;
  border-left: 2.5px solid var(--green-600); border-bottom: 2.5px solid var(--green-600);
  transform: rotate(-45deg);
}

.callout {
  background: var(--sand); border-left: 4px solid var(--green-600);
  padding: 1.3rem 1.5rem; border-radius: 0 var(--r) var(--r) 0; margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* ---------- Layout with sidebar ---------- */
.with-aside { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .with-aside { grid-template-columns: minmax(0, 1fr) 330px; gap: 3.5rem; } }
.aside-card { background: var(--sand); border-radius: var(--r-lg); padding: 1.6rem; margin-bottom: 1.5rem; }
.aside-card h3 { font-size: 1.1rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { border-bottom: 1px solid var(--stone); }
.aside-card li:last-child { border-bottom: 0; }
.aside-card li a { display: block; padding: .6rem 0; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink); }
.aside-card li a:hover { color: var(--green-700); }
.aside-sticky { position: sticky; top: 96px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--sand-2); }
.faq details { border-bottom: 1px solid var(--sand-2); }
.faq summary {
  cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 650; color: var(--ink);
  font-size: 1.05rem; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.5rem; width: .55rem; height: .55rem;
  border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 2.5rem 1.3rem 0; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a, .filters button {
  font: inherit; font-size: .9rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--stone); background: #fff; color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.filters a:hover, .filters button:hover { border-color: var(--green-600); color: var(--green-700); }
.filters .is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.masonry { columns: 3; column-gap: 1rem; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.masonry figure { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--r); overflow: hidden; background: var(--sand-2); }
.masonry img { width: 100%; transition: transform .35s ease; }
.masonry figure:hover img { transform: scale(1.03); }

.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shots figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--sand-2); }
.shots img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1px solid var(--sand-2); border-radius: var(--r-lg); padding: 1.6rem; display: flex; flex-direction: column; }
.stars { color: var(--amber); letter-spacing: .1em; margin-bottom: .8rem; font-size: 1.05rem; }
.review blockquote { margin: 0 0 1.1rem; font-size: .97rem; color: var(--ink-2); }
.review cite { margin-top: auto; font-style: normal; font-weight: 700; color: var(--ink); font-size: .93rem; }
.review cite span { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; }

/* ---------- Contact / form ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .8rem .95rem; border: 1.5px solid var(--stone);
  border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); outline: 2px solid rgba(38,128,73,.18); outline-offset: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 1rem; }

.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-lines dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-lines dd { margin: .15rem 0 0; font-size: 1.08rem; font-weight: 650; color: var(--ink); }
.contact-lines dd a { color: var(--ink); text-decoration: none; }
.contact-lines dd a:hover { color: var(--green-700); }
.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--sand-2); }
.hours-table th { font-weight: 600; color: var(--muted); }
.hours-table td { font-weight: 650; color: var(--ink); text-align: right; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-800); color: #d6e6dc; text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb3a7; font-size: .92rem; padding: 3.5rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer a { color: #c3d4ca; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .85rem;
}

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 620px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    box-shadow: 0 -2px 14px rgba(0,0,0,.16);
  }
  .callbar a { padding: .95rem; text-align: center; font-weight: 700; text-decoration: none; font-size: .98rem; }
  .callbar .call { background: var(--green-700); color: #fff; }
  .callbar .quote { background: var(--amber); color: #23160a; }
  body { padding-bottom: 54px; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
