/* ==========================================================================
   Debreceni Klímás – modern design system
   ========================================================================== */

:root {
  /* brand colors (kept from the site's existing navy/blue scheme) */
  --color-primary: #1d3f6e;
  --color-primary-dark: #142c4c;
  --color-primary-light: #3f66a3;
  --color-accent: #6f9ce0;
  --color-accent-soft: #eaf1fc;

  --color-ink: #101828;
  --color-body: #4b5768;
  --color-muted: #7c8797;
  --color-border: #e4e9f0;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f8fc;
  --color-dark: #0e2038;
  --color-dark-alt: #142b48;

  --color-success: #1e8e5a;
  --color-danger: #c0392b;

  --font-title: "Manrope", Helvetica, Arial, sans-serif;
  --font-body: "Manrope", Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.14);

  --container-w: 1220px;
  --section-pad: clamp(56px, 8vw, 112px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.section-sm {
  padding-block: clamp(40px, 5vw, 64px);
}

.section-dark {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.86);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-alt {
  background: var(--color-surface-alt);
}

.text-center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75em;
}

.section-dark .eyebrow {
  color: var(--color-accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.lede {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.text-center .lede {
  margin-inline: auto;
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  gap: 32px;
}

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

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

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 920px;
  margin-inline: auto;
}

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

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

.cols-align-center {
  align-items: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- icon ---------- */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.section-dark .icon-circle {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 10px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-info a,
.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.topbar-info a:hover {
  color: #fff;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.topbar-social a:hover {
  background: var(--color-primary-light);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--color-ink);
}

.main-nav > li > a:hover,
.main-nav > li.is-open > a {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.main-nav .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.main-nav li.is-open .chevron {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.main-nav li.is-open .submenu,
.main-nav li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-body);
  font-weight: 500;
  font-size: 0.92rem;
}

.submenu a:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions .btn-primary {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Hero (index)
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(640px, 84vh);
  background: var(--color-dark);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 156, 224, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 96px;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide .container {
  position: relative;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-content .eyebrow {
  color: #bcd3f5;
}

.hero-content h2 {
  color: #fff;
  margin-bottom: 0.35em;
}

.hero-content h3 {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 1.4em;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, 0.08);
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(14, 32, 56, 0.25), rgba(14, 32, 56, 0) 55%);
}

.hero-features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.hero-feature h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 2px;
}

.hero-feature p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  margin: 0;
}

.hero-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-w);
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  z-index: 2;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-arrow .icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Subheader banner (inner pages)
   ========================================================================== */

.subheader {
  position: relative;
  color: #fff;
  padding-block: clamp(72px, 12vw, 130px) clamp(44px, 6vw, 70px);
  text-align: center;
}

.subheader img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.subheader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14, 32, 56, 0.88), rgba(29, 63, 110, 0.72));
  z-index: -1;
}

.subheader .eyebrow {
  color: #fff;
}

.subheader h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Cards / feature boxes
   ========================================================================== */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 26px 28px 28px;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-body h3 a {
  color: inherit;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 6px;
}

.card-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card-link:hover .icon {
  transform: translateX(4px);
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature h4 {
  margin-bottom: 6px;
}

.feature p {
  color: var(--color-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
}

.step-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  color: #b7c0cc;
}

.step .icon-circle {
  margin-inline: auto;
  margin-bottom: 18px;
}

/* ==========================================================================
   Service switch nav (installation / repair / maintenance)
   ========================================================================== */

.service-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-ink);
}

.service-nav a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.service-nav a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.service-nav .icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin-inline: auto;
}

.accordion-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-ink);
  cursor: pointer;
}

.accordion-trigger .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--color-primary);
}

.accordion-item.is-open .accordion-trigger .icon {
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

.accordion-panel p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--color-muted);
}

/* ==========================================================================
   Gallery (projects)
   ========================================================================== */

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}

