/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #ff5316;
  --accent-dark:  #c93400;
  --accent-soft:  #fef3eb;
  --text:         #1a1f2e;
  --text-mid:     #4a5160;
  --text-dim:     #6b7280;
  --bg:           #ffffff;
  --surface:      #f7f8fa;
  --border:       #e4e7eb;
  --border-strong:#d1d5db;
  --footer-bg:    #1a1f2e;
  --footer-text:  #a0aec0;
  --footer-link:  #cbd5e0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
/* Logo LEFT col spanning full height; RIGHT col = topbar(dark) + nav(white) stacked */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  align-items: stretch;
}

.header__logo-col {
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 28px 0 max(20px, calc((100vw - 1200px) / 2 + 20px));
  flex-shrink: 0;
}

.header__logo-col img {
  height: 64px;
  width: auto;
}

.header__right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header__topbar-row {
  background: var(--footer-bg);
  display: flex;
  align-items: center;
  padding: 9px 20px;
  flex: 1;
  font-size: 13px;
  color: #a0aec0;
  overflow: hidden;
}

.header__nav-row {
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1200px) / 2 + 20px)) 0 20px;
  height: 52px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar__item--address {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.topbar__item--address a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.topbar__item i { color: var(--accent); font-size: 12px; flex-shrink: 0; }
.topbar__item a { color: #cbd5e0; }
.topbar__item a:hover { color: var(--accent); }

/* ===== NAV ===== */
.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__list a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--text);
  padding: 4px 6px;
  position: relative;
}

.nav__list a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
}

.nav__list a:hover,
.nav__list a.active { color: var(--accent); }
.nav__list a:hover::after,
.nav__list a.active::after { transform: scaleX(1); }

.btn-offer {
  color: var(--accent) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  padding: 4px 6px;
}

.btn-offer:hover { color: var(--accent-dark) !important; }
.btn-offer::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO / MAIN SECTION ===== */
.main-section {
  padding: 80px 20px 60px;
  text-align: center;
}

.section-pre {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 30px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 18px;
  color: var(--text);
}

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

.hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-mid);
  max-width: 720px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 70px;
  text-align: center;
}

.service-card {
  background: var(--bg);
  padding: 35px 22px;
  position: relative;
  transition: background .25s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
}

.service-card:hover { background: var(--surface); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.service-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: .3px;
}

/* ===== CONTACT BLOCK ===== */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 40px 30px;
  text-align: left;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  display: block;
  word-break: break-word;
}

.contact-value:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

/* Footer contact list */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-contact-list i { color: var(--accent); margin-top: 2px; flex-shrink: 0; font-size: 13px; }
.footer-contact-list a { color: var(--footer-link); }
.footer-contact-list a:hover { color: var(--accent); }

/* Social links */
.social-links { display: flex; gap: 10px; margin-top: 20px; }

.social-links a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-link);
  font-size: 14px;
  transition: all .2s;
}

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

/* Footer nav links */
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: 13.5px; color: var(--footer-link); }
.footer-nav a:hover { color: var(--accent); padding-left: 4px; }

/* Copyright bar */
.footer-bottom {
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 40px; height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(255,83,22,.35);
  transition: background .2s;
  z-index: 200;
}

#back-to-top:hover { background: var(--accent-dark); color: #fff; }
#back-to-top.visible { display: flex; }

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,31,46,.97);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
}

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

.mobile-nav .btn-offer {
  margin-top: 10px;
  font-size: 16px;
  padding: 12px 32px;
}

.mobile-nav-close {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ===== PAGE HERO BANNER ===== */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  text-transform: capitalize;
  letter-spacing: -.3px;
}

.page-hero__title span {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
}

/* ===== DOCUMENT / IMAGE CARDS (Autorizatii & Certificate) ===== */
.page-section {
  padding: 60px 0;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.doc-grid--full { grid-template-columns: 1fr; }

.doc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow .25s;
}

.doc-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }

.doc-card__image {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3/4;
}

.doc-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}

.doc-card:hover .doc-card__image img { transform: scale(1.02); }

.doc-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.0);
  transition: background .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-card:hover .doc-card__overlay { background: rgba(255,255,255,.18); }

.doc-card__content {
  padding: 18px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.btn-doc {
  flex-shrink: 0;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 7px 16px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .2s;
}

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

/* ===== CONTACT PAGE ===== */
.contact-page {
  padding: 60px 0 0;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  margin-bottom: 60px;
}

.contact-page__heading {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.contact-page__desc {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.iconbox {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: default;
  transition: padding-left .2s;
}

.iconbox:first-of-type { border-top: 1px solid var(--border); }
.iconbox:hover { padding-left: 6px; }

.iconbox__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--accent-soft);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 17px;
}

.iconbox__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.iconbox__value {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

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

.iconbox__link {
  position: absolute;
  inset: 0;
}

/* Contact form */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,83,22,.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }

.contact-form textarea {
  resize: vertical;
  min-height: 200px;
  margin-bottom: 16px;
}

.contact-form .form-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-mid);
}

.contact-form .form-gdpr input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.contact-form .form-gdpr a { color: var(--accent); text-decoration: underline; }

.btn-submit {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 13px 32px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}

.btn-submit:hover { background: var(--accent-dark); }

.form-disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Honeypot */
.hp-field { position: absolute; left: -5000px; }

/* Maps */
.maps-section { line-height: 0; }
.maps-section iframe { display: block; width: 100%; height: 550px; border: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header__topbar-row { display: none; }
  .nav__list { gap: 20px; }
  .header__logo-col { padding: 0 20px 0 20px; }
}

@media (max-width: 768px) {
  .header__right-col { display: none; }
  .hamburger { display: flex; align-self: center; }
  .header__logo-col { flex: 1; padding: 12px 16px; }

  .main-section { padding: 50px 16px 40px; }
  .hero-sub { margin-bottom: 40px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { padding: 25px 14px; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-block { padding: 25px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .doc-grid { grid-template-columns: 1fr; }

  .contact-page__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form .form-row { grid-template-columns: 1fr; }

  .maps-section iframe { height: 350px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
