/*
Theme Name: Sunwood RAL7042
Theme URI: https://telikertek.top
Author: Sunwood
Description: Sunwood pergola/télikert/carport landing oldal a valódi RAL 7042 (Verkehrsgrau A) színvilágban — az "Antracit" dizájn másolata, RAL-hű színcserével.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sunwood-ral7042
*/

:root {
  /*
   * RAL 7042 "Verkehrsgrau A" ≈ #8F9695 (RGB 143/150/149) → oklch(0.667 0.009 187).
   * Used verbatim as --accent (the theme's signature swatch, on CTA buttons and the
   * consultation band); the rest of the grey family is the same hue (187) so the
   * palette reads as one consistent RAL7042 grey, light-where-light / dark-where-dark
   * like the Antracit original.
   */
  --radius: 0.625rem;
  --background: oklch(0.975 0.002 187);
  --foreground: oklch(0.22 0.006 187);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.006 187);
  --primary: oklch(0.28 0.008 187);
  --primary-foreground: oklch(0.985 0.002 187);
  --secondary: oklch(0.93 0.004 187);
  --secondary-foreground: oklch(0.22 0.006 187);
  --muted: oklch(0.93 0.004 187);
  --muted-foreground: oklch(0.5 0.006 187);
  --accent: oklch(0.667 0.009 187);
  --accent-foreground: oklch(0.16 0.006 187);
  --border: oklch(0.87 0.006 187);
  --shadow-elegant: 0 30px 60px -30px oklch(0.15 0.01 187 / 0.35);
  /* Brand red sampled from the Sunwood logo (RGB 205/23/25 ≈ #CD1719). */
  --brand-red: #cd1719;
  --font-heading: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

/*
 * Parallelogram buttons — echoes the slanted stripe mark in the Sunwood logo.
 * skewX gives an exact edge angle regardless of button size (unlike a
 * percentage clip-path, whose angle would depend on each button's own
 * height). 75° from horizontal = 15° skew from vertical. The label is
 * wrapped in a <span> and counter-skewed so the text itself stays upright.
 */
.btn-light,
.btn-ghost,
.btn-cta,
.btn-cta-light,
.btn-submit {
  transform: skewX(-15deg);
}

.btn-light > span,
.btn-ghost > span,
.btn-cta > span,
.btn-cta-light > span,
.btn-submit > span {
  display: inline-block;
  transform: skewX(15deg);
}

/*
 * Elegant hover fill — on hover, a gradient wipes down from the top edge to
 * cover the whole shape, instead of an instant color swap. Each button
 * defines --btn-hover-bg with its own gradient; overflow:hidden keeps the
 * reveal clipped to the parallelogram.
 */
.btn-light,
.btn-ghost,
.btn-cta,
.btn-cta-light,
.btn-submit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-light::before,
.btn-ghost::before,
.btn-cta::before,
.btn-cta-light::before,
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--btn-hover-bg);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-light:hover::before,
.btn-ghost:hover::before,
.btn-cta:hover::before,
.btn-cta-light:hover::before,
.btn-submit:hover::before {
  transform: scaleY(1);
}

.btn-light > span,
.btn-ghost > span,
.btn-cta > span,
.btn-cta-light > span,
.btn-submit > span {
  position: relative;
  z-index: 1;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* WordPress admin bar sits fixed at the very top for logged-in users */
body.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled {
  background: var(--primary);
  box-shadow: 0 2px 16px oklch(0 0 0 / 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--header-pad, 0);
  transition: padding-block 0.15s ease-out;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  display: block;
  height: var(--logo-height, 80px);
  width: auto;
  transition: height 0.15s ease-out;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

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

.site-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in oklab, var(--primary-foreground) 85%, transparent);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--primary-foreground);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav .nav-logo {
  display: none;
}

.site-nav .nav-logo::after {
  content: none;
}

/* Mobile menu — hamburger toggle, shown below the desktop nav breakpoint */
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: none;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  /* The mobile-only CTA duplicate inside .site-nav; the header already has
     its own standalone .btn-cta on desktop. */
  .site-nav .nav-cta {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-foreground);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu — full-screen elegant overlay panel, below the desktop breakpoint */
@media (max-width: 1023.98px) {
  .menu-toggle {
    position: relative;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  }

  .site-nav.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    font-size: 1.125rem;
    letter-spacing: 0.16em;
  }

  .site-nav .btn-cta {
    display: inline-block;
    margin-top: 1rem;
  }

  /* Logo slides down from above the panel and settles centered above the
     links, then stays put; a later transition-delay sequences it after the
     panel fade so it reads as "drop in, then rest". */
  .site-nav .nav-logo {
    display: inline-flex;
    margin-bottom: 1rem;
    transform: translateY(-4rem);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.45s ease 0.1s;
  }

  .site-nav.is-open .nav-logo {
    transform: translateY(0);
    opacity: 1;
  }

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

