/* Theme layout additions (base visual styles live in style.css) */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: #003440;
  display: block;
  font-size: 1rem;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 16px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  z-index: 100001;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-branding .site-title,
.site-branding a {
  color: #e3b66b;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.primary-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  color: #e3b66b;
  outline: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
}

.content-area {
  padding: 3rem 0 4rem;
}

.page-header {
  margin-bottom: 2rem;
}

.entry-title {
  color: #e3b66b;
  margin-bottom: 0.75rem;
}

.entry-content,
.page-intro {
  color: #e0e0e0;
  line-height: 1.7;
}

.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card,
.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
}

.service-card a,
.project-card a {
  color: inherit;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr);
  gap: 2rem;
  align-items: start;
}

.contact-form label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
}

.contact-form button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.header-phone:focus-visible {
  outline: 2px solid #e3b66b;
  outline-offset: 2px;
}

.scroll-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.scroll-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner[hidden] {
  display: none !important;
}

.front-page-article {
  min-height: 40vh;
}

/* —— Readability / typography —— */
body {
  font-size: 1.125rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.entry-content,
.page-intro,
.front-page-article,
.contact-details,
.kt-calculator {
  color: #f0f4f5;
}

.entry-content p,
.page-intro p,
.front-page-article p {
  max-width: 42rem;
  margin-bottom: 1.15rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.front-page-article h1,
.front-page-article h2,
.front-page-article h3,
.page-header .entry-title {
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #f5d9a8;
  text-wrap: balance;
}

.entry-content ul,
.front-page-article ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.entry-content li,
.front-page-article li {
  margin-bottom: 0.45rem;
}

.entry-content a,
.page-intro a,
.footer-links a,
.contact-details a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wp-block-button__link,
.btn-primary,
.btn-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}

/* Language switcher (Polylang) */
.lang-top {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 1rem 0;
}

.kt-lang-switch ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kt-lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.kt-lang-switch li.is-active a,
.kt-lang-switch a:hover,
.kt-lang-switch a:focus-visible {
  border-color: #e3b66b;
  color: #e3b66b;
  outline: none;
}

@media (max-width: 768px) {
  body {
    font-size: 1.05rem;
  }

  .entry-content p,
  .page-intro p,
  .front-page-article p {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-navigation {
    width: 100%;
    display: none;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation .menu {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

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

/* —— Homepage composition —— */
.front-page {
  padding: 0;
}

.hp-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(227, 182, 107, 0.18), transparent 60%),
    linear-gradient(115deg, #000 0%, #003440 48%, #004d5a 100%);
}

.hp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
  padding-top: clamp(3rem, 8vh, 5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.hp-hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #e3b66b;
  animation: hp-rise 0.7s ease both;
}

.hp-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f2f2f2;
  max-width: 22ch;
  text-wrap: balance;
  animation: hp-rise 0.7s ease 0.08s both;
}

.hp-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: #b8c5c8;
  font-size: 1.15rem;
  animation: hp-rise 0.7s ease 0.16s both;
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: hp-rise 0.7s ease 0.24s both;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.hp-btn:focus-visible {
  outline: 2px solid #e3b66b;
  outline-offset: 3px;
}

.hp-btn--primary {
  background: linear-gradient(135deg, #e3b66b, #ff9800);
  color: #111;
}

.hp-btn--ghost {
  background: transparent;
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hp-btn--ghost:hover {
  border-color: #e3b66b;
  color: #e3b66b;
}

.hp-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: hp-fade 1s ease 0.2s both;
}

.hp-hero__logo {
  width: min(280px, 70%);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(227, 182, 107, 0.25));
  animation: hp-glow 4s ease-in-out infinite;
}

.hp-hero__mark {
  width: min(220px, 55vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 5rem;
  font-weight: 700;
  color: #003440;
  background: linear-gradient(145deg, #e3b66b, #ff9800);
  animation: hp-glow 4s ease-in-out infinite;
}

.hp-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.hp-section__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.hp-section__head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #e3b66b;
  line-height: 1.2;
}

.hp-section__head p {
  margin: 0;
  color: #b8c5c8;
  font-size: 1.1rem;
}

.hp-services {
  background: linear-gradient(180deg, rgba(0, 52, 64, 0.35), transparent);
}

.hp-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hp-service a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.hp-service a:hover,
.hp-service a:focus-visible {
  color: #e3b66b;
  padding-left: 0.35rem;
  outline: none;
}

.hp-service h3 {
  margin: 0;
  grid-column: 1;
  font-size: 1.25rem;
  color: inherit;
}

.hp-service p {
  margin: 0;
  grid-column: 1;
  color: #b8c5c8;
  font-size: 1rem;
  max-width: 36rem;
}

.hp-service__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #e3b66b;
  font-weight: 700;
  white-space: nowrap;
}

.hp-about__text {
  margin: 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: #e8eef0;
}

.hp-cta {
  border-top: 1px solid rgba(227, 182, 107, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.hp-cta__inner .hp-hero__actions {
  animation: none;
}

.hp-extra {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes hp-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hp-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hp-glow {
  0%,
  100% {
    filter: drop-shadow(0 12px 40px rgba(227, 182, 107, 0.2));
  }
  50% {
    filter: drop-shadow(0 16px 48px rgba(227, 182, 107, 0.4));
  }
}

@media (max-width: 860px) {
  .hp-hero {
    min-height: auto;
  }

  .hp-hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hp-hero__visual {
    order: -1;
  }

  .hp-hero__logo,
  .hp-hero__mark {
    width: min(160px, 42vw);
  }

  .hp-hero__mark {
    font-size: 3.5rem;
  }

  .hp-hero__title {
    max-width: none;
  }

  .hp-service a {
    grid-template-columns: 1fr;
  }

  .hp-service__price {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__brand,
  .hp-hero__title,
  .hp-hero__lead,
  .hp-hero__actions,
  .hp-hero__visual,
  .hp-hero__logo,
  .hp-hero__mark {
    animation: none;
  }

  .hp-btn:hover,
  .hp-service a:hover {
    transform: none;
  }
}
