/* =========================
   styles.css - Fence-Tech
   ========================= */

/* Google font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --accent:#b28b39;        /* arany / kiemelés */
  --bg:#ffffff;
  --muted:#f5f5f5;
  --text:#333333;
  --sub:#555555;
  --nav:#ffffff;
  --footer:#262626;
  --max-width:1200px;
}

/* Reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--muted);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* Utility container */
.container{
  width:90%;
  max-width:var(--max-width);
  margin:0 auto;
}

/* ===== NAVBAR ===== */
.header-wrap {
  background-color: #2c3e50;
  color: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f1c40f;
}

/* ===== MOBIL NÉZET ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* ===== Mobil verzió beállítás ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
    gap: 1.2rem;
    padding: 1.5rem 0;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1.2rem;
  }

  /* Hamburger animáció */
  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}



/* =========================
   HERO
   ========================= */
.hero{
  width:100%;
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background-position:center;
  background-size:cover;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.45) 100%);
}
.hero-inner{
  position:relative;
  z-index:2;
  color:#fff;
  text-align:center;
  width:90%;
  max-width:1000px;
  padding:2rem;
  border-radius:12px;
}
.hero h1{
  font-size:2.6rem;
  line-height:1.02;
  margin-bottom:.6rem;
  font-weight:700;
}
.hero p{
  font-size:1.1rem;
  color:rgba(255,255,255,0.95);
  max-width:900px;
  margin:0 auto;
}
.hero .btn{
  margin-top:1.3rem;
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:0.9rem 1.6rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  box-shadow: 0 6px 18px rgba(178,139,57,0.12);
}
.hero .btn:hover{ transform:translateY(-3px); filter:brightness(1.05) }

/* =========================
   MAIN CONTENT
   ========================= */
main{
  background:var(--bg);
  margin-top: -2rem;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  padding:3.2rem 0 5rem;
  box-shadow: 0 -6px 30px rgba(0,0,0,0.03);
}

/* Intro */
.intro{
  text-align:center;
  padding:1rem 0 2rem;
}
.intro h2{ font-size:1.9rem; color:var(--text); margin-bottom:.6rem }
.intro p{ max-width:900px; margin:0 auto; color:var(--sub); font-size:1.05rem }