body.nav-open {
  overflow: hidden;
}

.btn-cta {
  display: none;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.75rem 1.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 0;
  cursor: pointer;
  --btn-hover-bg: linear-gradient(
    135deg,
    color-mix(in oklab, var(--accent) 85%, white),
    color-mix(in oklab, var(--accent) 80%, black)
  );
}

@media (min-width: 768px) {
  .btn-cta {
    display: inline-block;
  }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 85vh;
  min-height: 560px;
  width: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--foreground) 45%, transparent);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.hero-inner {
  max-width: 48rem;
  color: var(--primary-foreground);
  transition: opacity 0.3s ease;
}

.hero-inner.is-swapping {
  opacity: 0;
}

.hero-kicker {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 3rem;
  line-height: 1.05;
  margin: 0;
}

.hero-kicker .hero-title {
  display: block;
  font-weight: 600;
}

@media (min-width: 768px) {
  .hero-kicker {
    font-size: 4.5rem;
  }
}

.hero-body {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero-body {
    font-size: 1.5rem;
  }
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-light {
  background: var(--background);
  color: var(--foreground);
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  box-shadow: var(--shadow-elegant);
  --btn-hover-bg: linear-gradient(
    135deg,
    var(--secondary),
    color-mix(in oklab, var(--secondary) 80%, white)
  );
}

.btn-ghost {
  border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 50%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--primary-foreground) 50%, transparent);
  border-left: none;
  border-right: none;
  color: var(--primary-foreground);
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  backdrop-filter: blur(4px);
  --btn-hover-bg: linear-gradient(
    135deg,
    color-mix(in oklab, var(--primary-foreground) 18%, transparent),
    color-mix(in oklab, var(--primary-foreground) 6%, transparent)
  );
}

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero-dots .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-dot {
  height: 3px;
  width: 2rem;
  background: color-mix(in oklab, var(--primary-foreground) 40%, transparent);
  border: 0;
  cursor: pointer;
  transition: all 0.5s;
  padding: 0;
}

.hero-dot:hover {
  background: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
}

.hero-dot.is-active {
  width: 4rem;
  background: var(--primary-foreground);
}

/* About / philosophy */
.about {
  padding-block: 5rem;
}

.about .container {
  max-width: 56rem;
  text-align: center;
}

.about h2 {
  font-family: var(--font-heading);
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.about p + p {
  margin-top: 1rem;
}

/* Trust bar */
.trust-bar {
  background: var(--accent);
  padding-block: 3rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-item.is-middle {
  padding-block: 1.5rem;
  border-block: 1px solid color-mix(in oklab, var(--accent-foreground) 15%, transparent);
}

@media (min-width: 768px) {
  .trust-item.is-middle {
    border-block: 0;
    border-inline: 1px solid color-mix(in oklab, var(--accent-foreground) 15%, transparent);
    padding-block: 0;
  }
}

.trust-value {
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--accent-foreground);
}

.trust-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in oklab, var(--accent-foreground) 70%, transparent);
}

/* Products */
.products {
  max-width: 80rem;
  margin-inline: auto;
  padding: 6rem 1.5rem;
}

.products-head {
  margin-bottom: 4rem;
}

.products-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.products-title {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--card);
  color: var(--card-foreground);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.5s;
}

.product-card:hover {
  box-shadow: var(--shadow-elegant);
}

.product-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.product-card:hover .product-media img {
  transform: scale(1.1);
}

.product-body {
  padding: 2rem;
}

