/*
Theme Name: Kunnátta
Theme URI: https://kunnatta.is
Author: Kunnátta ehf.
Author URI: https://kunnatta.is
Description: Custom theme for Kunnátta — AI & software development company
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kunnatta
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --k-pumpkin: #FD802E;
  --k-pumpkin-dark: #e06a1a;
  --k-pumpkin-light: #ffa666;
  --k-pumpkin-glow: rgba(253, 128, 46, 0.15);
  --k-charcoal: #233D4C;
  --k-charcoal-deep: #1a2e3a;
  --k-charcoal-light: #2d4f62;
  --k-white: #FFFFFF;
  --k-offwhite: #F4F5F7;
  --k-grey-100: #E8EAED;
  --k-grey-200: #D1D5DB;
  --k-grey-400: #93959d;
  --k-grey-600: #4B5563;
  --k-text: #1a1a1a;
  --k-text-light: #5a6270;
  --k-radius: 12px;
  --k-radius-lg: 20px;
  --k-shadow: 0 1px 3px rgba(35, 61, 76, 0.06), 0 8px 24px rgba(35, 61, 76, 0.08);
  --k-shadow-hover: 0 4px 12px rgba(35, 61, 76, 0.1), 0 16px 40px rgba(35, 61, 76, 0.12);
  --k-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --k-max-width: 1200px;
  --k-header-height: 100px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--k-text);
  background: var(--k-white);
  overflow-x: hidden;
}

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

a {
  color: var(--k-pumpkin);
  text-decoration: none;
  transition: color var(--k-transition);
}

a:hover {
  color: var(--k-pumpkin-dark);
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--k-charcoal);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1em;
  color: var(--k-text-light);
}

p:last-child {
  margin-bottom: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--k-pumpkin);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--k-pumpkin);
  border-radius: 2px;
}

/* ============================================
   LAYOUT
   ============================================ */
.k-container {
  max-width: var(--k-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.k-section {
  padding: 100px 0;
}

.k-section--grey {
  background: var(--k-offwhite);
}

.k-section--dark {
  background: var(--k-charcoal);
  color: var(--k-white);
}

.k-section--dark h2,
.k-section--dark h3,
.k-section--dark h4 {
  color: var(--k-white);
}

.k-section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.k-section--dark .section-label {
  color: var(--k-pumpkin-light);
}

.k-section--dark .section-label::before {
  background: var(--k-pumpkin-light);
}

/* ============================================
   BUTTONS
   ============================================ */
.k-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all var(--k-transition);
  text-decoration: none;
  line-height: 1;
}

.k-btn--primary {
  background: var(--k-pumpkin);
  color: var(--k-white);
}

.k-btn--primary:hover {
  background: var(--k-pumpkin-dark);
  color: var(--k-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 128, 46, 0.35);
}

.k-btn--outline {
  background: transparent;
  color: var(--k-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.k-btn--outline:hover {
  border-color: var(--k-pumpkin);
  color: var(--k-pumpkin);
  transform: translateY(-2px);
}

.k-btn--dark {
  background: var(--k-charcoal);
  color: var(--k-white);
}

.k-btn--dark:hover {
  background: var(--k-charcoal-deep);
  color: var(--k-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 61, 76, 0.3);
}

.k-btn--small {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.k-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--k-transition);
}

.k-btn:hover svg {
  transform: translateX(3px);
}

/* ============================================
   HEADER
   ============================================ */
.k-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--k-header-height);
  background: var(--k-charcoal);
  transition: background var(--k-transition), box-shadow var(--k-transition);
}

.k-header--scrolled {
  background: rgba(35, 61, 76, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.k-header__inner {
  max-width: var(--k-max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.k-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--k-transition);
}

.k-header__logo:hover {
  opacity: 0.85;
}

.k-header__logo-img {
  height: 120px;
  width: auto;
}

.k-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.k-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.k-nav-list li {
  margin: 0;
}

.k-header__nav a,
.k-nav-list a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--k-transition);
  text-decoration: none;
  display: block;
}

.k-header__nav a:hover,
.k-nav-list a:hover,
.k-nav-list .current-menu-item a,
.k-nav-list .current_page_item a {
  color: var(--k-white);
  background: rgba(255, 255, 255, 0.08);
}

.k-header__nav a.k-btn--primary {
  color: var(--k-white);
}

.k-header__cta {
  margin-left: 10px;
}

/* Mobile menu toggle */
.k-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.k-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--k-white);
  border-radius: 2px;
  transition: all var(--k-transition);
  transform-origin: center;
}