.gallery-item .card-media {
  aspect-ratio: 4 / 3;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 32, 56, 0.85) 0%, rgba(14, 32, 56, 0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4,
.gallery-overlay p {
  color: #fff;
  margin: 0;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.gallery-caption {
  margin-top: 14px;
  text-align: center;
}

.gallery-caption h4 {
  margin-bottom: 2px;
}

.gallery-caption p {
  color: var(--color-muted);
  margin: 0;
}

/* ==========================================================================
   Pricing table
   ========================================================================== */

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-table th,
.price-table td {
  padding: 20px 26px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td:last-child {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.price-table tbody tr:hover {
  background: var(--color-surface-alt);
}

/* ==========================================================================
   Blog article
   ========================================================================== */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 48px;
  align-items: start;
}

.with-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 767px) {
  .with-sidebar {
    grid-template-columns: 1fr;
  }

  .service-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-nav a {
    flex: 1 1 auto;
  }
}

.article-body p {
  margin-bottom: 1.3em;
  color: var(--color-body);
}

.article-body h2 {
  margin-top: 1.6em;
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem);
}

.article-body h3 {
  margin-top: 1.3em;
  font-size: 1.15rem;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body strong {
  color: var(--color-ink);
}

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.6em 0;
}

.callout .icon-circle {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

.callout p {
  margin: 0;
  color: var(--color-ink);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 1.4em 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-body);
}

.checklist .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  box-sizing: content-box;
}

.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 1.4em 0;
}

.numbered-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.numbered-list .num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.numbered-list div {
  color: var(--color-body);
}

.numbered-list h4 {
  margin-bottom: 2px;
  color: var(--color-ink);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.6em 0;
}

.article-table {
  width: 100%;
  min-width: 480px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-table th,
.article-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94rem;
}

.article-table th {
  background: var(--color-surface-alt);
  color: var(--color-ink);
  font-family: var(--font-title);
  font-weight: 700;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.widget h4 {
  margin-bottom: 18px;
}

.widget-post {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.widget-post:last-child {
  margin-bottom: 0;
}

.widget-post img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.widget-post .date {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.widget-post h5 {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.4;
}

.widget-post h5 a {
  color: var(--color-ink);
}

.widget-post h5 a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font: inherit;
  color: var(--color-ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field label.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-muted);
}

.form-field input[type="checkbox"] {
  width: auto;
  height: auto;
  padding: 0;
  margin: 4px 0 0;
  flex-shrink: 0;
}

.form-msg {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
  display: none;
}

.form-msg.is-visible {
  display: block;
}

.form-msg-success {
  background: rgba(30, 142, 90, 0.1);
  color: var(--color-success);
}

.form-msg-error {
  background: rgba(192, 57, 43, 0.1);
  color: var(--color-danger);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item h4 {
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--color-muted);
  margin: 0;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(36px, 6vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}

.cta-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 32, 56, 0.92), rgba(29, 63, 110, 0.78));
  z-index: -1;
}

.cta-banner .eyebrow {
  color: #fff;
}

.cta-banner h2,
.cta-banner h3 {
  color: #fff;
  margin-bottom: 6px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.cta-simple {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-simple h3 {
  color: #fff;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  border-top: 3px solid var(--color-primary-light);
}

.site-footer::before {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 156, 224, 0.16), transparent 70%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
}

.footer-top {
  padding-block: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 18px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-top: 10px;
}

.footer-social:hover {
  background: var(--color-primary-light);
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ==========================================================================
   Back to top / misc utilities
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top .icon {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.spacer-sm {
  height: clamp(24px, 4vw, 40px);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 992px) {
  .hero-arrow {
    display: flex;
  }
}

@media (max-width: 991px) {
  .topbar-contact span {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-slide {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    padding-block: 40px;
    display: none;
  }

  .hero-slide.is-active {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .hero-content .eyebrow {
    justify-content: center;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .hero-nav {
    justify-content: center;
    position: static;
    transform: none;
    margin-top: 24px;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 100px 24px 40px;
    gap: 6px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  .main-nav > li > a {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .main-nav li.is-open .submenu {
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(14, 32, 56, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 999;
  }

  body.nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .topbar .container {
    justify-content: center;
  }

  .topbar-contact a[href^="mailto:"] {
    display: none;
  }

  .topbar-social {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .cta-banner,
  .cta-simple {
    flex-direction: column;
    text-align: center;
  }

  .price-table th,
  .price-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}
