/*
 * Cadtech Dental - Modern & Minimalist Redesign
 * Inspired by a clean, elegant aesthetic.
 */

/* 1. Variables & Root
   ========================================================================== */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f8f8f8;
    --text-main: #333333;
    --text-light: #666666;
    --accent: #a38a6d; /* A subtle, elegant accent color */
    --accent-hover: #8e735c;
    --border-color: #e0e0e0;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-width: 1200px;
}

/* 2. Base & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-index,
body.page-blog,
body.page-galerie,
body.page-contact {
    background-color: #e6f0f7; /* Light blue background for index, blog, gallery, and contact */
}

main {
    margin-top: 0; /* Spațiul este acum gestionat de margin-bottom al header-ului */
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

/* 3. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #ffffff; /* Fundal alb solid */
    padding: 1.5rem 0;
    position: sticky;
    top: 2rem; /* Spațiu de sus pentru a se alinia cu margin-top */
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 3px 3px rgba(0,0,0,0.15); /* Umbră asortată cu hero */
    width: 90%; /* Lățime ca la hero-page */
    margin: 2rem auto; /* Spațiu deasupra/dedesubt și centrare */
    border-radius: 15px; /* Colțuri rotunjite ca la carduri */
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    left: -40px; /* Deplasează logo-ul și mai mult spre stânga */
}

.logo img {
    max-height: 81px; /* Mărește logo-ul */
    width: auto;
    display: block;
}

