/* Nicușor · Amenajări grădini — demo. One motif: the leaf (two opposite corners rounded). */
:root {
  --bg: #f4f7ef;
  --surface: #e4ecda;
  --ink: #163a26;
  --muted: #2c4b39;
  --accent: #163a26;
  --accent-ink: #f4f7ef;
  --lawn: #cfe2b3;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);
  --step-display: clamp(2.25rem, 1.35rem + 4.2vw, 4.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1280px;
  --gap-section: clamp(88px, 11vw, 168px);
  --leaf: clamp(56px, 11vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.send :focus-visible, .demo :focus-visible, .field :focus-visible { outline-color: var(--lawn); }
[id] { scroll-margin-top: 88px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 50; }
.skip:focus { left: var(--gutter); top: 8px; }

/* the motif */
.leaf { display: inline-block; width: 0.8em; height: 0.8em; background: currentColor; border-radius: 0 100% 0 100%; flex: none; }
.shape { border-radius: 0 var(--leaf) 0 var(--leaf); overflow: hidden; background: var(--surface); }
.shape img { transition: transform 900ms var(--ease); }
.shape:hover img { transform: scale(1.04); }

/* buttons: the leaf again */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 0 28px 0 28px; cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms, color 180ms;
}
.btn:hover { background: #0d2a1a; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-small { min-height: 46px; padding: 0 22px; border-radius: 0 23px 0 23px; font-size: var(--step-small); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { background: var(--lawn); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--lawn); }
.btn-ghost { background: #1f4a32; color: var(--bg); }
.btn-ghost:hover { background: #29583d; }
.link { font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-underline-offset 180ms; }
.link:hover { text-underline-offset: 8px; }

/* bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px max(var(--gutter), calc((100% - var(--wide)) / 2));
  background: var(--bg);
}
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; line-height: 1; }
.mark-sub { font-weight: 400; font-size: var(--step-small); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.links a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; font-size: var(--step-small); font-weight: 500; padding: 8px 0; transition: text-decoration-color 200ms; }
.links a:hover { text-decoration-color: currentColor; }
.bar-actions { display: flex; gap: 8px; }
.bar-offer { display: none; }
.bar-call .short { display: none; }

/* frame */
.hero, .services, .works, .steps, .foot-top, .credits, .field-in, .offer-in {
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
.services, .works, .steps { margin-top: var(--gap-section); }
.head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.head h2 { grid-column: 1 / span 7; }
.head p { grid-column: 9 / span 4; color: var(--muted); max-width: 44ch; }

/* hero */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding-top: clamp(16px, 3vw, 40px); }
.hero-text { grid-column: 1 / span 6; }
.hero-photo { grid-column: 7 / span 6; height: min(76svh, 720px); min-height: 420px; border-radius: 0 clamp(96px, 16vw, 260px) 0 clamp(96px, 16vw, 260px); }
.hero-photo img { animation: drift 24s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.lead { font-size: var(--step-lead); line-height: 1.35; margin-top: 28px; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-weight: 500; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; width: 0.7em; height: 0.7em; background: var(--ink); border-radius: 0 100% 0 100%; flex: none; }
.ticks-col { flex-direction: column; gap: 12px; margin-top: 24px; font-weight: 400; }

/* services */
.service { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.service + .service { margin-top: clamp(56px, 8vw, 112px); }
.service figure { grid-column: 1 / span 6; aspect-ratio: 4 / 3; }
.service-text { grid-column: 8 / span 5; }
.service-flip figure { grid-column: 7 / span 6; order: 2; border-radius: var(--leaf) 0 var(--leaf) 0; }
.service-flip .service-text { grid-column: 1 / span 5; order: 1; }
.service-text h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.05; }
.service-text > p { margin-top: 16px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.service-text .link { display: inline-block; margin-top: 28px; }

/* field: case + firme */
.field { background: var(--ink); color: var(--bg); margin-top: var(--gap-section); border-radius: 0 var(--leaf) 0 0; }
.field-in { padding-block: clamp(72px, 9vw, 136px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.field h2 { grid-column: 1 / span 5; }
.two { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two h3 { display: flex; align-items: center; gap: 12px; }
.two h3::before { content: ""; width: 0.7em; height: 0.7em; background: var(--lawn); border-radius: 0 100% 0 100%; flex: none; }
.two p { margin-top: 14px; color: #dbe7d3; max-width: 44ch; }

/* works */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(200px, 23vw, 340px); gap: 16px; }
.mosaic figure { position: relative; grid-column: span 4; }
.mosaic .m-wide { grid-column: span 8; }
.mosaic .m-tall { grid-row: span 2; }
.mosaic figure:nth-child(even) { border-radius: var(--leaf) 0 var(--leaf) 0; }
.mosaic figcaption {
  position: absolute; right: 0; bottom: 0; max-width: 85%;
  background: var(--bg); color: var(--ink); font-size: var(--step-small); font-weight: 500;
  padding: 10px 14px 10px 18px; border-radius: 18px 0 0 0;
}
.mosaic figure:nth-child(even) figcaption { right: auto; left: 0; border-radius: 0 18px 0 0; padding: 10px 18px 10px 14px; }

/* steps */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.path li { background: var(--surface); padding: 32px 28px 36px; border-radius: 0 44px 0 44px; }
.path li:nth-child(2) { margin-top: 28px; }
.path li:nth-child(3) { margin-top: 56px; }
.path li:nth-child(4) { margin-top: 84px; background: var(--lawn); }
.path h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.path p { margin-top: 12px; color: var(--muted); max-width: 44ch; }

/* offer builder */
.offer { background: var(--lawn); margin-top: var(--gap-section); border-radius: var(--leaf) 0 0 0; }
.offer-in { padding-block: clamp(72px, 9vw, 136px); }
.offer .head p { color: var(--ink); }
.builder { display: grid; grid-template-columns: repeat(12, 1fr); gap: 36px 24px; }
.builder fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.builder legend { padding: 0; font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  background: var(--bg); border-radius: 0 26px 0 26px; font-weight: 500;
  transition: background-color 160ms, color 160ms, transform 160ms var(--ease);
}
.chips span::before { content: ""; width: 0.7em; height: 0.7em; border-radius: 0 100% 0 100%; background: var(--surface); transition: background-color 160ms, transform 240ms var(--ease); flex: none; }
.chips label:hover span { transform: translateY(-2px); }
.chips input:checked + span { background: var(--ink); color: var(--bg); }
.chips input:checked + span::before { background: var(--lawn); transform: rotate(90deg); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (forced-colors: active) {
  .chips span { border: 2px solid ButtonText; }
  .chips input:checked + span { outline: 4px solid Highlight; outline-offset: -4px; }
}
.fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.fieldbox { display: grid; gap: 10px; font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; }
.fieldbox input {
  font: inherit; font-size: var(--step-body); font-weight: 400; letter-spacing: 0; color: var(--ink);
  min-height: 56px; padding: 0 20px; background: var(--bg); border: 2px solid var(--muted); border-radius: 0 28px 0 28px; width: 100%;
}
.fieldbox input::placeholder { color: #55695c; }
.send { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; background: var(--ink); color: var(--bg); padding: clamp(24px, 4vw, 48px); border-radius: 0 var(--leaf) 0 var(--leaf); }
.note { grid-column: 1 / span 7; }
.note h3 { font-size: var(--step-small); font-weight: 500; letter-spacing: 0; color: var(--lawn); }
.note p { margin-top: 10px; font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
.send-actions { grid-column: 9 / span 4; display: grid; gap: 12px; }
.send-actions .btn { width: 100%; }

/* footer */
.foot { background: var(--bg); padding-block: var(--gap-section) 32px; }
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: end; }
.foot-mark { grid-column: 1 / span 5; display: flex; align-items: flex-end; gap: 6px; height: clamp(120px, 18vw, 240px); color: var(--ink); }
.leaf-big { width: auto; height: 100%; aspect-ratio: 1; }
.leaf-2 { height: 66%; color: #2f6b45; border-radius: 100% 0 100% 0; }
.leaf-3 { height: 40%; color: #9bc078; }
.foot-contact { grid-column: 6 / span 4; }
.foot-contact h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.foot-contact p { margin-top: 8px; }
.foot-contact a { font-weight: 500; text-underline-offset: 4px; }
.foot-links { grid-column: 10 / span 3; display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.credits { margin-top: 56px; font-size: var(--step-small); color: var(--muted); }
.credits span { display: block; max-width: 56ch; }

/* demo notice (isolated; removed at handover) */
.demo { background: var(--ink); color: var(--bg); }
.demo[hidden] { display: none; }
.demo-in { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.demo p { font-size: var(--step-small); max-width: 54ch; }
.demo strong { font-weight: 600; }
.demo .btn { background: var(--bg); color: var(--ink); min-height: 40px; }

/* entrances (content is visible without script) */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .links { display: none; }
  .bar-offer { display: inline-flex; }
  .bar-call .num { display: none; }
  .bar-call .short { display: inline; }
  .mark-sub { display: none; }
  .head { grid-template-columns: 1fr; }
  .head h2, .head p { grid-column: 1; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-text, .hero-photo { grid-column: 1; }
  .hero-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .lead { max-width: none; }
  .service { grid-template-columns: 1fr; gap: 24px; }
  .service figure, .service-text, .service-flip figure, .service-flip .service-text { grid-column: 1; order: 0; }
  .field-in { grid-template-columns: 1fr; }
  .field h2, .two { grid-column: 1; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 10px; }
  .mosaic figure { grid-column: span 1; }
  .mosaic .m-wide, .mosaic figure:nth-child(5) { grid-column: span 2; grid-row: span 1; }
  .path { grid-template-columns: 1fr; gap: 14px; }
  .path li:nth-child(n) { margin-top: 0; margin-right: 24%; }
  .path li:nth-child(2) { margin-left: 8%; margin-right: 16%; }
  .path li:nth-child(3) { margin-left: 16%; margin-right: 8%; }
  .path li:nth-child(4) { margin-left: 24%; margin-right: 0; }
  .builder { gap: 32px; }
  .send { grid-template-columns: 1fr; }
  .note, .send-actions { grid-column: 1; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-mark { grid-column: 1 / -1; }
  .foot-contact, .foot-links { grid-column: span 1; }
}
@media (max-width: 559px) {
  .bar .btn-small { padding: 0 16px; }
  .bar { gap: 10px; }
  .actions .btn { width: 100%; }
  .two { grid-template-columns: 1fr; }
  .path li:nth-child(n) { margin-left: 0; margin-right: 0; }
  .fields { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: 44vw; }
  .chips span { padding: 0 18px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-contact, .foot-links { grid-column: 1; }
}

/* Reduced motion keeps the page whole: no travel, no drifting picture, no zoom. Entrances stay as short fades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img { animation: none; }
  .js .rise { transform: none; transition: opacity 500ms linear; transition-delay: var(--d, 0ms); }
  .shape:hover img, .btn:hover, .btn:active, .chips label:hover span { transform: none; }
  .chips input:checked + span::before { transform: none; }
}
@media (max-width: 379px) {
  .bar-offer { display: none; }
}
