/*
Theme Name: Daria Urban Verde
Theme URI: https://daria-urban-verde.snegodasha.chatgpt.site
Author: Daria Urban Verde
Description: An elegant bilingual plant-care theme for cafés, shops, studios and offices in Valencia.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: daria-urban-verde
*/

:root {
  --font-display: "Kalnia", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Onest", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-display: clamp(2.8rem, 4.85vw, 4.45rem);
  --text-section: clamp(2rem, 3.1vw, 2.9rem);
  --text-card: 1.24rem;
  --text-lead: clamp(1.125rem, 1.5vw, 1.25rem);
  --text-body: 0.975rem;
  --text-caption: 0.78rem;

  --leading-display: 0.98;
  --leading-heading: 1.04;
  --leading-body: 1.58;

  --page-gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 6vw, 5.5rem);
  --content-width: 74rem;
  --measure: 58ch;

  --bg: #f5f5f0;
  --surface: #fbfbfa;
  --text: #1a1d1a;
  --muted: #62685f;
  --rule: rgba(26, 29, 26, 0.12);
  --olive: #626952;
  --placeholder: #eae8e3;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

*:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip: auto;
  color: #fff;
  background: var(--text);
}

@keyframes duv-fade-in {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.site-shell {
  min-height: 100vh;
  background: var(--bg);
}

.site-container {
  width: min(100%, calc(var(--content-width) + (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, white);
}

.header-inner,
.footer-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  text-decoration: none;
}

.header-controls,
.language-switch,
.header-link,
.button {
  display: inline-flex;
  align-items: center;
}

.header-controls {
  gap: clamp(1rem, 3vw, 2rem);
}

.language-switch {
  gap: 0.35rem;
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 600;
}

.language-switch button {
  min-width: 2rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.language-switch button.is-active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--olive);
  text-underline-offset: 0.35rem;
}

.header-link {
  gap: 0.3rem;
  font-size: var(--text-caption);
  font-weight: 600;
  text-decoration: none;
}

.intro-section {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.intro-copy {
  max-width: 48rem;
}

.intro-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--placeholder);
}

.type-display,
.type-section-heading,
.type-card-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.type-display {
  max-width: 12ch;
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: -0.04em;
}

.type-section-heading {
  max-width: 22ch;
  font-size: var(--text-section);
  line-height: var(--leading-heading);
  letter-spacing: -0.032em;
}

.type-card-heading {
  font-size: var(--text-card);
  line-height: 1.18;
  letter-spacing: -0.022em;
}

.type-lead {
  max-width: var(--measure);
  font-size: var(--text-lead);
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.type-body {
  max-width: var(--measure);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.type-caption {
  color: var(--muted);
  font-size: var(--text-caption);
  line-height: 1.45;
}

.text-muted {
  color: var(--muted);
}

.rich-text > * + * {
  margin-top: 0.9rem;
}

.rich-text > .button {
  margin-top: 1.65rem;
}

.button {
  min-height: 2.875rem;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--text);
}

.button-primary:hover {
  background: var(--olive);
}

.site-section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}

.section-surface,
.problems-section,
.system-section,
.offers-section {
  background: var(--surface);
}

.section-title {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.media-card,
.progress-item {
  min-width: 0;
}

.media-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image,
.progress-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--placeholder);
}

.card-image-service,
.progress-image {
  aspect-ratio: 4 / 3;
}

.card-copy,
.system-item-copy {
  padding-top: 1rem;
}

.problems-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.82fr) minmax(0, 1.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.problems-copy {
  max-width: 29rem;
}

.problem-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.photo-slot {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(26, 29, 26, 0.16);
  background: linear-gradient(145deg, rgba(98, 105, 82, 0.08), transparent 54%), var(--placeholder);
}

.photo-slot::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(26, 29, 26, 0.07);
  pointer-events: none;
}

.photo-slot-problem {
  min-height: 13.75rem;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.problem-photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 15, 11, 0.7), transparent 48%);
  pointer-events: none;
}

.problem-photo-image {
  position: absolute;
  inset: 0;
}

.photo-slot-problem figcaption {
  position: relative;
  z-index: 3;
  max-width: 11rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.comparison-section {
  padding-block: var(--section-space);
}

.comparison-wrap {
  max-width: 62rem;
}

.comparison-media,
.comparison-images,
.comparison-images > div {
  width: 100%;
  height: 100%;
}

.comparison-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--placeholder);
}

.comparison-image {
  animation: duv-fade-in 240ms ease-out;
}

.comparison-switch {
  position: absolute;
  z-index: 4;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  padding: 0.25rem;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(8px);
}

.comparison-switch button {
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: var(--text-caption);
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

.comparison-switch button.is-active {
  color: #fff;
  background: var(--text);
}

.comparison-caption {
  margin-top: 0.7rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.split-heading .type-body {
  justify-self: end;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.system-item {
  min-width: 0;
  padding: 1.25rem;
  border-left: 1px solid var(--rule);
}

.system-item:first-child {
  border-left: 0;
}

.photo-slot-system {
  aspect-ratio: 4 / 3;
}

.system-photo-image {
  object-fit: cover;
}

.watering-emoji {
  position: absolute;
  z-index: 3;
  top: 30%;
  left: 34%;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
  filter: drop-shadow(0 2px 4px rgba(26, 29, 26, 0.28));
}

.system-closing {
  max-width: 42rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.offers-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.offers-intro {
  display: grid;
  gap: 2rem;
}

.photo-slot-offer {
  width: min(100%, 19rem);
  aspect-ratio: 4 / 5;
}

.offer-list {
  border-top: 1px solid var(--rule);
}

.offer-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.48fr);
  gap: 2rem;
  align-items: start;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--rule);
}

.offer-item-copy {
  max-width: 36rem;
}

.offer-meta {
  justify-self: end;
  max-width: 14rem;
  text-align: right;
}

.contact-section {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
  background: var(--placeholder);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.contact-copy {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  min-height: 4rem;
  color: var(--muted);
  font-size: var(--text-caption);
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover,
.header-link:hover {
  color: var(--olive);
  text-decoration: underline;
}

.wp-content-fallback {
  min-height: 65vh;
}

@media (max-width: 760px) {
  .header-link {
    display: none;
  }

  .intro-grid,
  .problems-grid,
  .split-heading,
  .offers-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 2rem;
  }

  .intro-portrait {
    width: min(70%, 17rem);
  }

  .comparison-media {
    aspect-ratio: 4 / 3;
  }

  .problem-photo-grid {
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(10.5rem, 58vw));
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .photo-slot-problem {
    min-height: 0;
    scroll-snap-align: start;
  }

  .split-heading .type-body {
    justify-self: start;
  }

  .three-column-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-item:nth-child(odd) {
    border-left: 0;
  }

  .system-item:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .offers-intro {
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 0.62fr);
    align-items: start;
  }

  .photo-slot-offer {
    width: 100%;
  }

  .offer-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .offer-meta {
    justify-self: start;
    text-align: left;
  }

  .contact-grid {
    align-items: start;
  }

  .contact-grid .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 0.75rem;
  }

  .wordmark {
    font-size: 1.12rem;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-item,
  .system-item:nth-child(odd) {
    border-left: 0;
  }

  .system-item:nth-child(n + 2) {
    border-top: 1px solid var(--rule);
  }

  .offers-intro {
    grid-template-columns: 1fr;
  }

  .photo-slot-offer {
    width: min(70%, 15rem);
  }
}

@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;
  }
}