.main-nav {
    margin-left: auto; /* Aliniază meniul la dreapta */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 400; /* Mai subțire */
    font-size: 1.2rem; /* Mărime și mai mare */
    padding: 0.5rem 0;
    position: relative;
    text-transform: none; /* Fără majuscule */
    letter-spacing: 1px; /* Spațiere mai mare între litere */
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* 4. Hero Section (Split Layout)
   ========================================================================== */
.hero-split {
    display: flex;
    min-height: 80vh; /* Înălțime redusă */
    background-color: #f1f1f1;
    transform: scale(0.90); /* Efect de zoom out mai pronunțat */
    box-shadow: 0 14px 28px rgba(0,0,0,0.2), 0 10px 10px rgba(0,0,0,0.18); /* Umbră mai pronunțată */
}

.hero-left {
    width: 50%;
    background-color: #f8f9fa; /* Gri deschis */
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-nav {
    text-align: left;
    margin-bottom: auto; /* Pushes nav to the top */
}

.hero-nav a {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.hero-nav a:hover {
    color: var(--accent);
}

.hero-text {
    text-align: left;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero-main-title {
}

.hero-different-font {
    font-family: 'Poppins', 'Segoe UI', 'Arial Rounded MT Bold', Arial, sans-serif;
    color: #0d3b66;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.2em;
    text-transform: uppercase;
}

.hero-main-title {
    font-family: 'Montserrat', sans-serif; /* Font nou */
    font-size: 6vw; /* Responsive font size */
    font-weight: 700;
    line-height: 1.1;
    color: #2a6f97; /* Albastru modern */
    margin: 0;
}

.hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2vw; /* Mărime responsive */
    color: #0d3b66; /* Albastru închis */
    margin-top: 1.5rem;
}

.hero-cta-wrapper {
    margin-top: 5rem; /* Spațiu mărit */
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.hero-cta:hover {
    color: var(--accent);
}

.hero-cta-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.hero-cta-text {
    font-size: 1rem;
    font-weight: 600;
}

.hero-right {
    width: 50%;
    background-color: #e0e0e0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 5. Advantages Section
   ========================================================================== */
.advantages {
    padding: 4rem 0;
}

.wide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.wide-card {
    margin: 0 !important;
    height: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Eliminat margin-top suplimentar sub gridul de carduri pentru ca butonul să fie mai sus */
/* .wide-cards .wide-card:last-child { margin-top: 2.5rem !important; } */

.wide-card {
    background-color: #f8f9fa; /* Gri deschis */
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); /* Umbră complexă, mai vizibilă */
    text-align: left; /* Schimbat din center în left */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Schimbat din center în flex-start */
    justify-content: flex-start; /* Schimbat din center în flex-start */
    border: 2px solid transparent; /* Previne saltul la hover */
}

.wide-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); /* Umbră complexă, mai intensă la hover */
    border-color: var(--accent); /* Adaugă o bordură la hover */
}

.wide-card:hover h3,
.wide-card:hover h4 {
    color: var(--accent);
}

.wide-card img {
}

.img-align-fix {
    margin-top: 18px;
}

.wide-card img {
    max-width: 100px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    margin-left: 0; /* Schimbat din auto în 0 */
    margin-right: auto;
}

.wide-card h3,
.wide-card h4 {
    font-weight: 600; /* Titlu mai îngroșat */
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.wide-card p {
    color: var(--text-secondary);
    font-weight: 600;
}

.advantages-section {
    padding-bottom: 1.5rem; /* Micșorează spațiul de jos */
}

.services-section {
    padding-top: 1.5rem; /* Micșorează spațiul de sus */
}


.contact-section {
  padding: 3.5rem 0 3.5rem 0;
  background: #fafdff;
}
.contact-section .wide-cards {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-section .wide-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(59,182,255,0.07), 0 1.5px 4px rgba(42,111,151,0.08);
  padding: 2.5rem 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 320px;
  max-width: 600px;
  width: 100%;
}
.contact-section h3 {
  font-family: 'Montserrat',sans-serif;
  color: #2a6f97;
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.contact-section label {
  font-weight: 500;
  color: #2a6f97;
  margin-bottom: 0.3rem;
  display: block;
  font-family: 'Montserrat',sans-serif;
}
.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid #cbeaff;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  font-family: 'Inter',sans-serif;
  background: #fafdff;
  transition: border 0.2s;
  outline: none;
  resize: vertical;
}
.contact-section input:focus,
.contact-section textarea:focus {
  border-color: #3bb6ff;
}
.contact-section .btn-primary {
  background: #3bb6ff;
  color: #fff;
  padding: 1.1rem 2.3rem;
  border-radius: 12px;
  font-size: 1.18rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 14px rgba(59,182,255,0.10);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: background 0.2s;
  cursor: pointer;
}
.contact-section .btn-primary:hover,
.contact-section .btn-primary:focus {
  background: #2a6f97;
  color: #fff;
}
.contact-section .btn-icon {
  width: 26px;
  height: 26px;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.contact-section .map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(59,182,255,0.07);
  margin-top: 1.2rem;
}
.contact-phone {
  font-size: 1.45rem;
  font-weight: 700;
  color: #2a6f97;
  font-family: 'Montserrat',sans-serif;
  display: inline-block;
  margin: 0.12em 0 0.12em 0;
}

@media (max-width: 900px) {
  .contact-section .wide-cards {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .contact-section .wide-card {
    max-width: 100%;
    min-width: 0;
  }
}

/* 6. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: #fff;
}

/* Blog read more button */
/* Service card styles */
.wide-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

a.wide-card {
    text-decoration: none;
}

a.wide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

a.wide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 111, 151, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

a.wide-card:hover::after {
    opacity: 1;
}

.wide-card .btn {
    background-color: #1e88e5;
    border-color: #1e88e5;
    position: relative;
    z-index: 1;
}

.wide-card .btn:hover {
    background-color: #1976d2;
    border-color: #1976d2;
}

/* 6. Sections & Cards
   ========================================================================== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

/* Style for service/advantage cards */
.wide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.wide-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}



.wide-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.wide-card p {
    color: var(--text-light);
}

/* 7. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-alt);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    margin: 0 1rem;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 0.9rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #3bb6ff;
  color: #fff;
  padding: 1.1rem 2.2rem;
  border-radius: 12px;
  font-size: 1.3rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 14px rgba(59,182,255,0.12);
  transition: background 0.2s;
  border: none;
}
.hero-cta:hover, .hero-cta:focus {
  background: #2a6f97;
  color: #fff;
  text-decoration: none;
}
.hero-cta-icon {
  display: inline-block;
  vertical-align: middle;
}

/* 8. Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-desc {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }
    .logo img {
        max-height: 45px; /* Smaller logo on mobile */
    }
    .section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .wide-cards {
        grid-template-columns: 1fr;
    }
}


/*
 * 10. Pagina de Întrebări Frecvente (FAQ)
   ========================================================================== */

body.page-faq {
    background-color: #fafdff; /* Un fundal foarte deschis, curat */
}

.faq-section {
    padding: 2rem 0 4rem 0;
}

.faq-category-title {
    font-family: 'Montserrat', sans-serif;
    color: #2a6f97;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.faq-category-title:first-of-type {
    margin-top: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border: 1.5px solid #e0eaff;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 32px rgba(59,182,255,0.07);
}

.faq-item[open] {
    border-color: #3bb6ff;
}

.faq-question {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none; /* Elimină săgeata default */
    position: relative;
    color: #305e77;
    display: block; /* Asigură că ocupă toată lățimea */
}

.faq-question::-webkit-details-marker {
    display: none;
}

/* Creăm propria noastră săgeată, ca un plus/minus */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 400;
    color: #3bb6ff;
    transition: transform 0.2s ease-in-out;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg); /* Se transformă într-un 'x' */
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.7;
    color: var(--text-light);
    border-top: 1.5px solid #f0f8ff;
    font-family: 'Inter', sans-serif;
}

.faq-answer p {
    margin-bottom: 1em;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}
/*
 * 11. Pagina de Mulțumire (Thank You)
   ========================================================================== */

body.page-thank-you {
    background-color: #e6f0f7; /* Fundalul albastru deschis */
}

.thank-you-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 250px); /* Ocupă spațiul vertical, scăzând header/footer */
    padding: 4rem 0;
}

.thank-you-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.thank-you-icon {
    color: #3bb6ff; /* Albastrul vibrant */
    margin-bottom: 1.5rem;
}

.thank-you-card h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #2a6f97;
    margin-bottom: 1rem;
}

.thank-you-card p {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto 2.5rem auto;
}

.thank-you-actions .btn.btn-primary {
    background: #3bb6ff;
    color: #fff;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 14px rgba(59, 182, 255, 0.2);
    transition: all 0.3s ease;
}

.thank-you-actions .btn.btn-primary:hover {
    background: #2a6f97;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(42, 111, 151, 0.3);
}