.k-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.k-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.k-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.k-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--k-charcoal);
  overflow: hidden;
  padding-top: var(--k-header-height);
}

.k-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(253, 128, 46, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.k-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 128, 46, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.k-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
}

.k-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.k-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 128, 46, 0.1);
  border: 1px solid rgba(253, 128, 46, 0.2);
  border-radius: 60px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--k-pumpkin-light);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease both;
}

.k-hero__badge svg {
  width: 14px;
  height: 14px;
}

.k-hero h1 {
  color: var(--k-white);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.k-hero h1 .k-highlight {
  color: var(--k-pumpkin);
  position: relative;
}

.k-hero__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.k-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.k-hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.k-hero__stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--k-pumpkin);
  line-height: 1;
  margin-bottom: 6px;
}

.k-hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Floating accent shape */
.k-hero__accent {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  opacity: 0.6;
  pointer-events: none;
}

.k-hero__accent-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(253, 128, 46, 0.15);
  animation: pulseRing 6s ease-in-out infinite;
}

.k-hero__accent-ring:nth-child(1) {
  inset: 0;
}

.k-hero__accent-ring:nth-child(2) {
  inset: 40px;
  animation-delay: 1s;
}

.k-hero__accent-ring:nth-child(3) {
  inset: 80px;
  animation-delay: 2s;
}

.k-hero__accent-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--k-pumpkin);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(253, 128, 46, 0.4);
}

/* ============================================
   SERVICES
   ============================================ */
.k-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.k-service-card {
  background: var(--k-white);
  border-radius: var(--k-radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--k-grey-100);
  transition: all var(--k-transition);
  position: relative;
  overflow: hidden;
}

.k-service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--k-pumpkin);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--k-transition);
}

.k-service-card:hover {
  border-color: transparent;
  box-shadow: var(--k-shadow-hover);
  transform: translateY(-4px);
}

.k-service-card:hover::after {
  transform: scaleX(1);
}

.k-service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--k-pumpkin-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: background var(--k-transition);
}

.k-service-card:hover .k-service-card__icon {
  background: var(--k-pumpkin);
}

.k-service-card:hover .k-service-card__icon svg {
  color: var(--k-white);
}

.k-service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--k-pumpkin);
  transition: color var(--k-transition);
}

.k-service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.k-service-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================
   PRODUCTS
   ============================================ */
.k-products__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
}

.k-products__column-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--k-grey-400);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--k-grey-100);
}

.k-products__column-label span {
  color: var(--k-pumpkin);
}

.k-product-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--k-radius);
  transition: all var(--k-transition);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.k-product-item:hover {
  background: var(--k-white);
  box-shadow: var(--k-shadow);
  color: inherit;
}

.k-product-item__dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  background: var(--k-pumpkin);
  border-radius: 50%;
  margin-top: 7px;
}

.k-product-item__info h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--k-charcoal);
}

.k-product-item__info p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.k-product-item__arrow {
  margin-left: auto;
  color: var(--k-grey-200);
  transition: all var(--k-transition);
  min-width: 20px;
  margin-top: 2px;
}

.k-product-item:hover .k-product-item__arrow {
  color: var(--k-pumpkin);
  transform: translateX(4px);
}

/* ============================================
   CUSTOM DEVELOPMENT
   ============================================ */
.k-dev__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}

.k-dev__text h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.k-dev__text p {
  margin-bottom: 24px;
}

.k-dev__clients {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.k-dev__client {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--k-white);
  border-radius: var(--k-radius);
  border: 1px solid var(--k-grey-100);
  transition: all var(--k-transition);
}

.k-dev__client:hover {
  border-color: var(--k-pumpkin);
  box-shadow: var(--k-shadow);
}

.k-dev__client-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--k-charcoal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--k-pumpkin);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
}

.k-dev__client-name {
  font-weight: 600;
  color: var(--k-charcoal);
  font-size: 0.95rem;
}

.k-dev__client-desc {
  font-size: 0.82rem;
  color: var(--k-text-light);
  margin-bottom: 0;
}

/* ============================================
   NEWS / BLOG
   ============================================ */
.k-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.k-news-card {
  position: relative;
  border-radius: var(--k-radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--k-white);
  transition: transform var(--k-transition);
}

.k-news-card:hover {
  transform: translateY(-4px);
  color: var(--k-white);
}

.k-news-card__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--k-charcoal);
}

.k-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.k-news-card:hover .k-news-card__image img {
  transform: scale(1.05);
}

