/*
Theme Name: Alurenard
Theme URI: https://alurenard.com
Author: Alurenard
Author URI: https://alurenard.com
Description: One-page WordPress theme for Alurenard — manufacturer of aluminium constructions. Dark, minimal, multilingual (Polylang), CF7 ready, with custom "Realizacje" post type and ACF support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alurenard
Tags: one-page, dark, minimal, multilingual, custom-logo, custom-menu, translation-ready
*/

:root{
  --alu-bg:#0f0f0f;
  --alu-bg-alt:#111214;
  --alu-surface:#1a1a1e;
  --alu-accent:#9ba3a8;
  --alu-white:#e8ecef;
  --alu-border:rgba(255,255,255,.08);
  --alu-text-muted:rgba(255,255,255,.5);
  --alu-nav-h:64px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:var(--alu-nav-h)}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background:var(--alu-bg);
  color:var(--alu-white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}

/* NAV */
.alu-nav{
  position:fixed;top:0;left:0;right:0;height:var(--alu-nav-h);z-index:50;
  background:rgba(15,15,15,.92);backdrop-filter:blur(20px);
  border-bottom:.5px solid var(--alu-border);
}
.alu-nav__inner{max-width:1440px;margin:0 auto;padding:0 clamp(2rem,6vw,7rem);height:100%;display:flex;align-items:center;justify-content:space-between}
.alu-logo{font-size:1.25rem;font-weight:300;letter-spacing:.25em;text-transform:uppercase;color:var(--alu-white);display:flex;align-items:center}
.alu-logo img{width:220px;height:auto}
.alu-nav__right{display:flex;align-items:center;gap:2rem}
.alu-menu{display:flex;gap:2rem;list-style:none}
.alu-menu a{font-size:.8125rem;letter-spacing:.06em;text-transform:uppercase;color:var(--alu-text-muted);transition:color .2s}
.alu-menu a:hover{color:var(--alu-white)}
.alu-lang{display:flex;gap:.25rem;list-style:none;padding:0;margin:0}
.alu-lang li{list-style:none}
.alu-lang a, .alu-lang span{
  padding:.25rem .5rem;font-size:.6875rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase;
  color:var(--alu-text-muted);border:1px solid transparent;border-radius:3px;
}
.alu-lang .current-lang, .alu-lang .lang-item-current a{color:var(--alu-accent);border-color:var(--alu-accent)}
.alu-burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;width:28px;height:28px;justify-content:center}
.alu-burger span{display:block;width:100%;height:1px;background:var(--alu-white);transition:.3s}

/* HERO */
.alu-hero{min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;position:relative;overflow:hidden;
  background-image:linear-gradient(rgba(155,163,168,.04) 1px, transparent 1px),linear-gradient(90deg, rgba(155,163,168,.04) 1px, transparent 1px);
  background-size:60px 60px;
}
.alu-hero__inner{max-width:800px;padding:0 1.5rem}
.alu-hero h1{font-size:clamp(2rem,5vw,4rem);font-weight:200;line-height:1.15;margin-bottom:1.5rem}
.alu-hero p{font-size:clamp(1rem,2vw,1.25rem);font-weight:300;color:var(--alu-text-muted);max-width:560px;margin:0 auto 2.5rem}
.alu-btn{
  display:inline-block;padding:.875rem 2rem;font-size:.8125rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
  color:var(--alu-white);border:.5px solid var(--alu-accent);background:transparent;cursor:pointer;transition:all .2s;
}
.alu-btn:hover{background:var(--alu-accent);color:var(--alu-bg)}

/* SECTIONS */
.alu-section{padding:clamp(4rem,10vw,8rem) 0}
.alu-container{max-width:1440px;margin:0 auto;padding:0 clamp(2rem,6vw,7rem)}
.alu-h2{font-size:clamp(1.5rem,3vw,2.25rem);font-weight:200;letter-spacing:.06em;text-transform:uppercase;margin-bottom:3rem;position:relative}
.alu-h2::after{content:"";display:block;width:48px;height:1px;background:var(--alu-accent);margin-top:1rem}

/* GRID */
.alu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}

