/* =====================================
   DIMENSIUNI DE TESTARE (Mobile First)
   =====================================

   320px  - Telefoane mici (iPhone SE)
   360px x 640px  - Android standard
   375px x 667px  - iPhone 12/13 Mini
   414px x 896px  - iPhone Pro Max
   480px - 600px - Telefoane mari / mici tablete
   <768px - Limită maximă pentru mobile
   768px  - Tablete (ex: iPad vertical)
   1024px - Desktop mic (iPad orizontal)
   1280px+ - Desktop normal / mare
*/

/* Ex. media queries:
@media (min-width: 768px) { ... }  -> tabletă
@media (min-width: 1024px) { ... } -> desktop mic
@media (min-width: 1280px) { ... } -> desktop mare
*/

@charset "utf-8";
/* CSS Document */

/* ========== FONTURI ========== */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/open-sans-v34-latin-700.woff2') format('woff2');
}

/* festive-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Festive';
  font-style: normal;
  font-weight: 400;
  src: url('/webdesign-simplu/fonts/festive-v10-latin-regular.woff2') format('woff2');
 /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* =====================================
   RESET & BAZĂ
===================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  font-size: 16px;
  min-height: 100vh;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

section {
  margin-bottom: 0; /* dacă e cazul */
  padding-bottom: 1rem; /* nu exagerat */
}


a {
  color: #0056b3;
  text-decoration: none;
}
a:focus, .btn:focus {
  outline: 3px solid #0056b3;
  outline-offset: 2px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem; /* doar lateral */
}



/* =====================================
   HEADER
===================================== */

.site-header{
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
  padding: 1rem;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  animation: despreImage 4s ease-in-out infinite;
  border: 1px dotted #ffa366;
}

/* === Meniu hamburger (mobil) === */
.menu-toggle {
  display: block;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 4px;
  background: #333;
  margin-bottom: 5px;
  border-radius: 2px;
}

.main-nav {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out;
  background: #fff;
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.main-nav.active {
  max-height: 400px; /* suficient pentru toate linkurile */
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul li {
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.main-nav ul li a {
  display: block;
  padding: 1rem;
  color: #333;
  text-decoration: none;
}




/* =====================================
   INTRO
===================================== */

.intro {
  background-color: #eef4ff;
  padding: 1rem 0;
  text-align: center;
}

.intro .container h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0056b3;
  font-family: 'Festive', cursive, sans-serif;
}

.intro p {
  margin-bottom: 1.5rem;
}

.intro-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}


.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  background-color: #0056b3;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
}

/* =====================================
   FOOTER
===================================== */

.site-footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #555;
}



/* =====================================
   SERVICII
===================================== */

.servicii {
  background-color: #f9f9f9;
  padding: 2rem 0;
}

.servicii h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-family: 'Festive', cursive, sans-serif;
}

.serviciu-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .serviciu {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    border-left: 5px solid #3a86ff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

.serviciu h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Festive', cursive, sans-serif;
}

.serviciu p {
  font-size: 0.95rem;
  color: #444;
}
.intro-icon {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}






/* === Secțiune intro Despre === */
.intro {
  background-color: #eef4ff;
  padding: 1rem 0;
  text-align: center;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #003366;
  font-family: 'Festive', cursive, sans-serif;
}

.intro p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  color: #444;
  line-height: 1.5;
}

.intro-icon1 {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 54, 102, 0.3);
  margin-top: 1rem;
}

/* === Secțiune detalii-despre === */
.detalii-despre {
  padding: 1rem 0;
  background-color: #fff;
  color: #222;
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

.detalii-despre h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #003366;
  font-family: 'Festive', cursive, sans-serif;
}

.detalii-despre p {
  margin-bottom: 1rem;
}






/* =====================================
   Contact
===================================== */
/* Stiluri generale pentru pagini secundare */
body.pagina-secundara {
  font-family: 'Open Sans', sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
  
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.formular-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* Titluri */
.intro h2 {
  font-family: 'Festive', cursive, sans-serif;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 1rem;
  text-align: center;
}

/* Paragraf intro */
.intro p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.formular-contact {
  padding: 2rem 1rem;
  background-color: #fff;
  color: #fff;
  
}
.formular-contact h2 {
  font-size: 2rem;
  color: #0056b3;
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Festive', cursive, sans-serif;
}
.formular-contact form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
  margin: auto;
}
.formular-contact input,
.formular-contact textarea {
  padding: 8px;
  border: none;
  font-size: 16px;
  border-bottom: 1px solid #ccc;
  font-family: 'Open Sans', sans-serif;
}
.formular-contact input:focus,
.formular-contact textarea:focus,
.formular-contact select:focus {
  outline: none;
  box-shadow: none;
  border: none; /* sau păstrați un border customizat, dacă vreți */
  border-bottom: 1px solid #0056b3;
  font-family: 'Open Sans', sans-serif;
  color: #0056b3;
}

.formular-contact textarea{
 resize: none;
 height: 100px;
}
.formular-contact label {
  font-weight: bold;
  color: #0056b3;
}
.formular-contact button.btn {
  align-self: start;
}
.formular-contact p {
  margin-bottom: 1rem;
  color: #0056b3;
  font-weight: bold;
}

.mesaj-succes {
  color: green;
  font-weight: bold;
}
.mesaj-eroare {
  color: red;
  font-weight: bold;
}

/* Pagina multumesc */
main.intro .btn {
  max-width: 250px;
  margin: 2rem auto 0 auto;
  display: block;
  text-align: center;
}

footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0;
}










/* ========== ANIMAȚII ========== */
@keyframes despreImage {
  0%, 100% {
    transform: scale(.9);
    border-radius: 4% 95% 6% 95% / 95% 4% 92% 5%;
  }
  50% {
    transform: scale(0.8);
    border-radius: 95% 4% 97% 5% / 4% 94% 3% 95%;
  }
}









/* =====================================
   MEDIA QUERIES – TABLETE & DESKTOP
===================================== */

@media (min-width: 768px) {
  .main-nav {
    display: block;
    position: static;
    max-height: none; /* IMPORTANT pentru a dezactiva animarea pe desktop */
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  .main-nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav ul li {
    border: none;
  }

  .main-nav ul li a {
    padding: 0.5rem 1rem;
    color: #333;
  }

  .site-header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .intro h2 {
    font-size: 2rem;
  }
 .intro,
  .detalii-despre {
   padding: 1rem 0;
  }
 .intro-img {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    display: block;
  }

  .btn {
    font-size: 1rem;
  }
 
 
 
 .serviciu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .serviciu {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .serviciu h3 {
    min-width: 200px;
    margin: 0;
  }
 
 
 
 .intro h2 {
    font-size: 2.4rem;
  }

  .intro p {
    font-size: 1.2rem;
  }

  .intro-icon1 {
    width: 220px;
    height: 220px;
  }

  .detalii-despre {
    font-size: 1.1rem;
  }
 .container {
    margin: 1rem auto;
  }

  .contact-form .btn {
    width: auto;
    padding: 0.85rem 2rem;
  }
 
 
 
 
 
 
}





/* =====================================
   MEDIA QUERIES – DESKTOP
===================================== */
@media (min-width: 1024px) {
  .serviciu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .serviciu {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
}