.k-news-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--k-charcoal) 0%, var(--k-charcoal-light) 100%);
}

.k-news-card__placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--k-pumpkin);
  opacity: 0.5;
}

.k-news-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 61, 76, 0.9) 0%, rgba(35, 61, 76, 0.2) 60%, transparent 100%);
  transition: background var(--k-transition);
}

.k-news-card:hover::after {
  background: linear-gradient(to top, rgba(253, 128, 46, 0.85) 0%, rgba(35, 61, 76, 0.3) 60%, transparent 100%);
}

.k-news-card__body {
  position: relative;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.k-news-card__meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.k-news-card__category {
  color: var(--k-pumpkin-light);
  font-weight: 600;
}

.k-news-card__body h3 {
  font-size: 1.15rem;
  color: var(--k-white);
  margin-bottom: 8px;
  line-height: 1.35;
}

.k-news-card__body p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.k-news-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--k-white);
  margin-top: 12px;
}

.k-news-card__read svg {
  width: 14px;
  height: 14px;
  transition: transform var(--k-transition);
}

.k-news-card:hover .k-news-card__read svg {
  transform: translateX(4px);
}

.k-news__more {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   CTA / CONTACT SECTION
   ============================================ */
.k-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.k-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253, 128, 46, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.k-cta h2 {
  color: var(--k-white);
  margin-bottom: 16px;
}

.k-cta p {
  max-width: 520px;
  margin: 0 auto 36px;
}

.k-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.k-cta__contact {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.k-cta__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.k-cta__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--k-pumpkin-light);
}

.k-cta__contact-item a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--k-transition);
}

.k-cta__contact-item a:hover {
  color: var(--k-pumpkin-light);
}

/* ============================================
   FOOTER
   ============================================ */
.k-footer {
  background: var(--k-charcoal-deep);
  padding: 64px 0 0;
}

.k-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.k-footer__brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.k-footer__logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--k-white);
  letter-spacing: -0.03em;
}

.k-footer__logo span {
  color: var(--k-pumpkin);
}

.k-footer h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.k-footer ul li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.k-footer ul a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color var(--k-transition);
  text-decoration: none;
}

.k-footer ul a:hover {
  color: var(--k-pumpkin-light);
}

.k-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.k-footer__social {
  display: flex;
  gap: 16px;
}

.k-footer__social a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--k-transition);
}

.k-footer__social a:hover {
  color: var(--k-pumpkin-light);
}

.k-footer__social svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   BLOG LISTING (index.php)
   ============================================ */
.k-blog-header {
  background: var(--k-charcoal);
  padding: 140px 0 80px;
  text-align: center;
}

.k-blog-header h1 {
  color: var(--k-white);
  margin-bottom: 12px;
}

.k-blog-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

.k-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.k-blog-section {
  padding: 80px 0;
}

/* Pagination */
.k-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.k-pagination a,
.k-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--k-transition);
}

.k-pagination a {
  color: var(--k-text-light);
  background: var(--k-offwhite);
  text-decoration: none;
}

.k-pagination a:hover {
  background: var(--k-pumpkin);
  color: var(--k-white);
}

.k-pagination span.current {
  background: var(--k-charcoal);
  color: var(--k-white);
}

/* ============================================
   SINGLE POST
   ============================================ */
.k-single-header {
  background: var(--k-charcoal);
  padding: 140px 0 56px;
}

.k-single-header h1 {
  color: var(--k-white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 700px;
}

.k-single__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.k-single-body {
  padding: 56px 0 40px;
}

.k-single-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 900px;
}

.k-single__sidebar-image img {
  width: 100%;
  border-radius: var(--k-radius);
  position: sticky;
  top: calc(var(--k-header-height) + 24px);
}

.k-single__content {
  max-width: none;
  padding: 0;
}

.k-single__content p:empty,
.k-single__content p.p2,
.k-single__content br + br {
  display: none;
}

