/*
Theme Name: ZENRI Europe
Theme URI: https://www.zhengrui-tech.com
Author: ZENRI Technology S.L.
Description: Tema corporativo bilingüe para ZENRI Europe.
Version: 1.0.1
Text Domain: zenri-europe
*/

:root {
  --navy: #071625;
  --navy-2: #0b2239;
  --cyan: #00c8e8;
  --white: #f8fbfd;
  --steel: #7e91a3;
  --ink: #0d1924;
  --line: #d9e1e7;
  --background: #f8fbfd;
  --foreground: #0d1924;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  height: 88px;
  padding: 0 clamp(24px, 5vw, 72px);
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(7,22,37,.98), rgba(7,22,37,.75), transparent);
  color: white;
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-lockup { display: grid; gap: 3px; }
.brand-lockup strong { font-size: 29px; line-height: .9; letter-spacing: .22em; font-weight: 300; }
.brand-lockup small { color: var(--cyan); font-size: 8px; line-height: 1; letter-spacing: .52em; font-weight: 700; }
.logo i { width: 30px; height: 32px; position: relative; display: block; }
.logo i b { position: absolute; left: 0; width: 30px; height: 3px; background: var(--cyan); transform-origin: left; }
.logo i b:nth-child(1) { top: 5px; transform: rotate(-22deg); }
.logo i b:nth-child(2) { top: 15px; }
.logo i b:nth-child(3) { top: 25px; transform: rotate(22deg); }