/* CARD */
.alu-card{
  background:var(--alu-surface);border:.5px solid var(--alu-border);overflow:hidden;
  transition:border-color .2s;cursor:pointer;
}
.alu-card:hover{border-color:var(--alu-accent)}
.alu-card__img{aspect-ratio:16/10;background:var(--alu-bg);overflow:hidden}
.alu-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.alu-card:hover .alu-card__img img{transform:scale(1.03)}
.alu-card__body{padding:1.25rem}
.alu-tag{display:inline-block;font-size:.6875rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--alu-accent);padding:.125rem .625rem;border:.5px solid var(--alu-accent);margin-bottom:.75rem}
.alu-card__title{font-size:1rem;font-weight:400;color:var(--alu-white);margin-bottom:.5rem;line-height:1.4}
.alu-card__desc{font-size:.875rem;color:var(--alu-text-muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.alu-card__more{display:inline-block;margin-top:.75rem;font-size:.75rem;color:var(--alu-accent);letter-spacing:.06em;text-transform:uppercase}

/* SHOW MORE */
.alu-showmore{display:flex;justify-content:center;margin-top:2.5rem}
.alu-hidden{display:none}

/* OFERTA */
.alu-feature{padding:2rem;border:.5px solid var(--alu-border);background:var(--alu-surface)}
.alu-feature h3{font-size:1.125rem;font-weight:400;color:var(--alu-white);margin-bottom:.75rem;letter-spacing:.04em}
.alu-feature p{font-size:.9375rem;color:var(--alu-text-muted)}

/* ABOUT */
.alu-about{display:grid;grid-template-columns:1fr;gap:3rem;align-items:center}
@media (min-width:768px){.alu-about{grid-template-columns:1fr 1fr}}
.alu-about p{font-size:1rem;color:var(--alu-text-muted);margin-bottom:1rem;line-height:1.8}

/* CONTACT */
.alu-contact{display:grid;grid-template-columns:1fr;gap:3rem}
@media (min-width:768px){.alu-contact{grid-template-columns:1fr 1.5fr}}
.alu-contact-info p{margin-bottom:1rem;color:var(--alu-text-muted)}
.alu-contact-info strong{color:var(--alu-white);display:block;font-weight:400;margin-bottom:.25rem;letter-spacing:.04em;text-transform:uppercase;font-size:.75rem}
.wpcf7-form input, .wpcf7-form textarea{
  width:100%;padding:.875rem 1rem;background:var(--alu-surface);border:.5px solid var(--alu-border);
  color:var(--alu-white);font-family:inherit;font-size:.9375rem;margin-bottom:1rem;border-radius:0;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus{outline:none;border-color:var(--alu-accent)}
.wpcf7-form textarea{min-height:140px;resize:vertical}
.wpcf7-form input[type=submit]{
  background:transparent;color:var(--alu-white);border:.5px solid var(--alu-accent);
  padding:.875rem 2rem;text-transform:uppercase;letter-spacing:.08em;font-size:.8125rem;cursor:pointer;width:auto;
}
.wpcf7-form input[type=submit]:hover{background:var(--alu-accent);color:var(--alu-bg)}

/* MODAL */
.alu-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:1rem}
.alu-modal.is-open{display:flex}
.alu-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.85);backdrop-filter:blur(8px)}
.alu-modal__content{position:relative;z-index:1;width:100%;max-width:960px;max-height:90vh;overflow-y:auto;background:var(--alu-bg);border:.5px solid var(--alu-border)}
.alu-modal__close{position:absolute;top:1rem;right:1rem;z-index:2;width:40px;height:40px;background:none;border:0;color:var(--alu-text-muted);cursor:pointer;font-size:1.5rem}
.alu-modal__close:hover{color:var(--alu-white)}
.alu-modal__main{aspect-ratio:16/9;background:var(--alu-surface);overflow:hidden}
.alu-modal__main img{width:100%;height:100%;object-fit:cover}
.alu-modal__thumbs{display:flex;gap:.5rem;padding:.75rem 1.5rem;overflow-x:auto;background:var(--alu-surface);border-bottom:.5px solid var(--alu-border)}
.alu-modal__thumbs button{flex:0 0 64px;width:64px;height:64px;background:none;border:0;padding:0;cursor:pointer;opacity:.4;transition:opacity .2s}
.alu-modal__thumbs button.active{opacity:1;outline:1px solid var(--alu-accent)}
.alu-modal__thumbs img{width:100%;height:100%;object-fit:cover}
.alu-modal__body{padding:1.5rem 2rem}
.alu-modal__body h2{font-size:1.5rem;font-weight:300;color:var(--alu-white);margin:1rem 0}
.alu-modal__body p{color:var(--alu-text-muted);line-height:1.7}
.alu-modal__nav{display:flex;align-items:center;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:.5px solid var(--alu-border)}
.alu-modal__nav button{padding:.5rem 1rem;background:none;border:.5px solid var(--alu-border);color:var(--alu-text-muted);text-transform:uppercase;font-size:.75rem;letter-spacing:.08em;cursor:pointer}
.alu-modal__nav button:hover{color:var(--alu-white)}

/* FOOTER */
.alu-footer{padding:2rem 0;text-align:center;border-top:.5px solid var(--alu-border)}
.alu-footer p{font-size:.75rem;color:var(--alu-text-muted);letter-spacing:.04em}

/* Content area */
.alu-content{font-size:1rem;color:var(--alu-text-muted);line-height:1.8}
.alu-content p{margin-bottom:1rem}
.alu-content h2,.alu-content h3,.alu-content h4{color:var(--alu-white);margin:1.5rem 0 .75rem;font-weight:300}
.alu-content img{margin:1.5rem 0}
.alu-content a{color:var(--alu-accent);text-decoration:underline}

/* RESPONSIVE */
.alu-nav__overlay{display:contents}/* transparent wrapper on desktop */

@media (max-width:767px){
  .alu-nav__overlay{display:none}
  .alu-burger{display:flex}

  .alu-nav.is-open .alu-nav__overlay{
    display:flex;flex-direction:column;
    position:absolute;top:var(--alu-nav-h);left:0;right:0;
    background:var(--alu-bg);border-bottom:.5px solid var(--alu-border);
    padding:2rem 1.5rem 1.5rem;gap:1.5rem;
  }
  .alu-nav.is-open .alu-menu{display:flex;flex-direction:column;gap:1.5rem}
  .alu-nav.is-open .alu-lang{display:flex;flex-direction:row;justify-content:center;gap:.25rem}
}

/* Accessibility */
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