.k-single__content {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.k-single__content h2 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.k-single__content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.k-single__content p {
  color: var(--k-text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.k-single__content blockquote {
  border-left: 3px solid var(--k-pumpkin);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--k-offwhite);
  border-radius: 0 var(--k-radius) var(--k-radius) 0;
}

.k-single__content blockquote p {
  color: var(--k-charcoal);
  font-style: italic;
}

.k-single__content img {
  border-radius: var(--k-radius);
  margin: 2em 0;
}

.k-single__content ul,
.k-single__content ol {
  padding-left: 1.5em;
  margin: 1em 0;
}

.k-single__content ul {
  list-style: disc;
}

.k-single__content ol {
  list-style: decimal;
}

.k-single__content li {
  margin-bottom: 0.5em;
  color: var(--k-text);
  line-height: 1.7;
}

.k-single__content a {
  color: var(--k-pumpkin);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.k-single__content pre {
  background: var(--k-charcoal);
  color: var(--k-offwhite);
  padding: 24px;
  border-radius: var(--k-radius);
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.9rem;
}

.k-single__content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
}

.k-single__nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.k-single__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--k-charcoal);
  padding: 16px 24px;
  border-radius: var(--k-radius);
  border: 1px solid var(--k-grey-100);
  transition: all var(--k-transition);
  text-decoration: none;
}

.k-single__nav a:hover {
  border-color: var(--k-pumpkin);
  color: var(--k-pumpkin);
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.k-page-header {
  background: var(--k-charcoal);
  padding: 140px 0 80px;
  text-align: center;
}

.k-page-header h1 {
  color: var(--k-white);
}

.k-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.k-page-content h2,
.k-page-content h3,
.k-page-content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.k-page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--k-text);
}

.k-page-content img {
  border-radius: var(--k-radius);
  margin: 2em 0;
}

.k-page-content ul,
.k-page-content ol {
  padding-left: 1.5em;
  margin: 1em 0;
}

.k-page-content ul { list-style: disc; }
.k-page-content ol { list-style: decimal; }

.k-page-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
  color: var(--k-text);
}

/* ============================================
   HERO WITH BACKGROUND IMAGE
   ============================================ */
.k-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.k-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.k-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35, 61, 76, 0.92) 0%, rgba(35, 61, 76, 0.75) 100%);
}

/* ============================================
   SERVICES SHOWCASE (image cards)
   ============================================ */
.k-services-showcase {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 40px;
}

.k-services-showcase--4col {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
}

.k-showcase-card {
  position: relative;
  border-radius: var(--k-radius-lg);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--k-white);
  transition: transform var(--k-transition);
}

.k-showcase-card:hover {
  transform: translateY(-4px);
  color: var(--k-white);
}

.k-showcase-card--wide {
  grid-row: 1 / 3;
  min-height: 500px;
}

.k-services-showcase--4col .k-showcase-card {
  min-height: 320px;
}

.k-showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.k-showcase-card:hover img {
  transform: scale(1.05);
}

.k-showcase-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 61, 76, 0.95) 0%, rgba(35, 61, 76, 0.4) 50%, rgba(35, 61, 76, 0.15) 100%);
  transition: background var(--k-transition);
}

.k-showcase-card:hover .k-showcase-card__overlay {
  background: linear-gradient(to top, rgba(253, 128, 46, 0.85) 0%, rgba(35, 61, 76, 0.3) 60%, transparent 100%);
}

.k-showcase-card__content {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.k-showcase-card__content h3 {
  color: var(--k-white);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.k-showcase-card__content p {
  color: var(--k-white);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   SÉRSMÍÐI HOME SECTION
   ============================================ */
.k-sersmidi-home__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.k-sersmidi-home__text h2 {
  color: var(--k-white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.k-client-banner-section {
  background: var(--k-white);
  padding: 56px 0;
  text-align: center;
}

.k-client-banner-section p {
  font-size: 0.85rem;
  color: var(--k-grey-400);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.k-client-banner__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.k-client-banner__logos img {
  height: 78px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--k-transition);
  opacity: 0.7;
}

.k-client-banner__logos img:hover {
  opacity: 1;
}

.k-sersmidi-home__image {
  border-radius: var(--k-radius-lg);
  overflow: hidden;
}

.k-sersmidi-home__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--k-radius-lg);
}

/* ============================================
   FEATURED POST (front page)
   ============================================ */
.k-featured-post {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--k-white);
  border-radius: var(--k-radius-lg);
  overflow: hidden;
  border: 1px solid var(--k-grey-100);
  margin-bottom: 40px;
  margin-top: 40px;
  text-decoration: none;
  color: inherit;
  transition: all var(--k-transition);
}

.k-featured-post:hover {
  border-color: transparent;
  box-shadow: var(--k-shadow-hover);
  color: inherit;
}

.k-featured-post__image {
  position: relative;
  overflow: hidden;
  background: var(--k-charcoal);
  height: 100%;
}

.k-featured-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.k-featured-post:hover .k-featured-post__image img {
  transform: scale(1.03);
}

.k-featured-post__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.k-featured-post__body h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color var(--k-transition);
}

.k-featured-post:hover .k-featured-post__body h2 {
  color: var(--k-pumpkin);
}

.k-featured-post__body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.k-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.k-empty-state {
  text-align: center;
  padding: 80px 0;
}

.k-empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--k-offwhite);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k-empty-state__icon svg {
  width: 28px;
  height: 28px;
  color: var(--k-grey-400);
}

