/*
Theme Name: Forge Europe
Theme URI: https://eu.forgewindows.com
Author: Forge Windows
Description: A multilingual, responsive WordPress theme for European windows and doors.
Version: 1.1.0
Text Domain: forge-europe
*/

:root {
  --ink: #261b0d;
  --ink-2: #5c4630;
  --paper: #fbf6ee;
  --white: #fff;
  --sage: #e6c28f;
  --forest: #ce801c;
  --forest-2: #6b3d08;
  --copper: #ce801c;
  --line: rgba(54, 31, 8, .15);
  --shadow: 0 24px 70px rgba(89, 52, 8, .16);
  --radius: 22px;
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section--white { background: var(--white); }
.section--dark { color: var(--white); background: var(--forest-2); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--forest);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; content: ""; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow { color: #ffe1b5; }
h1, h2, h3, h4 { margin: 0 0 .55em; font-weight: 650; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 6.3rem); }
h2 { font-size: clamp(2.15rem, 4.1vw, 4.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.2em; }
.lead { color: var(--ink-2); font-size: clamp(1.08rem, 1.55vw, 1.35rem); line-height: 1.65; }
.section--dark .lead { color: #f7e7d0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .65fr); gap: 56px; align-items: end; margin-bottom: 52px; }
.section-head > * { margin-bottom: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--copper);
  color: #241707;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: #e49a3c; }
.btn--outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.42); }
.btn--outline:hover { color: var(--ink); background: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-weight: 750; }
.text-link::after { content: "\2197"; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px,-3px); }

