/*
Theme Name: Duplex
Theme URI: https://duplex.lv/
Author: Duplex
Description: Independent one-page Duplex website migrated from Tilda.
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: duplex
*/

:root {
  color-scheme: light;
  --ink: #211b28;
  --muted: #554e5b;
  --purple: #594068;
  --purple-dark: #422c50;
  --soft: #f3f9f7;
  --line: #dce9e4;
  --page: #ffffff;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 10; background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 108px; }
.logo { display: block; flex: 0 0 auto; width: clamp(185px, 20vw, 220px); }
.logo img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.desktop-nav a, .mobile-nav a { text-decoration: none; font-weight: 600; }
.desktop-nav a:hover, .mobile-nav a:hover { color: #a368e2; }
@supports (-webkit-background-clip: text) {
  .desktop-nav a:hover, .mobile-nav a:hover {
    background-image: linear-gradient(90deg, #c66ace, #785fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.mobile-menu { display: none; }

section { scroll-margin-top: 32px; }
.hero { padding: 35px 0 72px; }
.hero-grid { display: flex; flex-direction: column; align-items: center; gap: 65px; }
.hero-copy { max-width: 1110px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--purple); font-weight: 700; letter-spacing: .11em; text-transform: uppercase; font-size: 13px; }
.hero h1 { margin: 0 0 27px; font-size: clamp(39px, 3.9vw, 50px); line-height: 1.18; letter-spacing: -.025em; }
.hero p:not(.eyebrow) { max-width: 925px; margin: 0 auto 23px; color: var(--muted); font-size: clamp(18px, 1.65vw, 21px); line-height: 1.65; }
.hero-photo { width: 100%; aspect-ratio: 1.85 / 1; object-fit: cover; object-position: center; border-radius: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 55px; padding: 14px 30px; border-radius: 14px; background: var(--purple); color: #fff; font-weight: 700; text-decoration: none; text-align: center; transition: background .2s ease, transform .2s ease; }
.button:hover { background: var(--purple-dark); transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #9a62c0; outline-offset: 3px; }

.process { padding: 20px 0 70px; background: #fff; }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 0; }
.process-grid > div { padding: clamp(38px, 5vw, 70px); background: var(--soft); border-radius: 22px 0 0 22px; }
.process h2, .section-heading h2 { margin: 0 0 22px; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.2; letter-spacing: -.025em; }
.process p, .section-heading p { margin: 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; }
.process img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; border-radius: 0 22px 22px 0; }

.services, .portfolio, .pricing { padding: 95px 0; }
.services { background: var(--soft); }
.section-heading { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.services .cards { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 770px; margin: auto; }
.service-card { padding: 0; }
.service-card h3 { margin: 0 0 13px; font-size: 21px; line-height: 1.35; }
.service-card p { margin: 0; color: var(--muted); }

.portfolio { background: #fff; }
.portfolio-card { overflow: hidden; border-radius: 20px; background: var(--soft); box-shadow: 0 8px 24px rgba(37, 26, 45, .045); }
.portfolio-card img { width: 100%; height: 235px; object-fit: cover; object-position: center top; }
.portfolio-card-body { display: flex; flex-direction: column; align-items: flex-start; min-height: 305px; padding: 26px; }
.portfolio-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.portfolio-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.portfolio-card .button { margin-top: auto; min-height: 42px; padding: 10px 17px; border-radius: 9px; font-size: 14px; }

.pricing { background: var(--soft); }
.price-card { display: flex; flex-direction: column; align-items: center; padding: 34px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; }
.price-card h3 { min-height: 60px; margin: 0 0 12px; font-size: 21px; line-height: 1.35; }
.price-card p { min-height: 72px; margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.price { margin: 0 0 20px; font-size: clamp(30px, 3vw, 40px); line-height: 1.2; font-weight: 700; }
.price-card ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.price-card li + li { margin-top: 7px; }

.contact { padding: 64px 0; background: #fff; text-align: center; }
.contact h2 { margin: 0 0 24px; font-size: clamp(30px, 3vw, 43px); }
.site-footer { padding: 32px 0; background: #fff; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.footer-row a { text-decoration: none; }

@media (max-width: 850px) {
  .header-row { min-height: 84px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; list-style: none; font-size: 29px; line-height: 1; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-nav { position: absolute; right: 0; top: calc(100% + 12px); display: grid; gap: 16px; min-width: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 35px rgba(37, 26, 45, .12); }
  .process-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 68px; }
  .hero-photo { max-height: 510px; aspect-ratio: 1.35 / 1; }
  .process-grid > div { border-radius: 20px 20px 0 0; }
  .process img { height: 370px; min-height: 0; border-radius: 0 0 20px 20px; }
  .cards { grid-template-columns: 1fr; }
  .portfolio-card-body { min-height: auto; }
  .price-card h3, .price-card p { min-height: 0; }
}

@media (max-width: 600px) {
  .wrap { width: min(calc(100% - 38px), var(--max)); }
  .header-row { min-height: 92px; }
  .logo { width: min(72vw, 225px); }
  .hero { padding: 52px 0 54px; }
  .hero-grid { gap: 36px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: 29px; line-height: 1.17; letter-spacing: 0; margin-bottom: 29px; }
  .hero p:not(.eyebrow) { font-size: 17px; line-height: 1.6; margin-bottom: 39px; }
  .hero .button { width: 100%; }
  .hero-photo { aspect-ratio: 1 / .8; border-radius: 16px; }
  .process { padding: 18px 0 48px; }
  .process-grid { gap: 24px; }
  .process-grid > div { padding: 34px 25px; border-radius: 16px; }
  .process h2, .section-heading h2 { font-size: 29px; }
  .process p, .section-heading p { font-size: 17px; }
  .process img { height: auto; aspect-ratio: 1.2 / 1; border-radius: 16px; }
  .services, .portfolio, .pricing { padding: 56px 0; }
  .section-heading { margin-bottom: 38px; }
  .services .cards { gap: 36px; }
  .service-card { padding: 0 6px; }
  .portfolio-card img { height: 215px; }
  .portfolio-card-body { padding: 26px; }
  .price-card { padding: 31px 24px; }
  .contact { padding: 54px 0; }
  .footer-row { flex-direction: column; text-align: center; gap: 10px; }
}