.k-empty-state h3 {
  margin-bottom: 8px;
}

.k-empty-state p {
  color: var(--k-grey-400);
}

/* ============================================
   PAGE HERO (subpages)
   ============================================ */
.k-page-hero {
  background: var(--k-charcoal);
  padding: 140px 0 72px;
}

.k-page-hero h1 {
  color: var(--k-white);
  max-width: 700px;
}

.k-page-hero .section-label {
  color: var(--k-pumpkin-light);
}

.k-page-hero .section-label::before {
  background: var(--k-pumpkin-light);
}

.k-page-hero__sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 16px;
}

/* ============================================
   SERVICES PAGE — large cards
   ============================================ */
.k-services__grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.k-service-card--large {
  padding: 44px 36px;
}

.k-service-card--large h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.k-service-card--large p {
  margin-bottom: 16px;
}

.k-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.k-service-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--k-text-light);
  margin-bottom: 6px;
  line-height: 1.6;
}

.k-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--k-pumpkin);
  border-radius: 50%;
}

/* ============================================
   PRODUCTS PAGE — card grid
   ============================================ */
.k-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.k-product-card {
  background: var(--k-white);
  border-radius: var(--k-radius-lg);
  padding: 32px;
  border: 1px solid var(--k-grey-100);
  transition: all var(--k-transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.k-product-card:hover {
  border-color: var(--k-pumpkin);
  box-shadow: var(--k-shadow-hover);
  transform: translateY(-4px);
  color: inherit;
}

.k-product-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--k-pumpkin);
  background: var(--k-pumpkin-glow);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  width: fit-content;
}

.k-product-card__thumb {
  margin-bottom: 16px;
}

.k-product-card__thumb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}

.k-product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.k-product-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.k-product-card__link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--k-pumpkin);
  margin-top: 16px;
  transition: transform var(--k-transition);
}

.k-product-card:hover .k-product-card__link {
  transform: translateX(4px);
}

.k-section--grey .k-product-card {
  background: var(--k-white);
}

/* Product showcase grid (image cards) */
.k-product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.k-showcase-card--product {
  min-height: 280px;
}

.k-showcase-card__fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--k-charcoal) 0%, var(--k-charcoal-light) 100%);
}

.k-showcase-card__link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--k-white);
  margin-top: 10px;
  transition: transform var(--k-transition);
}

.k-showcase-card:hover .k-showcase-card__link {
  transform: translateX(4px);
}

.k-product-grid--home {
  grid-template-columns: repeat(4, 1fr);
}

.k-clients-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

.k-clients-grid--home .k-client-card p {
  display: none;
}

/* Service cards as links */
a.k-service-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.k-service-card:hover {
  color: inherit;
}

.k-section-header {
  margin-bottom: 40px;
}

/* ============================================
   SÉRSMÍÐI PAGE — process steps
   ============================================ */
.k-dev-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.k-dev-feature {
  position: relative;
}

.k-dev-feature__number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--k-pumpkin-glow);
  line-height: 1;
  margin-bottom: 16px;
  color: rgba(253, 128, 46, 0.15);
}

.k-dev-feature h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.k-dev-feature p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Clients grid */
.k-clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.k-client-card {
  background: var(--k-white);
  border-radius: var(--k-radius-lg);
  padding: 36px;
  text-align: center;
  border: 1px solid var(--k-grey-100);
  transition: all var(--k-transition);
}

.k-client-card:hover {
  border-color: var(--k-pumpkin);
  box-shadow: var(--k-shadow);
}

.k-client-card .k-dev__client-icon {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.k-client-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.k-client-card p {
  font-size: 0.88rem;
}

.k-client-card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.k-client-card--dark:hover {
  border-color: var(--k-pumpkin);
  background: rgba(255, 255, 255, 0.1);
}

.k-client-card--dark h3 {
  color: var(--k-white);
}

.k-client-card--dark p {
  color: rgba(255, 255, 255, 0.55);
}

.k-client-card__logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 16px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.k-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.k-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.k-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--k-offwhite);
  border-radius: var(--k-radius);
  border: 1px solid var(--k-grey-100);
  text-decoration: none;
  color: inherit;
  transition: all var(--k-transition);
}