/* Header */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(255,255,255,.16); background: rgba(107,61,8,.95); color: var(--white); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { display: grid; width: 38px; height: 38px; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; border: 1px solid rgba(255,255,255,.7); }
.brand-mark i { display: block; background: rgba(255,255,255,.85); }
.brand-copy strong { display: block; font-size: .95rem; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
.brand-copy small { display: block; margin-top: 4px; color: #f0d1a8; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 25px); margin: 0; padding: 0; list-style: none; }
.main-nav a { color: #fff4e5; font-size: .86rem; font-weight: 650; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #ffd28e; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-switch summary { cursor: pointer; list-style: none; padding: 8px 10px; color: #f7e7d0; font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { position: absolute; top: calc(100% + 16px); right: 0; width: 190px; max-height: 340px; overflow: auto; margin: 0; padding: 8px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow); list-style: none; }
.lang-switch li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .82rem; }
.lang-switch li a:hover { background: var(--paper); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 22px; height: 2px; margin: 5px auto; content: ""; background: currentColor; }

/* Hero */
.hero { position: relative; min-height: min(820px, calc(100vh - 78px)); overflow: hidden; color: var(--white); background: radial-gradient(circle at 74% 35%, rgba(255,202,126,.28), transparent 24%), linear-gradient(120deg,#3c2205 0%,#7e4809 53%,#ce801c 100%); }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(40,21,2,.58), transparent 62%); }
.hero-inner { position: relative; display: grid; min-height: inherit; grid-template-columns: minmax(0, .92fr) minmax(420px, .8fr); gap: 70px; align-items: center; padding: 70px 0; }
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.hero-copy h1 span { color: #ffbd68; }
.hero-copy .lead { max-width: 660px; color: #f9ead7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 54px; }
.hero-proof strong { display: block; font-size: 1.45rem; }
.hero-proof span { color: #e9caa1; font-size: .78rem; }
.window-visual { position: relative; justify-self: end; width: min(490px, 100%); aspect-ratio: .86; padding: 22px; border: 16px solid #35200b; background: #d7a25d; box-shadow: -25px 35px 80px rgba(45,23,2,.38); }
.window-visual::before, .window-visual::after { position: absolute; z-index: 2; content: ""; background: #3a230c; }
.window-visual::before { top: 0; bottom: 0; left: 48%; width: 11px; }
.window-visual::after { top: 58%; right: 0; left: 0; height: 11px; }
.window-scene { position: absolute; inset: 22px; overflow: hidden; background: linear-gradient(#f0c98f 0 47%,#f7ead6 47% 55%,#c58a39 55% 67%,#d7b178 67%); }
.window-scene::before { position: absolute; top: 13%; right: 8%; width: 60%; height: 40%; content: ""; clip-path: polygon(50% 0,100% 35%,83% 35%,83% 100%,17% 100%,17% 35%,0 35%); background: #e9e4d8; box-shadow: inset 0 -18px #a69070; }
.window-scene::after { position: absolute; right: -16%; bottom: -12%; width: 130%; height: 42%; content: ""; border-radius: 50% 50% 0 0; background: linear-gradient(145deg,#8f560d,#ce801c); }
.hero-note { position: absolute; z-index: 4; right: -24px; bottom: 42px; width: 210px; padding: 18px 20px; border-left: 3px solid var(--copper); background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--shadow); }
.hero-note strong { display: block; font-size: .86rem; }
.hero-note span { color: var(--ink-2); font-size: .74rem; }

/* Cards and modules */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); align-items: center; }
.trust-item { min-height: 105px; display: flex; align-items: center; padding: 24px 28px; border-left: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; border-left: 0; color: var(--ink-2); font-size: .85rem; }
.trust-item strong { font-size: .84rem; letter-spacing: .03em; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.card { position: relative; display: flex; min-height: 390px; overflow: hidden; flex-direction: column; justify-content: flex-end; padding: 30px; border-radius: var(--radius); background: linear-gradient(145deg,#f4e3c8,#d5a35d); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; }
.card:nth-child(2n) { background: linear-gradient(145deg,#f5dcc0,#ce801c); }
.card:nth-child(3n) { background: linear-gradient(145deg,#ecd2aa,#b56a0f); }
.card::before { position: absolute; inset: 20px 22px 130px; content: ""; border: 9px solid rgba(54,31,8,.88); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.card::after { position: absolute; top: 20px; bottom: 130px; left: 50%; width: 7px; content: ""; background: rgba(54,31,8,.88); }
.card-content { position: relative; z-index: 3; padding: 21px; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.card-content p { margin-bottom: 0; color: var(--ink-2); font-size: .88rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag { padding: 5px 9px; border-radius: 999px; background: rgba(206,128,28,.12); color: #8a5007; font-size: .69rem; font-weight: 750; }
.split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(45px,7vw,100px); align-items: center; }
.feature-list { display: grid; gap: 12px; margin-top: 32px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature strong { display: block; margin-bottom: 3px; }
.feature p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.feature-num { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--forest); color: var(--white); font-size: .75rem; font-weight: 800; }
.performance-panel { position: relative; min-height: 560px; padding: 50px; overflow: hidden; border-radius: 30px; color: var(--white); background: var(--forest); }
.performance-panel::after { position: absolute; right: -12%; bottom: -26%; width: 70%; aspect-ratio: 1; content: ""; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.05), 0 0 0 90px rgba(255,255,255,.04); }
.metric { position: relative; z-index: 2; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.metric strong { display: block; color: #ffd08a; font-size: clamp(2rem,4vw,3.8rem); line-height: 1; }
.metric span { color: #f3dcc0; font-size: .85rem; }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 20px; }
.project-card { position: relative; min-height: 480px; overflow: hidden; padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg,#dcaa64,#8f560d); color: var(--white); }
.project-card:nth-child(2) { background: linear-gradient(160deg,#efc78c,#9b5c0c); }
.project-card:nth-child(3) { background: linear-gradient(160deg,#d7963e,#6f3f08); }
.project-card::before { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 42%,rgba(47,25,3,.9)); }
.project-card::after { position: absolute; top: 17%; right: 10%; left: 10%; height: 42%; content: ""; border: 10px solid rgba(255,255,255,.62); border-bottom-width: 15px; }
.project-card-content { position: absolute; z-index: 2; right: 28px; bottom: 26px; left: 28px; }
.project-card small { color: #f4ddbd; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote { padding: clamp(28px,4vw,48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.quote-mark { color: var(--copper); font: 700 3.2rem/1 Georgia,serif; }
.quote blockquote { margin: 12px 0 30px; font-size: clamp(1.05rem,1.6vw,1.3rem); line-height: 1.55; }
.quote cite { color: var(--ink-2); font-size: .82rem; font-style: normal; }
.cta-band { position: relative; overflow: hidden; padding: clamp(60px,8vw,100px) 0; color: var(--white); background: var(--forest); }
.cta-band::after { position: absolute; top: -120%; right: -8%; width: 52%; aspect-ratio: 1; content: ""; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.04),0 0 0 140px rgba(255,255,255,.03); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { max-width: 760px; margin-bottom: 0; }

/* Internal pages */
.page-hero { padding: clamp(82px,10vw,140px) 0 clamp(70px,8vw,110px); color: var(--white); background: linear-gradient(120deg,var(--forest-2),var(--forest)); }
.page-hero .lead { max-width: 760px; color: #f4dfc3; }
.breadcrumbs { margin-bottom: 28px; color: #eac99e; font-size: .78rem; }
.content-wrap { max-width: 820px; margin: 0 auto; }
.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 1.5em; font-size: clamp(1.8rem,3vw,3rem); }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul { padding-left: 1.3em; }
.entry-content a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.archive-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.archive-toolbar a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .8rem; font-weight: 700; }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.news-thumb { min-height: 220px; background: linear-gradient(140deg,#f0d5ad,#ce801c); }
.news-body { padding: 26px; }
.news-body time { color: var(--forest); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-body h3 { margin-top: 10px; }
.pagination { margin-top: 42px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination span { display: grid; min-width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--white); }
.pagination .current { background: var(--forest); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px,7vw,90px); }
.contact-list { display: grid; gap: 15px; margin-top: 34px; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item small { display: block; color: var(--ink-2); }
.contact-item strong { font-size: 1.05rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(26px,4vw,48px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.field--full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 750; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fbfbf9; padding: 13px 14px; color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(206,128,28,.14); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--ink-2); font-size: .73rem; }
.form-success { margin-bottom: 22px; padding: 15px 18px; border-radius: 10px; background: #fff0d8; color: #704108; }
.hp-field { position: absolute !important; left: -9999px !important; }
.spec-table { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 35px 0; overflow: hidden; border-radius: 14px; background: var(--line); }
.spec { padding: 22px; background: var(--white); }
.spec small { display: block; color: var(--ink-2); }
.spec strong { display: block; margin-top: 5px; }

/* Footer */
.site-footer { padding: 72px 0 28px; color: #f7e8d3; background: #2d1904; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 44px; padding-bottom: 52px; }
.footer-intro { max-width: 360px; color: #d8b98f; }
.footer-title { margin-bottom: 16px; color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #e1c39b; font-size: .86rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); color: #b99363; font-size: .75rem; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { position: fixed; top: 78px; right: 0; bottom: 0; width: min(420px,100vw); padding: 30px; transform: translateX(102%); background: var(--forest-2); transition: transform .25s ease; }
  .menu-open .main-nav { transform: translateX(0); }
  .main-nav ul { align-items: flex-start; flex-direction: column; gap: 5px; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 12px 0; font-size: 1rem; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr .62fr; gap: 20px; }
  .window-visual { transform: translateX(70px); }
  .trust-inner { grid-template-columns: repeat(4,1fr); }
  .trust-item:first-child { display: none; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.2fr repeat(2,1fr); }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  :root { --container: min(100% - 28px, 1180px); }
  .header-inner { min-height: 70px; }
  .main-nav { top: 70px; }
  .brand-copy small { display: none; }
  .section-head, .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { min-height: auto; }
  .hero-inner { display: block; padding: 74px 0 65px; }
  .hero-copy { max-width: 100%; }
  .hero-copy .lead { overflow-wrap: anywhere; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; width: 100%; }
  .hero-proof > div { min-width: 0; }
  .hero-proof span { display: block; line-height: 1.35; overflow-wrap: anywhere; }
  .window-visual { width: 82%; margin: 55px 0 0 auto; transform: none; }
  .hero-note { right: auto; left: -20px; }
  .hero-proof { gap: 22px; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { min-height: 78px; padding: 18px; border-bottom: 1px solid var(--line); }
  .card-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card:first-child { grid-column: auto; }
  .quote-grid { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  h1 { font-size: clamp(2.55rem,13vw,4rem); }
  .brand-copy strong { font-size: .8rem; }
  .header-actions { gap: 3px; }
  .lang-switch summary { padding-inline: 5px; }
  .hero-actions .btn { width: 100%; }
  .hero-copy .lead { overflow-wrap: anywhere; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; width: 100%; }
  .hero-proof > div { min-width: 0; }
  .hero-proof span { display: block; line-height: 1.35; overflow-wrap: anywhere; }
  .window-visual { width: 96%; border-width: 11px; }
  .hero-note { bottom: 18px; }
  .card-grid, .news-grid, .spec-table { grid-template-columns: 1fr; }
  .card { min-height: 360px; }
  .project-card { min-height: 420px; }
  .contact-form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > * { grid-column: auto !important; }
  .footer-bottom { flex-direction: column; }
}
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .main-nav { margin-right: auto; margin-left: 0; }
[dir="rtl"] .lang-switch ul { right: auto; left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
