/* =========================================================
   KleioNord — brand stylesheet
   Palette: Aegean Ink #1B3558 · Terracotta #C4622D ·
            Parchment #F7F3EE · Stone #9A8F84
   Font: Poppins
   ========================================================= */
:root {
  --ink: #1B3558;
  --terracotta: #C4622D;
  --parchment: #F7F3EE;
  --stone: #9A8F84;
  --white: #FFFFFF;
  --line: rgba(27, 53, 88, 0.12);
  --shadow: 0 10px 40px rgba(27, 53, 88, 0.08);
  --radius: 6px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-weight: 500; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.section-sub { color: var(--stone); max-width: 620px; margin: 10px 0 0; }
.muted { color: var(--stone); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand img { height: 40px; width: auto; }
.brand-name { font-size: 1.05rem; letter-spacing: 0.28em; color: var(--ink); font-weight: 500; white-space: nowrap; }
.brand-name .nord { color: var(--terracotta); }

.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a {
  color: var(--ink); font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.04em; text-decoration: none !important;
  border-bottom: 2px solid transparent; padding: 4px 0;
}
.main-nav a:hover { border-color: var(--terracotta); }

.lang-switch { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--stone);
  padding: 4px 10px; border-radius: 999px;
}
.lang-switch button.active { background: var(--ink); color: var(--parchment); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.5rem; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.hero-sub { margin: 22px 0 34px; max-width: 560px; color: rgba(27,53,88,0.78); font-size: 1.08rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { height: 300px; width: auto; opacity: 0.95; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-family: inherit; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em;
  cursor: pointer; text-decoration: none !important; transition: all 0.2s ease;
  border: 1.5px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--white); }
.section-head { margin-bottom: 48px; }
hr.rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- services ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
section.alt .card { background: var(--parchment); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.93rem; color: rgba(27,53,88,0.75); }
.card-num { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--terracotta); display: block; margin-bottom: 16px; }

/* ---------- areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.area-card {
  background: var(--parchment); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 20px 26px; text-align: center; text-decoration: none !important;
  color: var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; align-items: center;
}
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.area-card img { height: 84px; width: auto; object-fit: contain; margin-bottom: 18px; }
.area-card h3 { font-size: 1rem; margin-bottom: 8px; }
.area-card p { font-size: 0.8rem; color: var(--stone); flex: 1; }
.area-card .link { margin-top: 14px; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); }
.area-card.hidden-area { display: none; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.about-photo { position: relative; }
.about-photo img.main { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--terracotta); border-radius: var(--radius); z-index: -1;
}
.about-text p { margin-bottom: 18px; color: rgba(27,53,88,0.82); font-size: 0.97rem; }
.about-text .li-link { font-weight: 500; }

/* ---------- portfolio ---------- */
.portfolio-head { margin: 72px 0 30px; display: flex; align-items: baseline; gap: 20px; }
.portfolio-head h3 { font-size: 1.35rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
section.alt .pf-item { background: var(--parchment); }
.pf-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pf-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pf-item figcaption { padding: 16px 18px; font-size: 0.82rem; color: var(--stone); }

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video-item { background: var(--parchment); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-item video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.video-item figcaption { padding: 16px 18px; font-size: 0.82rem; color: var(--stone); }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; display: flex; flex-direction: column;
}
.price-card.featured { border: 1.5px solid var(--terracotta); position: relative; }
.price-card h3 { margin-bottom: 6px; }
.price { font-size: 1.7rem; font-weight: 500; color: var(--terracotta); margin: 10px 0 2px; }
.price-unit { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); margin-bottom: 18px; }
.price-card p.desc { font-size: 0.9rem; color: rgba(27,53,88,0.75); flex: 1; }
.pricing-note { margin-top: 28px; font-size: 0.82rem; color: var(--stone); text-align: center; }

/* ---------- contact ---------- */
.contact-box {
  background: var(--ink); color: var(--parchment); border-radius: var(--radius);
  padding: 70px 60px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
}
.contact-box .kicker { color: var(--terracotta); }
.contact-box h2 { color: var(--white); }
.contact-box p { color: rgba(247,243,238,0.75); margin-top: 12px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list a { color: var(--parchment); font-weight: 500; }
.contact-list a:hover { color: var(--terracotta); }
.contact-list .lbl { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,243,238,0.5); margin-bottom: 2px; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer img { height: 34px; }
.site-footer .tagline { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--stone); }
.site-footer .rights { font-size: 0.78rem; color: var(--stone); }

/* ---------- sub-pages ---------- */
.subhero { padding: 90px 0 70px; text-align: center; }
.subhero img.element { height: 170px; width: auto; margin: 0 auto 30px; }
.subhero p.intro { max-width: 560px; margin: 18px auto 0; color: var(--stone); font-size: 1.05rem; }
.subpage-body { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.subpage-body p { margin-bottom: 22px; color: rgba(27,53,88,0.8); }
.subpage-cta { text-align: center; padding: 40px 0 90px; }
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.06em; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-3, .pricing-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .hero .wrap, .about-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; } .hero-art img { height: 170px; }
  .contact-box { grid-template-columns: 1fr; padding: 48px 36px; }
  .about-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  .areas-grid, .cards-3, .pricing-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--parchment); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 20px; gap: 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .brand-name { font-size: 0.9rem; letter-spacing: 0.2em; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0; }
}