.product-title {
  font-family: var(--font-heading);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.product-desc {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.product-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.product-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.product-card:hover .product-link::after {
  transform: scaleX(1);
}

/* CTA band */
.cta-band {
  background: var(--accent);
  padding-block: 5rem;
}

.cta-band .container {
  max-width: 80rem;
  text-align: center;
  color: var(--accent-foreground);
}

.cta-title {
  font-family: var(--font-heading);
  margin: 0 auto 2rem;
  max-width: 56rem;
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-title em {
  font-weight: 600;
  font-style: italic;
}

.btn-cta-light {
  display: inline-block;
  background: transparent;
  border-top: 1px solid color-mix(in oklab, var(--accent-foreground) 50%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent-foreground) 50%, transparent);
  border-left: none;
  border-right: none;
  color: var(--accent-foreground);
  padding: 1.25rem 3rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  --btn-hover-bg: linear-gradient(
    135deg,
    var(--secondary),
    color-mix(in oklab, var(--secondary) 75%, white)
  );
}

/* Quote form */
.quote {
  background: var(--card);
  padding-block: 6rem;
}

.quote .container {
  max-width: 72rem;
}

.quote-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 768px) {
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

.quote-title {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .quote-title {
    font-size: 2.25rem;
  }
}

.quote-title span {
  display: block;
}

.quote-desc {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.quote-contacts {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
}

.quote-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quote-icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--accent);
}

.quote-contact dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

.quote-contact dd {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
}

.quote-form {
  display: grid;
  gap: 1.5rem;
}

.quote-form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .quote-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.field:focus {
  border-color: var(--accent);
}

.field::placeholder {
  color: var(--muted-foreground);
}

textarea.field {
  resize: none;
}

.btn-submit {
  width: 100%;
  background: var(--secondary);
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary-foreground);
  border: 0;
  cursor: pointer;
  transition: color 0.3s;
  --btn-hover-bg: linear-gradient(
    135deg,
    var(--accent),
    color-mix(in oklab, var(--accent) 75%, black)
  );
}

.btn-submit:hover {
  color: var(--accent-foreground);
}

.quote-success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
  padding: 2.5rem;
  text-align: center;
}

.quote-success p:first-child {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.quote-success p:last-child {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Subpages — breadcrumb + compact page hero */
.breadcrumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
  margin: 0 0 0.75rem;
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  color: var(--primary-foreground);
}

.page-hero {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8rem 0 3.5rem;
}

.page-hero h1 {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-hero p {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  opacity: 0.85;
}

/* Subpages — prose content */
.prose-section {
  padding-block: 4rem;
}

.prose-section .container {
  max-width: 56rem;
}

.prose-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.prose-section h2:first-child {
  margin-top: 0;
}

.prose-section p {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--foreground);
}

.feature-item::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  flex: none;
}

/* Subpages — image/text split */
.split-section {
  padding-block: 4rem;
  background: var(--card);
}

.split-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .split-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.split-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-elegant);
}

.split-grid h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.split-grid p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

/* Subpages — image gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--secondary);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
}

.gallery-grid figure.is-hidden {
  display: none;
}

.gallery-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.gallery-cat-tag {
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-cat-tag:hover {
  border-color: var(--accent);
  color: var(--foreground);
}

.gallery-cat-tag.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
}

/* Subpages — blog list */
.blog-list {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding-block: 2.5rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.site-footer .tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Header — Carport dropdown submenu */
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-dropdown {
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 4px);
    min-width: 13rem;
    padding: 0.75rem;
    margin-top: 0;
    background: var(--primary);
    box-shadow: 0 12px 30px oklch(0 0 0 / 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
  }

  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .nav-dropdown a {
    padding: 0.55rem 0.75rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

@media (max-width: 1023.98px) {
  .nav-dropdown {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
    border-left: 1px solid color-mix(in oklab, var(--primary-foreground) 25%, transparent);
  }

  .nav-dropdown a {
    font-size: 0.8rem;
    padding-bottom: 0.15rem;
    color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
  }
}

/* Subpages — numbered process steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}

.process-step h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.process-step p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Subpages — color / surface swatches */
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}

.swatch-color {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.15), var(--shadow-elegant);
}

/* Subpages — multi-step quote wizard */
.wizard {
  display: grid;
  gap: 2.5rem;
}

.wizard-progress {
  display: flex;
  gap: 0.4rem;
}

.wizard-progress span {
  height: 3px;
  flex: 1;
  background: var(--border);
  transition: background 0.3s;
}

.wizard-progress span.is-done {
  background: var(--accent);
}

.wizard-step {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.wizard-step.is-active {
  display: flex;
}

.wizard-step h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-step .field-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

.wizard-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wizard-choice {
  position: relative;
  cursor: pointer;
}

.wizard-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.wizard-choice span {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--foreground);
  transition: all 0.2s;
}

.wizard-choice input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wizard-back {
  background: transparent;
  border: 0;
  padding: 1rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s;
}

.wizard-back:hover {
  color: var(--foreground);
}

.wizard-nav .btn-submit {
  width: auto;
  padding: 1rem 2.5rem;
}

.wizard-upload {
  border: 1px dashed var(--border);
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-align: center;
}

.wizard-upload input {
  margin-top: 0.75rem;
}
