/*
Theme Name: European Windows
Theme URI: https://kupujwusa.com/
Author: European Windows
Author URI: https://kupujwusa.com/
Description: Modern, trustworthy storefront for European Windows — Drutex, Kowalski Okna, and Aluplast systems sold in the USA.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: european-windows
License: GNU General Public License v2 or later
*/

:root {
  --navy: #0b1f3a;
  --navy-2: #16324f;
  --ink: #1c1917;
  --muted: #5c6570;
  --gold: #c4a35a;
  --gold-2: #a8883f;
  --cream: #f7f5f1;
  --paper: #fffdf9;
  --line: #e4ddd2;
  --ok: #1f6b4a;
  --err: #9b2c2c;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
  --serif: "Noto Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
}

@font-face {
  font-family: "Noto Serif";
  src: url("assets/fonts/NotoSerif-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/NotoSans-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand .custom-logo-link {
  display: flex;
  align-items: center;
}

.brand img,
.custom-logo {
  height: 58px;
  width: 58px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav .current-menu-item a { color: var(--gold-2); }

.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  padding: 13px 22px;
  font: 600 0.92rem/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover,
.wp-block-button__link:hover { background: var(--navy-2); }

.btn-gold { background: var(--gold); color: var(--navy) !important; }
.btn-gold:hover { background: var(--gold-2); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--line);
}

/* Hero */
.hero {
  background:
    linear-gradient(105deg, rgba(11,31,58,0.94) 0%, rgba(11,31,58,0.78) 48%, rgba(11,31,58,0.55) 100%),
    url("assets/logo-mark.png") right 8% center / min(42vw, 460px) no-repeat,
    var(--navy);
  color: #fff;
  padding: 88px 0 92px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 680px; }

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.hero h1,
.page-hero h1,
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #e8e4dc;
  max-width: 38rem;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
  max-width: 560px;
}

.hero-stats div {
  border-top: 1px solid rgba(196,163,90,0.55);
  padding-top: 12px;
}

.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.hero-stats span { color: #c9c3b8; font-size: 0.86rem; }

/* Sections */
section { padding: 72px 0; }

.section-kicker {
  color: var(--gold-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 14px;
}

.section-intro { color: var(--muted); max-width: 44rem; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Value / why Europe */
.value-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.value-copy,
.trust-card { padding: 36px 40px; }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  position: absolute;
  left: 0;
  top: 16px;
}

.trust-card { background: var(--navy); color: #fff; }
.trust-card h3 { font-family: var(--serif); font-size: 1.6rem; margin-top: 0; }
.trust-card p { color: #d9d3c8; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.product-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #ece7de;
}

.product-card .partner,
.product-card h3,
.product-card p,
.product-card .spec-table,
.product-card .btn {
  margin-left: 24px;
  margin-right: 24px;
}

.product-card .partner { margin-top: 16px; }

.product-photo-detail {
  height: auto;
  max-height: 360px;
  margin-bottom: 18px;
}

.catalog-group {
  font-family: var(--serif);
  color: var(--navy);
  margin: 36px 0 12px;
  font-size: 1.35rem;
}

.partner-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.window-line {
  border: 1px solid var(--line);
  padding: 14px 16px 8px;
  margin: 0 0 14px;
  background: #fff;
}

.window-line legend {
  font-family: var(--serif);
  color: var(--navy);
  padding: 0 6px;
}

.beeasly-credit {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.86rem;
}

.beeasly-credit a { color: var(--gold); }

.product-card .partner {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 700;
}

.product-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--navy);
  margin: 6px 0 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 14px 0 18px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  color: var(--muted);
  font-weight: 500;
  width: 46%;
}

.product-card .btn { margin-top: auto; align-self: flex-start; }

/* Partners */
.partners {
  background: var(--navy);
  color: #fff;
}

.partners .section-title { color: #fff; }
.partners .section-intro { color: #d4cec3; }

.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.partner-card {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 28px;
  background: rgba(255,255,255,0.03);
}

.partner-card h3 { font-family: var(--serif); margin-top: 0; }

/* Tilt and turn */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.figure-box {
  background: var(--navy);
  color: #fff;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.figure-box strong { font-family: var(--serif); font-size: 1.8rem; display: block; }
.figure-box span { color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }

/* Form */
.estimate {
  background:
    linear-gradient(180deg, #efeae2 0%, var(--cream) 100%);
}

.form-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.ew-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
}

.ew-form fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

.ew-form legend {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }

.notice {
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.notice-ok { background: #e8f6ee; border-color: #b7deC6; color: var(--ok); }
.notice-err { background: #fdecec; border-color: #f0c2c2; color: var(--err); }

/* Page chrome */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 52px 0 46px;
}

.page-hero p { color: #d7d1c6; max-width: 40rem; }

.entry { padding: 48px 0 72px; }
.entry .panel { padding: 32px; }

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* Footer */
.site-footer {
  background: #081526;
  color: #cfc8bc;
  padding: 48px 0 28px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.site-footer a { color: #eee8dc; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  color: #8d8790;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .value-grid,
  .product-grid,
  .partner-grid,
  .partner-grid-3,
  .split,
  .form-shell,
  .footer-grid,
  .hero-stats,
  .fields { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-block; }

  .site-nav { display: none; width: 100%; }
  .site-header.is-open .site-nav { display: block; padding-bottom: 16px; }
  .site-header.is-open .site-nav ul { flex-direction: column; align-items: flex-start; }
  .header-inner { flex-wrap: wrap; min-height: 72px; }

  .hero {
    background-position: right -40px bottom -40px;
    padding: 56px 0 64px;
  }

  .brand img,
  .custom-logo { height: 46px; width: 46px; }

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