/* ===== Global reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f4f9f2;
  color: #1f2933;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header & navigation ===== */
.site-header {
  background-color: #d7f1d6;
  border-bottom: 1px solid #b7ddb4;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Logo nou RG + text */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color: #0f766e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.logo-text {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2933;
}

.main-nav a {
  margin-left: 20px;
  font-size: 0.95rem;
  color: #1f2933;
}

.main-nav a:hover {
  text-decoration: underline;
}

.main-nav a.active {
  font-weight: 600;
  text-decoration: underline;
}

/* ===== Page layout ===== */
.page-content {
  padding: 32px 0 48px;
}

.page-title {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.intro-text {
  max-width: 720px;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 8px;
}

.service-section {
  margin-bottom: 32px;
}

.service-list {
  padding-left: 18px;
  margin-top: 8px;
  margin-bottom: 18px;
}

/* ===== Buttons & links ===== */
.primary-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background-color: #0f766e;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.primary-btn:hover {
  background-color: #115e59;
}

.primary-link {
  font-weight: 600;
}

/* ===== Services page – images & layout ===== */
.service-photos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.service-photo {
  flex: 1 1 260px;
  text-align: center;
}

.service-photo img {
  width: 100%;
  max-width: 360px;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 0 auto 8px;
}

.service-photo figcaption {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ===== Contact page ===== */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
}

.contact-info-block {
  flex: 1 1 260px;
  font-size: 0.95rem;
}

.contact-form-block {
  flex: 1 1 320px;
}

.contact-form {
  max-width: 480px;
}

/* Formular */
.form-field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.form-field label {
  margin-bottom: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.honeypot {
  display: none;
}

.form-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
}

/* ===== Success page ===== */
.success-box {
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.15);
  text-align: center;
  margin: 32px auto 0;
}

.success-box h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #d7f1d6;
  border-top: 1px solid #b7ddb4;
  padding: 16px 0;
  font-size: 0.85rem;
  text-align: center;
}

.footer-content p {
  margin: 2px 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 16px;
  }

  .service-photos-row {
    flex-direction: column;
    align-items: center;
  }

  .service-photo img {
    max-width: 100%;
    height: auto;
  }
}
/* CONTACT PAGE LAYOUT */

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-details {
  flex: 1 1 260px;
}

.contact-form-wrapper {
  flex: 1 1 320px;
}

.contact-form {
  background-color: #f7fdf8;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #c6ddcc;
  font: inherit;
  box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid #4cae6b;
  outline-offset: 1px;
  border-color: #4cae6b;
}

/* două câmpuri pe același rând (email + telefon) pe ecrane mari */
.form-row.two-cols {
  display: flex;
  gap: 1rem;
}

.form-row.two-cols > div {
  flex: 1;
}

/* buton principal */
.button-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background-color: #2f8c4a;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.button-primary:hover {
  background-color: #256f3a;
}

/* text mic sub formular */
.form-note {
  font-size: 0.85rem;
  color: #4a5a4e;
  margin-top: 0.75rem;
}

/* câmp anti-spam invizibil */
.hidden-field {
  position: absolute;
  left: -9999px;
}

/* pe telefon, formularul și detaliile una sub alta */
@media (max-width: 720px) {
  .contact-layout {
    flex-direction: column;
  }

  .form-row.two-cols {
    flex-direction: column;
  }
}