/* Cards / Products */
.cards-grid{
  width:90%;
  max-width:var(--max-width);
  margin:2rem auto 0;
  display:grid;
  gap:1.6rem;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 8px 26px rgba(20,20,20,0.06);
  transition:transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .28s;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.card:hover{ transform:translateY(-8px); box-shadow: 0 18px 40px rgba(20,20,20,0.09) }

.card img{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
}
.card-body{
  padding:1.25rem 1.4rem 1.8rem;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:.8rem;
}
.card h3{ font-size:1.35rem; color:var(--text) }
.card p{ color:var(--sub); font-size:1rem; flex:1 }
.card .card-cta{
  margin-top: .6rem;
  align-self:flex-start;
}
.card .btn{
  background:var(--accent);
  color:#fff;
  padding:.65rem 1.15rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
}
.card .btn:hover{ transform:translateY(-3px) }

/* =========================
   RÓLUNK - TEAM
   ========================= */
.team-grid{
  width:90%;
  max-width:var(--max-width);
  margin:2.2rem auto;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:1.6rem;
  align-items:start;
}
.team-card{
  background:#fff;border-radius:12px;padding:1.4rem;text-align:center;box-shadow: 0 8px 22px rgba(0,0,0,0.04)
}
.team-photo{
  width:180px;height:180px;border-radius:50%;overflow:hidden;margin:0 auto 1rem;
  display:flex;align-items:center;justify-content:center;background:#e9e9e9;
}
.team-card h4{ margin-top:.6rem;font-size:1.1rem }
.team-card p{ color:var(--sub); font-size:.98rem }

/* =========================
   KAPCSOLAT - MAP + INFO
   ========================= */
.contact-wrap{
  width:90%;
  max-width:var(--max-width);
  margin:2rem auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1.6rem;
}
.contact-box{
  background:#fff;border-radius:12px;padding:1.4rem;box-shadow: 0 8px 22px rgba(0,0,0,0.04)
}
.map-wrap{ border-radius:12px; overflow:hidden; height:100%; min-height:320px; box-shadow:0 8px 22px rgba(0,0,0,0.04) }

/* =========================
   AJÁNLAT - FORM
   ========================= */
.form-box{ background:#fff;border-radius:12px;padding:1.4rem; box-shadow:0 8px 22px rgba(0,0,0,0.04) }
.form-box form{ display:flex; flex-direction:column; gap:.9rem }
.form-box input, .form-box textarea, .form-box select{
  padding:.8rem 1rem; border-radius:8px; border:1px solid #e0e0e0; font-size:1rem; color:var(--text)
}
.form-box button{ margin-top:.4rem; padding:.85rem 1.2rem; background:var(--accent); color:#fff; border-radius:999px; border:0; font-weight:600; cursor:pointer }

/* =========================
   FOOTER
   ========================= */
.footer{
  background:var(--footer);
  color:#ddd;
  padding:2.2rem 0;
  margin-top:3rem;
}
.footer .footer-inner{ width:90%; max-width:var(--max-width); margin:0 auto; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap }
.footer .company{ max-width:420px }
.footer a{ color:var(--accent); text-decoration:none }
.footer-bottom{
  text-align: center;
}
/* =========================
   RESPONSIVE - tablet / mobil
   ========================= */

/* Tablet */
@media (max-width:1024px){
  .cards-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero h1{ font-size:2.35rem }
  .hero p{ font-size:1.05rem }
}

/* Mobile */
@media (max-width:768px){
  .hero{ min-height:56vh; background-position:center; }
  .hero-inner{ padding:1.2rem }
  .hero h1{ font-size:1.9rem }
  .hero p{ font-size:.98rem }

  main{ padding:2.2rem 0 4rem }
  .cards-grid{ grid-template-columns: 1fr; gap:1.1rem; width:94% }
  .card img{ height:220px }
  .card h3{ font-size:1.25rem }
  .card p{ font-size:1.05rem }

  .team-grid{ grid-template-columns: 1fr; width:94% }
  .contact-wrap{ grid-template-columns: 1fr; width:94% }
  .map-wrap{ min-height:260px }

  .hero .btn{ padding:.7rem 1.05rem; font-size:.96rem }
  .logo{ font-size:1.15rem }
}

/* Small phones */
@media (max-width:420px){
  .hero{ min-height:50vh }
  .hero h1{ font-size:1.6rem }
  .hero p{ font-size:.95rem }
  .card img{ height:180px }
  .card h3{ font-size:1.15rem }
  .card p{ font-size:.98rem }
  .footer .footer-inner{ padding:0 1rem }
}

/* final small tweak */
@media (min-width:1600px){
  .hero h1{ font-size:3.6rem }
  .card img{ height:320px }
}
/* =========================
   FOOTER - mobil javítás
   ========================= */
@media (max-width:768px){
  .footer .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }

  .footer .company {
    max-width: 100%;
  }

  .footer a {
    display: inline-block;
    margin-top: 0.4rem;
  }

  .footer-bottom {
    margin-top: 1rem;
  }
}
/* === RÓLUNK OLDAL TELJES KÉPERNYŐ KITÖLTÉS === */
main.content-page {
  min-height: calc(100vh - 140px); /* fej + lábléc levonva */
  display: flex;
  flex-direction: column;
  justify-content: center; /* középre igazítva függőlegesen */
  align-items: center;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* Szöveg és kép középre igazítva, eredeti méret megtartva */
.page-hero {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
  color: #2b2b2b;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Egyetlen csapattag (nagyobb kép) */
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.member-photo {
  width: 400px;
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

/* Footer finomabb árnyalattal */
.footer {
  background-color: #555;
  color: #f5f5f5;
  text-align: center;
  padding: 20px 10px;
  width: 100%;
  margin-top: auto;
  font-size: 1rem;
}

/* === MOBILBARÁT BEÁLLÍTÁSOK === */
@media (max-width: 992px) {
  .member-photo {
    width: 320px;
  }

  .page-hero {
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  main.content-page {
    padding: 40px 15px;
    justify-content: center;
  }

  .page-hero {
    padding: 20px;
    font-size: 1.05rem;
    padding: 5rem;
  }

  .member-photo {
    width: 80%;
    max-width: 350px;
  }

  .footer {
    font-size: 0.95rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    font-size: 1rem;
    padding: 15px;
  }

  .member-photo {
    width: 85%;
  }

  .footer {
    font-size: 0.9rem;
  }
}

