/* ============================================================
   DUO SENTI SRL — Romanian automotive service SME template
   ============================================================ */

:root {
  --ro-blue: #002b7f;
  --ro-blue-light: #0044aa;
  --auto-orange: #e85d04;
  --auto-orange-dark: #c44d03;
  --dark: #1a1a2e;
  --gray: #555555;
  --gray-light: #f4f5f7;
  --border: #dde1e6;
  --white: #ffffff;
  --success: #198754;
  --font: "Segoe UI", Tahoma, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; color: var(--dark); background: var(--white); line-height: 1.6; }

a { color: var(--ro-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1140px, 94%); margin: 0 auto; }

/* ---------- Top contact bar (typical RO SME) ---------- */
.top-contact {
  background: var(--dark);
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
}
.top-contact .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-contact a { color: #fff; font-weight: 600; }
.top-contact .phone-big { color: var(--auto-orange); font-size: 15px; font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--ro-blue);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 48px; height: 48px; background: linear-gradient(135deg, var(--ro-blue), var(--ro-blue-light));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; border-radius: 6px;
}
.logo-text { line-height: 1.2; }
.logo-name { font-size: 20px; font-weight: 800; color: var(--ro-blue); display: block; }
.logo-tag { font-size: 11px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  padding: 10px 14px; color: var(--dark); font-weight: 600; font-size: 14px;
  border-radius: 4px; transition: background 0.15s;
}
.main-nav a:hover { background: var(--gray-light); color: var(--ro-blue); text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn-cta {
  background: var(--auto-orange); color: #fff; padding: 11px 20px; border-radius: 5px;
  font-weight: 700; font-size: 14px; border: none; cursor: pointer; white-space: nowrap;
  display: inline-block; text-decoration: none;
}
.btn-cta:hover { background: var(--auto-orange-dark); color: #fff; text-decoration: none; }

/* Language switch — top-right, prominent */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 2px solid var(--ro-blue);
  color: var(--ro-blue); font-weight: 800; font-size: 14px;
  padding: 8px 14px; cursor: pointer; border-radius: 5px; min-width: 72px;
}
.lang-switch-btn:hover { background: var(--gray-light); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff; border: 2px solid var(--ro-blue); border-radius: 5px;
  min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); overflow: hidden; z-index: 120;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: block; width: 100%; text-align: left; padding: 11px 14px;
  border: none; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.lang-dropdown button:last-child { border-bottom: none; }
.lang-dropdown button:hover { background: var(--gray-light); }
.lang-dropdown button.active { background: var(--ro-blue); color: #fff; }
.lang-dropdown .lang-sub { display: block; font-size: 11px; font-weight: 400; opacity: 0.75; margin-top: 2px; }

.menu-toggle { display: none; background: var(--ro-blue); color: #fff; border: none; padding: 10px 14px; font-size: 18px; cursor: pointer; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--ro-blue) 0%, #001a4d 100%);
  color: #fff; padding: 56px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(232,93,4,0.15); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.hero h1 span { color: var(--auto-orange); }
.hero-lead { font-size: 16px; opacity: 0.92; margin-bottom: 24px; max-width: 52ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-badge {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid #fff;
  padding: 11px 20px; border-radius: 5px; font-weight: 700; font-size: 14px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

.hero-card {
  background: var(--white); color: var(--dark); border-radius: 8px; padding: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.hero-card h3 { color: var(--ro-blue); font-size: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--auto-orange); }
.hero-card ul { list-style: none; }
.hero-card li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; gap: 10px; }
.hero-card li:last-child { border-bottom: none; }
.hero-card .ico { color: var(--auto-orange); font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--gray-light); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust-item .num { font-size: 26px; font-weight: 800; color: var(--ro-blue); }
.trust-item .lbl { font-size: 12px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section.alt { background: var(--gray-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: 26px; color: var(--ro-blue); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--gray); font-size: 15px; }
.section-head .line { width: 60px; height: 4px; background: var(--auto-orange); margin: 12px auto 0; border-radius: 2px; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 28px 22px; text-align: center; transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--auto-orange);
}
section.alt .service-card { background: var(--white); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.service-card .ico { font-size: 40px; margin-bottom: 14px; }
.service-card h3 { font-size: 16px; color: var(--ro-blue); margin-bottom: 8px; font-weight: 700; }
.service-card p { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* ---------- About two-col ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.about-text p { color: var(--gray); margin-bottom: 14px; font-size: 15px; }
.about-facts { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.about-facts h3 { background: var(--ro-blue); color: #fff; padding: 14px 18px; font-size: 15px; }
.about-facts dl { padding: 0; }
.about-facts dt { font-weight: 700; font-size: 12px; color: var(--gray); text-transform: uppercase; padding: 12px 18px 4px; }
.about-facts dd { padding: 0 18px 12px; font-size: 14px; border-bottom: 1px solid var(--border); }
.about-facts dd:last-child { border-bottom: none; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-item { text-align: center; padding: 20px 12px; }
.why-item .ico { font-size: 32px; margin-bottom: 10px; }
.why-item h4 { font-size: 14px; color: var(--ro-blue); font-weight: 700; margin-bottom: 6px; }
.why-item p { font-size: 12px; color: var(--gray); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; }
.contact-info { background: var(--ro-blue); color: #fff; border-radius: 8px; padding: 28px; }
.contact-info h3 { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--auto-orange); }
.contact-info ul { list-style: none; }
.contact-info li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 14px; }
.contact-info li:last-child { border-bottom: none; }
.contact-info a { color: var(--auto-orange); font-weight: 700; }
.contact-info .label { display: block; font-size: 11px; opacity: 0.7; text-transform: uppercase; margin-bottom: 4px; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--dark); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 5px;
  font-family: inherit; font-size: 14px; margin-bottom: 14px; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ro-blue); }
.contact-form button { width: 100%; background: var(--auto-orange); color: #fff; border: none; padding: 14px; font-weight: 700; font-size: 15px; border-radius: 5px; cursor: pointer; }
.contact-form button:hover { background: var(--auto-orange-dark); }
.form-msg { margin-top: 10px; font-size: 13px; font-weight: 600; min-height: 1.2em; }

/* ---------- Footer (RO SME standard) ---------- */
.site-footer { background: var(--dark); color: #aaa; font-size: 13px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 700; }
.footer-col p { font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.footer-col a { display: block; color: #aaa; padding: 4px 0; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333; padding: 16px 0; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px;
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: #888; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.mobile-open { display: flex; flex-direction: column; width: 100%; order: 10; background: var(--gray-light); padding: 10px; border-radius: 6px; }
}
@media (max-width: 560px) {
  .services-grid, .why-grid, .trust-grid, .footer-main { grid-template-columns: 1fr; }
}
