/*
Theme Name: PAALER Group
Description: PAALER GROUP bilingual corporate portal.
Version: 0.3.4
Requires at least: 6.8
Requires PHP: 8.3
Text Domain: paaler-group
License: GNU General Public License v2 or later
*/
@import url("assets/fonts/noto-sans-sc/index.css");

:root {
  --paper: #f5f5f5;
  --stone: #e8e7e4;
  --ink: #2c2a29;
  --muted: #57534f;
  --charcoal: #474443;
  --silver: #c9caca;
  --green: #114034;
  --blue: #003984;
  --line: #d9d7d3;
  --gutter: clamp(18px, 4.65vw, 104px);
  font-family: "Noto Sans SC Variable", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #786f63; outline-offset: 4px; }
.wrap { margin-inline: auto; width: min(calc(100% - var(--gutter) * 2), 1500px); }
.skip { position: absolute; left: 16px; top: 12px; padding: 12px; z-index: 10; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; column-gap: 24px; }
.signature { justify-self: start; }
.signature img { width: clamp(192px, 20.4vw, 330px); height: auto; }
.main-nav, .footer-inner nav { display: flex; gap: clamp(18px, 2.6vw, 44px); align-items: center; }
.main-nav > a, .business-nav summary { position: relative; display: block; padding-block: 25px; font-size: clamp(14px, 1.03vw, 16px); font-weight: 550; white-space: nowrap; }
.main-nav > a:hover, .main-nav > a[aria-current] { color: var(--charcoal); }
.main-nav > a[aria-current]::after { content: ""; position: absolute; bottom: 14px; inset-inline: 0; height: 2px; background: var(--blue); }
.business-nav { position: relative; }
.business-nav summary { cursor: pointer; list-style: none; }
.business-nav summary::-webkit-details-marker { display: none; }
.business-nav summary::after { display: inline-block; width: 5px; height: 5px; margin-left: 8px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); content: ""; }
.business-nav[open] summary::after { transform: translateY(1px) rotate(225deg); }
.business-nav ul { position: absolute; top: 100%; left: 0; min-width: 210px; margin: 0; padding: 6px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 24px #2c2a291c; list-style: none; }
.business-nav li a { display: block; padding: 11px 12px; font-size: 13px; white-space: nowrap; }
.business-nav li + li { border-top: 1px solid var(--line); }
.business-nav li a:hover, .business-nav li a:focus-visible { background: var(--paper); }
.languages { display: flex; border: 1px solid var(--silver); padding: 3px; justify-self: end; border-radius: 28px; font-size: 12px; font-weight: 650; }
.languages a { padding: 7px 11px; border-radius: 28px; white-space: nowrap; }
.languages a[aria-current] { background: var(--blue); color: #fff; }
.languages a:not([aria-current]):hover { background: var(--stone); }

.hero { position: relative; isolation: isolate; min-height: clamp(420px, 31.65vw, 620px); background: #eeedeb; }
.hero-head { position: relative; z-index: 1; padding-block: clamp(49px, 3.75vw, 78px) 78px; }
.kicker, .brand { color: var(--charcoal); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.hero .kicker { font-size: 13px; font-weight: 550; letter-spacing: .23em; }
.hero .kicker::after, .solutions h2::after { display: inline-block; width: 47px; height: 2px; margin-left: 15px; vertical-align: middle; background: var(--blue); content: ""; }
h1 { margin-top: 6px; font-size: clamp(32px, 3.25vw, 51px); font-weight: 650; line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 { width: fit-content; max-width: 100%; margin-top: clamp(16px, 1.5vw, 26px); font-size: clamp(34px, 3.14vw, 60px); font-weight: 720; text-wrap: initial; }
.hero-desc { max-width: clamp(330px, 28vw, 470px); margin-top: clamp(15px, 1.45vw, 24px); color: #383634; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.58; }
.hero-photo { position: absolute; inset: 0; }
.hero-scene { position: relative; height: 100%; overflow: hidden; background: var(--stone); }
.hero-scene::after { position: absolute; inset: 0; background: linear-gradient(90deg, #f3f1efc9 0%, #f3f1efda 24%, #f3f1ef9c 33%, #f3f1ef00 46%); content: ""; }
.hero-scene .hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-edge { position: absolute; z-index: 2; left: 0; bottom: -1px; display: block; width: 100%; height: clamp(50px, 6.5vw, 112px); pointer-events: none; }
.hero-edge-blue { fill: var(--blue); opacity: .62; }
.hero-edge-paper { fill: var(--paper); }

.solutions { position: relative; margin-top: -15px; padding-block: 0 clamp(28px, 2.7vw, 50px); scroll-margin-top: 12px; }
.solutions h2 { margin-bottom: clamp(16px, 1.3vw, 23px); font-size: clamp(24px, 2.12vw, 37px); font-weight: 720; letter-spacing: -.035em; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.36vw, 24px); }
.card { --slant: clamp(15px, 1.7vw, 29px); --accent: var(--blue); position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: #ebebeb; }
.card::after { position: absolute; bottom: 0; left: 0; width: 28%; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 100%, 0 100%); content: ""; }
.card-image { position: relative; overflow: hidden; height: clamp(118px, 11.45vw, 205px); background: var(--stone); }
.card-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:is(.card-carpet, .card-flooring) .card-image img { filter: saturate(.82) brightness(.94); }
.card-scent .card-image img { object-position: center 30%; }
.card:hover img { transform: scale(1.06); }
.card-copy { position: relative; flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 7px 8px; min-width: 0; margin-top: calc(-1 * var(--slant)); padding: var(--slant) clamp(12px, 1.4vw, 24px) 21px; background: linear-gradient(120deg, #f7f7f7, #e9e9e9); clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%); }
.brand { color: inherit; font-size: 10px; letter-spacing: .10em; line-height: 1.3; }
.card-title { margin-top: 4px; font-size: clamp(15px, 1.3vw, 23px); letter-spacing: -.028em; line-height: 1.14; font-weight: 720; }
.card-action { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; color: var(--ink); }
.card-action span:last-child { font-size: 16px; line-height: 1; }
.card:hover .card-action span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.card-carpet { --accent: #2b5e95; }
.card-flooring { --accent: #4c78a7; }
.card-scent { --accent: #617e3b; color: var(--green); }

footer { background: linear-gradient(145deg, transparent 78%, #33577f 78%, #294463 100%), linear-gradient(125deg, #202f43, #2c3e55); color: white; }
.footer-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; }
.footer-inner img { width: clamp(170px, 17vw, 270px); height: auto; }
.footer-inner nav { gap: 0; }
.footer-inner nav a { padding-inline: clamp(10px, 1.65vw, 29px); }
.footer-inner nav a + a { border-left: 1px solid #ffffff46; }
.footer-inner a:hover { text-decoration: underline; }
.back { white-space: nowrap; }
.company { max-width: 920px; padding-block: 36px 48px; }
.company-section { padding: clamp(18px, 3vw, 32px); margin-top: 14px; background: #fff; border: 1px solid var(--line); }
.company-section:target { border-color: var(--charcoal); }
.company-section h2 { font-size: clamp(24px, 3vw, 35px); letter-spacing: -.035em; }
.company-section p { margin-top: 12px; max-width: 62ch; color: var(--muted); line-height: 1.7; }
.company-link { display: inline-flex; gap: 12px; margin-top: 16px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 14px; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { justify-content: center; gap: 18px; }
  .hero-scene::after { background: linear-gradient(90deg, #f3f1eff0 0%, #f3f1efd9 34%, #f3f1ef00 64%); }
}
@media (max-width: 1470px) {
  .card-copy { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .card-action { margin-top: auto; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 132px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; padding-top: 10px; column-gap: 10px; }
  .signature { min-width: 0; }
  .signature img { width: clamp(160px, 54vw, 230px); }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 3px 16px; flex-wrap: wrap; margin-top: 5px; }
  .main-nav > a, .business-nav summary { font-size: 12px; padding-block: 10px; }
  .main-nav > a[aria-current]::after { bottom: 4px; }
  .languages { grid-row: 1; grid-column: 2; }
}
@media (max-width: 800px) {
  .hero { min-height: 0; }
  .hero-head { padding-block: 25px 24px; }
  .hero h1 { margin-top: 12px; }
  .hero-desc { margin-top: 12px; max-width: 56ch; }
  .hero-photo { position: relative; }
  .hero-scene { height: auto; aspect-ratio: 2.2; }
  .hero-scene::after { display: none; }
  .hero-edge { height: 45px; }
  .solutions { margin-top: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .footer-inner { flex-wrap: wrap; padding-block: 10px; }
  .footer-inner nav { order: 3; width: 100%; flex-wrap: wrap; gap: 8px 16px; }
  .footer-inner nav a { padding: 0; }
  .footer-inner nav a + a { border-left: 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(28px, 8.6vw, 38px); }
  .hero-scene { aspect-ratio: 1.8; }
  .hero-scene .hero-image { object-position: 85% center; }
  .card-scent .card-image img { object-position: 72% 30%; }

  .card-copy { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* WordPress integration and pages with no standalone prototype. */
.business-nav summary[aria-current="page"] { box-shadow: inset 0 -2px var(--blue); }
.business-unavailable { display: block; padding: 11px 12px; font-size: 13px; color: var(--muted); }
.businesses-page { padding-block: clamp(32px, 5vw, 76px); }
.businesses-page > p { margin-block: 16px 28px; max-width: 60ch; line-height: 1.65; }
.businesses-page .card-summary { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
@media (max-width: 480px) {
  .main-nav > a, .business-nav summary { min-height: 40px; }
  .business-nav ul { max-width: 85vw; }
}
.businesses-page > .kicker { margin-block: 0 12px; }