.site-header nav { display: flex; align-items: center; gap: clamp(20px, 2.7vw, 42px); font-size: 14px; }
.site-header nav > a:not(.nav-contact) { position: relative; padding: 12px 0; }
.site-header nav > a:not(.nav-contact)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 2px;
  background: var(--cyan); transition: right .25s ease;
}
.site-header nav > a:not(.nav-contact):hover::after { right: 0; }
.language { display: flex; align-items: center; gap: 7px; }
.language button { border: 0; background: none; color: #b8c4ce; padding: 8px 0; cursor: pointer; }
.language button.active { color: var(--cyan); font-weight: 700; }
.nav-contact { border: 1px solid var(--cyan); padding: 13px 24px; border-radius: 3px; transition: .25s; }
.nav-contact:hover { background: var(--cyan); color: var(--navy); }
.menu-toggle { display: none; }

.hero {
  min-height: 720px;
  height: min(82vh, 840px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
  background: var(--navy);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 1.4s ease-out both; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,22,37,.98) 0%, rgba(7,22,37,.91) 30%, rgba(7,22,37,.42) 61%, rgba(7,22,37,.12) 100%);
}
.hero-content { width: min(620px, 48vw); margin-left: clamp(24px, 5vw, 72px); position: relative; z-index: 3; padding-top: 70px; }
.eyebrow, .kicker { margin: 0 0 24px; color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: .2em; }
h1 { margin: 0; max-width: 720px; font-size: clamp(48px, 5vw, 76px); line-height: .98; letter-spacing: -.045em; animation: rise .7s ease-out both; }
.hero-intro { margin: 28px 0 0; max-width: 540px; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; color: #dbe5ec; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; }
.button { min-height: 54px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; border-radius: 3px; font-weight: 600; transition: .25s ease; }
.button span { transition: transform .25s; }
.button:hover span { transform: translateX(6px); }
.button.primary { background: var(--cyan); color: var(--navy); border: 1px solid var(--cyan); }
.button.primary:hover { background: #32dbf2; box-shadow: 0 10px 30px rgba(0,200,232,.22); }
.button.secondary { border: 1px solid var(--cyan); color: white; }
.button.secondary:hover { background: rgba(0,200,232,.1); }
.location { margin: 32px 0 0; color: #c4d0d9; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.location span { color: var(--cyan); font-size: 22px; }
.tech-lines { position: absolute; right: 6vw; top: 150px; z-index: 2; width: 24vw; height: 360px; opacity: .75; }
.tech-lines i { position: absolute; border-color: var(--cyan); border-style: solid; filter: drop-shadow(0 0 4px rgba(0,200,232,.4)); }
.tech-lines i:nth-child(1) { width: 85%; height: 30%; top: 0; right: 0; border-width: 1px 1px 0 0; }
.tech-lines i:nth-child(2) { width: 55%; height: 55%; top: 22%; right: 18%; border-width: 0 1px 1px 0; }
.tech-lines i:nth-child(3) { width: 70%; height: 1px; top: 65%; right: 0; border-top-width: 1px; }
.tech-lines i:nth-child(4) { width: 9px; height: 9px; top: 64%; right: 68%; background: var(--cyan); border: 0; }

.category-rail { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); background: white; }
.category { min-height: 118px; padding: 24px 22px; border-right: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; position: relative; }
.category::before { content: ""; position: absolute; top: 0; left: 0; right: 100%; height: 3px; background: var(--cyan); transition: right .3s; }
.category:hover::before { right: 0; }
.category-number { color: var(--cyan); font: 700 11px/1 Arial; margin-top: 4px; }
.category strong { display: block; font-size: 15px; }
.category small { display: block; margin-top: 8px; color: #687885; line-height: 1.4; }

.section { padding: 112px clamp(24px, 5vw, 72px); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-heading h2, .process h2, .company h2, .contact-section h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); letter-spacing: -.04em; line-height: 1.04; }
.section-heading > p { margin: 0; color: #586a78; font-size: 18px; line-height: 1.7; }
.led-collection { background: white; }
.led-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.led-card { min-height: 420px; position: relative; overflow: hidden; background: var(--navy); color: white; }
.led-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: transform .55s ease, opacity .35s ease; }
.led-card:hover img { transform: scale(1.035); opacity: 1; }
.led-card::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(7,22,37,.95)); }
.led-overlay { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: end; }
.led-overlay > span { color: var(--cyan); font-size: 11px; }
.led-overlay p { margin: 0 0 8px; color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.led-overlay h3 { margin: 0 0 10px; font-size: 30px; }
.led-overlay small { display: block; color: #d5e0e8; font-size: 14px; line-height: 1.5; }

.solar-collection { background: var(--navy); color: white; }
.light-heading > p { color: #b9c7d1; }
.solar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solar-card { background: #0b2239; border: 1px solid #203b52; overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.solar-card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.solar-visual { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.solar-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.solar-card:hover img { transform: scale(1.035); }
.solar-visual > span { position: absolute; left: 18px; top: 18px; padding: 8px 10px; background: var(--cyan); color: var(--navy); font-size: 11px; font-weight: 700; }
.solar-copy { padding: 26px 28px 28px; }
.solar-copy > p { margin: 0 0 9px; color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.solar-copy h3 { margin: 0 0 12px; font-size: 27px; }
.solar-copy > span { display: block; min-height: 70px; color: #b9c7d1; line-height: 1.55; }
.solar-copy a { margin-top: 22px; padding-top: 17px; border-top: 1px solid #2a4257; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.solar-copy a b { color: var(--cyan); font-size: 19px; }
.switch-collection { background: #eef3f6; }
.switch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.switch-card { background: var(--navy); color: white; overflow: hidden; }
.switch-visual { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.switch-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.switch-card:hover .switch-visual img { transform: scale(1.035); }
.switch-visual > span { position: absolute; top: 18px; left: 18px; padding: 8px 10px; background: var(--cyan); color: var(--navy); font-size: 11px; font-weight: 700; }
.switch-copy { padding: 26px 28px 30px; }
.switch-copy p { margin: 0 0 9px; color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.switch-copy h3 { margin: 0 0 12px; font-size: 28px; letter-spacing: .08em; font-weight: 500; }
.switch-copy > span { display: block; color: #b9c7d1; line-height: 1.55; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: white; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(7,22,37,.1); }
.product-image-wrap { height: 340px; background: #eef3f6; position: relative; overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover img { transform: scale(1.035); }
.product-image-wrap span { position: absolute; top: 18px; left: 18px; background: var(--navy); color: var(--cyan); padding: 8px 11px; font-size: 11px; }
.product-copy { padding: 28px; }
.product-copy h3 { margin: 0; font-size: 24px; }
.product-copy p { color: #637482; line-height: 1.65; min-height: 78px; }
.product-copy a { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-weight: 700; font-size: 14px; }
.product-copy a span { color: var(--cyan); font-size: 20px; }

.catalog-section { padding: 104px clamp(24px, 7vw, 110px); display: grid; grid-template-columns: minmax(270px, .7fr) 1.3fr; gap: clamp(50px, 8vw, 120px); align-items: center; background: #e9f0f4; }
.catalog-cover { max-width: 430px; position: relative; box-shadow: 0 28px 60px rgba(7,22,37,.2); }
.catalog-cover img { width: 100%; aspect-ratio: 595 / 842; object-fit: cover; }
.catalog-cover > span { position: absolute; right: -16px; bottom: 26px; padding: 11px 15px; background: var(--cyan); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.catalog-copy h2 { margin: 0; max-width: 760px; font-size: clamp(40px, 4.7vw, 66px); line-height: 1.02; letter-spacing: -.045em; }
.catalog-copy > p:not(.kicker) { margin: 28px 0 0; max-width: 680px; color: #536572; font-size: 18px; line-height: 1.7; }
.catalog-facts { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.catalog-facts > span { min-width: 145px; padding: 16px 18px; background: white; border: 1px solid #d2dde4; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.catalog-facts b { color: var(--cyan); font-size: 10px; }
.catalog-actions { margin-top: 34px; display: flex; align-items: center; gap: 26px; }
.catalog-download { min-height: 54px; display: inline-flex; align-items: center; gap: 28px; border-bottom: 2px solid var(--navy); font-weight: 700; }
.catalog-download span { color: var(--cyan); font-size: 20px; }

.process { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--navy); color: white; min-height: 720px; }
.process-photo { min-height: 620px; overflow: hidden; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
.process-copy { padding: clamp(60px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.process-copy > p:not(.kicker) { color: #b9c7d1; line-height: 1.75; font-size: 17px; }
.process-copy ol { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #2a4257; }
.process-copy li { padding: 22px 0; border-bottom: 1px solid #2a4257; display: flex; gap: 18px; font-weight: 600; }
.process-copy li:nth-child(odd) { border-right: 1px solid #2a4257; }
.process-copy li:nth-child(even) { padding-left: 22px; }
.process-copy li span { color: var(--cyan); font-size: 11px; }

.section-heading.compact { grid-template-columns: 1fr; }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 300px 300px; gap: 14px; }
.project-card { position: relative; overflow: hidden; background: var(--navy-2); color: white; }
.project-card:first-child { grid-row: 1 / 3; }
.project-card:last-child { grid-column: 2 / 4; }
.project-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s, opacity .4s; }
.project-card:hover img { transform: scale(1.04); opacity: 1; }
.project-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(7,22,37,.9)); }
.project-card div { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; display: flex; align-items: end; justify-content: space-between; }
.project-card span { color: var(--cyan); font-size: 11px; }
.project-card h3 { margin: 0; font-size: 26px; }

.company { display: grid; grid-template-columns: 1fr 1fr; background: #e9f0f4; }
.company-copy { padding: clamp(60px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.company-copy > p:not(.kicker) { color: #536572; line-height: 1.75; font-size: 17px; }
.company > img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #c9d5dc; }
.facts div { padding: 24px 12px 0 0; }
.facts strong { display: block; font-size: 27px; color: var(--navy); }
.facts span { display: block; margin-top: 5px; color: #657783; font-size: 12px; }

.contact-section { padding: 90px clamp(24px, 5vw, 72px); background: var(--cyan); color: var(--navy); display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.contact-section > div { max-width: 850px; }
.contact-section .kicker { color: var(--navy); }
.contact-section p:not(.kicker) { font-size: 18px; line-height: 1.6; }
.contact-options { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
.contact-options a { font-weight: 700; }
.contact-options a span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.button.primary.light { background: var(--navy); color: white; border-color: var(--navy); min-width: 190px; }

footer { background: #04101b; color: white; padding: 58px clamp(24px, 5vw, 72px) 30px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.5fr auto auto; gap: 32px; align-items: center; padding-bottom: 48px; }
.footer-top .brand-lockup strong { font-size: 23px; }
.footer-top p { color: #9baab6; font-size: 13px; }
.footer-top > a { color: #cfdae2; font-size: 14px; }
.footer-emails { display: grid; gap: 8px; color: #cfdae2; font-size: 14px; }
.footer-bottom { padding-top: 28px; border-top: 1px solid #203344; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; color: #7f919f; font-size: 12px; align-items: center; }
.footer-bottom div { display: flex; gap: 14px; }
.footer-bottom strong { color: white; }
.footer-bottom address { font-style: normal; text-align: center; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.035); } to { transform: scale(1); } }

@media (max-width: 1120px) {
  .menu-toggle { display: grid; gap: 7px; border: 0; background: transparent; padding: 10px; z-index: 22; }
  .menu-toggle span { display: block; width: 26px; height: 2px; background: white; }
  .site-header nav { display: none; position: absolute; top: 0; left: 0; right: 0; padding: 110px 28px 36px; background: var(--navy); flex-direction: column; align-items: stretch; }
  .site-header nav.open { display: flex; }
  .site-header nav > a, .language { font-size: 18px; }
  .language { justify-content: center; }
  .nav-contact { text-align: center; }
  .hero { min-height: 760px; height: 86vh; }
  .hero-content { width: calc(100% - 48px); }
  .hero-shade { background: linear-gradient(90deg, rgba(7,22,37,.96), rgba(7,22,37,.65)); }
  .tech-lines { display: none; }
  .category-rail { overflow-x: auto; grid-template-columns: repeat(6, minmax(220px, 1fr)); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .solar-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .switch-grid { grid-template-columns: 1fr; }
  .switch-card { display: grid; grid-template-columns: 1fr 1fr; }
  .product-card { display: grid; grid-template-columns: 1fr 1fr; }
  .catalog-section { grid-template-columns: .75fr 1.25fr; gap: 50px; }
  .process, .company { grid-template-columns: 1fr; }
  .process-photo { min-height: 480px; }
  .company > img { min-height: 480px; }
  .footer-top, .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-bottom address { text-align: left; }
}

@media (max-width: 640px) {
  .site-header { height: 76px; }
  .brand-lockup strong { font-size: 23px; }
  .hero { min-height: 730px; }
  .hero-content { margin-left: 22px; padding-top: 45px; }
  h1 { font-size: 48px; }
  .hero-intro { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .product-card { display: block; }
  .catalog-section { grid-template-columns: 1fr; padding-top: 78px; padding-bottom: 78px; }
  .catalog-cover { width: min(78vw, 390px); margin: 0 auto; }
  .catalog-copy h2 { font-size: 42px; }
  .catalog-actions { align-items: stretch; flex-direction: column; }
  .catalog-download { justify-content: space-between; }
  .led-grid { grid-template-columns: 1fr; }
  .led-card { min-height: 360px; }
  .switch-card { display: block; }
  .product-image-wrap { height: 290px; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 330px); }
  .project-card:first-child, .project-card:last-child { grid-row: auto; grid-column: auto; }
  .process-photo { min-height: 360px; }
  .process-copy { padding: 64px 24px; }
  .process-copy ol { grid-template-columns: 1fr; }
  .process-copy li:nth-child(odd) { border-right: 0; }
  .process-copy li:nth-child(even) { padding-left: 0; }
  .company-copy { padding: 70px 24px; }
  .company > img { min-height: 360px; }
  .facts { gap: 10px; }
  .facts strong { font-size: 22px; }
  .contact-section { align-items: stretch; flex-direction: column; }
  .contact-options { flex-direction: column; gap: 18px; }
  .footer-top, .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom div { flex-direction: column; gap: 5px; }
  .footer-bottom address { line-height: 1.7; }
}

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