a.k-contact-card:hover {
  border-color: var(--k-pumpkin);
  box-shadow: var(--k-shadow);
  color: inherit;
}

.k-contact-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--k-pumpkin-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k-contact-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--k-pumpkin);
}

.k-contact-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--k-grey-400);
  margin-bottom: 2px;
}

.k-contact-card__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--k-charcoal);
}

/* Right side */
.k-contact-message {
  background: var(--k-offwhite);
  border-radius: var(--k-radius-lg);
  padding: 40px;
}

.k-contact-message h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.k-contact-message p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.k-contact-message__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.k-contact-message__image img {
  width: 100%;
  border-radius: var(--k-radius);
  object-fit: cover;
  height: 220px;
}

/* Services strip */
.k-contact-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}

.k-contact-service {
  padding: 24px;
}

.k-contact-service svg {
  width: 28px;
  height: 28px;
  color: var(--k-pumpkin);
  margin-bottom: 12px;
}

.k-contact-service h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.k-contact-service p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.k-about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.k-about-story__text h2 {
  margin-bottom: 20px;
}

.k-about-story__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--k-text);
}

.k-about-story__image img {
  width: 100%;
  border-radius: var(--k-radius-lg);
  object-fit: cover;
  height: 360px;
}

/* Founders */
.k-founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}

.k-founders__image img {
  width: 100%;
  border-radius: var(--k-radius-lg);
  object-fit: cover;
}

.k-founder {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--k-grey-100);
}

.k-founder:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.k-founder h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.k-team-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--k-pumpkin);
  margin-bottom: 12px;
}

.k-team-card__info p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.k-team-card__contact {
  margin-top: 12px;
}

.k-team-card__contact a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--k-charcoal);
  text-decoration: none;
  transition: color var(--k-transition);
}

.k-team-card__contact a:hover {
  color: var(--k-pumpkin);
}

/* Award section */
.k-award {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.k-award__image img {
  width: 100%;
  border-radius: var(--k-radius-lg);
  object-fit: cover;
}

.k-award-badge {
  width: 56px;
  height: 56px;
  background: var(--k-pumpkin);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.k-award-badge svg {
  width: 28px;
  height: 28px;
  color: var(--k-white);
}

.k-award__text h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.k-award__text p {
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .k-about-story {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Scroll reveal */
.k-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.k-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .k-services__grid,
  .k-services__grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .k-products__split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .k-product-grid,
  .k-product-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }

  .k-product-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .k-dev__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .k-dev-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .k-hero__accent {
    display: none;
  }

  .k-services-showcase,
  .k-services-showcase--4col {
    grid-template-columns: 1fr 1fr;
  }

  .k-showcase-card--wide {
    grid-row: auto;
    min-height: 280px;
  }

  .k-sersmidi-home__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .k-contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .k-contact-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --k-header-height: 64px;
  }

  .k-section {
    padding: 72px 0;
  }

  .k-menu-toggle {
    display: flex;
  }

  .k-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--k-charcoal-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--k-transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  }

  .k-header__nav.active {
    transform: translateX(0);
  }

  .k-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .k-header__nav a,
  .k-nav-list a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .k-header__cta {
    margin-left: 0;
    margin-top: 12px;
  }

  .k-hero {
    min-height: 80vh;
  }

  .k-hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .k-services__grid {
    grid-template-columns: 1fr;
  }

  .k-news__grid,
  .k-blog-grid {
    grid-template-columns: 1fr;
  }

  .k-product-grid,
  .k-product-grid--home {
    grid-template-columns: 1fr;
  }

  .k-product-showcase-grid {
    grid-template-columns: 1fr;
  }

  .k-dev-features {
    grid-template-columns: 1fr;
  }

  .k-clients-grid {
    grid-template-columns: 1fr;
  }

  .k-services__grid--2col {
    grid-template-columns: 1fr;
  }

  .k-page-hero {
    padding: 110px 0 56px;
  }

  .k-services-showcase,
  .k-services-showcase--4col {
    grid-template-columns: 1fr;
  }

  .k-showcase-card {
    min-height: 200px;
  }

  .k-showcase-card--wide {
    min-height: 240px;
  }

  .k-sersmidi-home__image img {
    height: 260px;
  }

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

  .k-footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .k-cta__contact {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

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

  .k-single__nav {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .k-hero__actions {
    flex-direction: column;
  }

  .k-hero__actions .k-btn {
    text-align: center;
    justify-content: center;
  }
}
