/* =========================================================
   ANDRÉS SPATOLA — PORTFOLIO LAYOUT.CSS
   Structural chrome: header, nav, footer, hero, grids, sections.
   ========================================================= */

header.site-header{
  position:fixed;
  top:0; left:0;
  width:100%;
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 50px;
  border-bottom:1px solid var(--line);
  background:rgba(10,9,8,0.78);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  z-index:100;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
}

.logo img{
  height:38px;
  width:auto;
  object-fit:contain;
}

.logo span{
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:.3em;
  font-size:.68rem;
  color:var(--text);
}

nav.site-nav{
  display:flex;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}

nav.site-nav a{
  font-family:'IBM Plex Mono', monospace;
  font-size:.68rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  transition:.2s;
}

nav.site-nav a:hover,
nav.site-nav a.active{
  color:var(--rust-bright);
}

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

/* HERO */
.hero{
  min-height:70vh;
  display:flex;
  align-items:center;
  padding:calc(var(--header-h) + 50px) 8% 70px;
  gap:70px;
}

/* PAGE HERO (sub-pages) */
.page-hero{
  padding:calc(var(--header-h) + 60px) 8% 50px;
  border-bottom:1px solid var(--line);
}

.page-hero h1{
  font-size:clamp(1.8rem, 4vw, 2.6rem);
  margin:14px 0 16px;
}

.breadcrumb{
  display:flex;
  gap:8px;
  align-items:center;
}

.breadcrumb a{
  color:var(--muted);
}

.breadcrumb a:hover{
  color:var(--rust-bright);
}

/* SECTIONS */
section.block{
  padding:80px 8%;
  border-top:1px solid var(--line);
}

section.block.tight{
  padding:50px 8%;
}

.block-inner{
  max-width:1180px;
  margin:0 auto;
}

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

.grid.grid-2{
  grid-template-columns:repeat(2,1fr);
}

/* BUTTONS */
a.button, button.button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:24px;
  padding:13px 22px;
  border:1px solid var(--line-strong);
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:.16em;
  font-size:.7rem;
  text-transform:uppercase;
  color:var(--text);
  background:transparent;
  cursor:pointer;
  transition:.25s;
  border-radius:var(--radius);
}

a.button:hover, button.button:hover{
  border-color:var(--rust-bright);
  color:var(--rust-bright);
}

a.button.primary{
  background:var(--rust);
  border-color:var(--rust);
  color:#fff;
}

a.button.primary:hover{
  background:var(--rust-bright);
  border-color:var(--rust-bright);
  color:#fff;
}

/* FORMS */
form{
  margin-top:26px;
  max-width:640px;
}

input, textarea{
  width:100%;
  padding:14px;
  margin-bottom:12px;
  background:var(--bg-panel);
  border:1px solid var(--line);
  color:var(--text);
  outline:none;
  font-family:'Inter', sans-serif;
  font-size:.92rem;
  border-radius:var(--radius);
}

input::placeholder, textarea::placeholder{
  color:var(--muted);
}

textarea{
  min-height:120px;
}

input:focus, textarea:focus{
  border-color:var(--line-strong);
}

/* =========================================================
   LANGUAGE SWITCHER
   Same class contract as the SPATOLA company site's
   layout.css (.lang-switch / [data-lang-switch]) so either
   site's header markup and lang-switch.js drop in unchanged.
   This site ships English-only by default — the markup is
   present and styled so a language row can be enabled here
   later, or so this layout.css can be reused as-is on a
   multilingual page, without touching the CSS.
   ========================================================= */
.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:'IBM Plex Mono', monospace;
  font-size:.64rem;
  letter-spacing:.12em;
  margin-left:6px;
  padding-left:16px;
  border-left:1px solid var(--line);
}

.lang-switch button{
  background:none;
  border:none;
  color:var(--muted);
  cursor:pointer;
  font-family:inherit;
  font-size:inherit;
  letter-spacing:inherit;
  padding:4px 2px;
  transition:.2s;
}

.lang-switch button:hover,
.lang-switch button.active{
  color:var(--rust-bright);
}

/* FOOTER */
footer.site-footer{
  padding:60px 8% 40px;
  border-top:1px solid var(--line);
  text-align:center;
}

footer.site-footer .foot-grid{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:26px;
  margin-bottom:26px;
  font-family:'IBM Plex Mono', monospace;
  font-size:.66rem;
  letter-spacing:.16em;
  text-transform:uppercase;
}

footer.site-footer .foot-grid a{
  color:var(--muted);
}

footer.site-footer .foot-grid a:hover{
  color:var(--rust-bright);
}

footer.site-footer .legal{
  font-family:'IBM Plex Mono', monospace;
  font-size:.62rem;
  letter-spacing:.2em;
  color:#5a5650;
}

/* SOCIAL ICON ROW */
footer.site-footer .foot-social{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-bottom:26px;
}

footer.site-footer .foot-social a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--muted);
  transition:.2s;
}

footer.site-footer .foot-social a:hover{
  border-color:var(--rust-bright);
  color:var(--rust-bright);
}

footer.site-footer .foot-social svg{
  width:16px;
  height:16px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:900px){
  .hero{
    flex-direction:column;
    gap:40px;
  }
  .grid.grid-2{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  header.site-header{
    padding:0 20px;
  }

  nav.site-nav{
    position:fixed;
    top:var(--header-h);
    left:0; right:0;
    flex-direction:column;
    align-items:flex-start;
    background:rgba(10,9,8,0.97);
    backdrop-filter:blur(14px);
    padding:22px 22px 28px;
    border-bottom:1px solid var(--line);
    gap:16px;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:.2s;
  }

  nav.site-nav.open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  .nav-toggle{
    display:block;
  }

  .logo span{
    display:none;
  }

  section.block, .page-hero, .hero{
    padding-left:6%;
    padding-right:6%;
  }
}
