/* ============================================================
   dryvit.ro — Design System v1.0
   Aesthetic: Clean Professional | Barlow Condensed + Source Sans 3
   Colors: Warm Slate #2C3E50 | Terracotta #C0392B | Cream #F9F6F1
   Network-consistent with excavatii-amenajari.ro
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --primary: #C0392B;
  --primary-dark: #96281B;
  --primary-light: #FDECEA;
  --slate: #2C3E50;
  --slate-mid: #34495E;
  --slate-light: #7F8C8D;
  --warm-bg: #F9F6F1;
  --warm-card: #FFFDF9;
  --border: #E0DDD8;
  --white: #FFFFFF;
  --text: #2C3E50;
  --text-muted: #5D6D7E;
  --success: #27AE60;
  --error: #C0392B;
  --radius: 4px;
  --radius-md: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-strong: 0 4px 24px rgba(0,0,0,0.14);
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--warm-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 700; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ---- TOPBAR ---- */
.topbar { background: var(--slate); color: #AAA; font-size: 0.82rem; padding: 8px 0; letter-spacing: 0.03em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--primary-light); font-weight: 600; }

/* ---- NAV ---- */
.nav { background: var(--white); border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 900; color: var(--slate) !important; text-transform: uppercase; letter-spacing: 0.06em; display:flex; align-items:center; gap:6px; }
.brand img { height:32px; width:auto; }
.brand span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: 8px 14px; font-weight: 600; font-size: 0.92rem; color: var(--text) !important; transition: color var(--transition); text-transform: uppercase; letter-spacing: 0.04em; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary) !important; }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; border-radius: var(--radius); padding: 8px 20px !important; font-weight: 800 !important; transition: background var(--transition) !important; }
.nav-cta:hover { background: var(--primary-dark) !important; }

.chevron { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 4px; vertical-align: middle; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 260px; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-strong); z-index: 100; }
.dropdown a { display: block; padding: 10px 18px; font-size: 0.9rem; color: var(--text) !important; font-weight: 500; border-bottom: 1px solid var(--border); }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--primary-light); color: var(--primary) !important; }
.nav-links > li:hover .dropdown { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--slate); transition: all 0.2s; }

/* ---- BREADCRUMB ---- */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 0.85rem; color: var(--slate-light); }
.breadcrumb a { color: var(--slate-light); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb strong { color: var(--text); font-weight: 600; }

/* ---- PAGE HEADER ---- */
.page-header { background: var(--slate); color: var(--white); padding: 48px 0 44px; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header h1 em { font-style: normal; color: var(--primary-light); }
.page-header p { color: #BBB; font-size: 1.15rem; max-width: 600px; }

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, var(--slate) 0%, #1a2a3a 100%); color: var(--white); padding: 72px 0 68px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background: linear-gradient(135deg, transparent, rgba(192,57,43,0.15)); pointer-events: none; }
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--primary-light); }
.hero-sub { color: #CCC; font-size: 1.2rem; max-width: 560px; margin-bottom: 32px; line-height: 1.6; }
.hero-badge { display: inline-block; background: rgba(192,57,43,0.2); border: 1px solid rgba(192,57,43,0.4); color: var(--primary-light); padding: 6px 16px; border-radius: 2px; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; text-decoration: none !important; }
.btn-primary { background: var(--primary); color: var(--white) !important; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-dark { background: var(--slate); color: var(--white) !important; border-color: var(--slate); }
.btn-dark:hover { background: var(--slate-mid); }
.btn-outline { background: transparent; color: var(--white) !important; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* ---- SECTIONS ---- */
.section { padding: 64px 0; }
.section-white { background: var(--white); }
.section-sm { padding: 32px 0; }
.section-label { display: block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--primary); margin-bottom: 8px; font-family: 'Source Sans 3', sans-serif; }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- CARDS ---- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow-strong); transform: translateY(-2px); }
.card-body { padding: 24px; }

.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; text-align: center; transition: all var(--transition); height: 100%; }
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-strong); transform: translateY(-3px); }
.service-card .icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.service-card h3 { margin-bottom: 10px; color: var(--text); }
.service-card p { font-size: 0.93rem; }

/* ---- STATS ---- */
.stats-row { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 20px 40px; border-right: 1px solid rgba(0,0,0,0.12); }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 2.8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-light); margin-top: 6px; }

/* ---- ENGINEER NOTE ---- */
.engineer-note { background: var(--slate); color: var(--white); padding: 24px 28px; border-radius: var(--radius-md); margin-top: 32px; border-left: 4px solid var(--primary); }
.engineer-note p { color: #CCC; }
.note-label { display: block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary-light); margin-bottom: 10px; }

/* ---- FAQ ---- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; background: none; border: none; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--text); text-align: left; line-height: 1.4; font-family: 'Source Sans 3', sans-serif; }
.faq-icon { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; margin-left: 12px; transition: transform 0.2s; }
.faq-answer { display: none; padding: 0 0 16px; color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: 'Source Sans 3', sans-serif; transition: border-color var(--transition); background: var(--white); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 12px 16px; border-radius: var(--radius); font-weight: 600; font-size: 0.92rem; display: none; margin-bottom: 16px; }
.alert.show { display: block; }
.alert-success { background: #EEF8F2; color: var(--success); border: 1px solid #B8E6CC; }
.alert-error { background: #FDECEA; color: var(--error); border: 1px solid #F5C6CB; }

/* ---- HANDOFF BOX ---- */
.handoff-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--white); padding: 18px 24px; border-radius: var(--radius-md); border: 1px solid var(--border); flex-wrap: wrap; }
.handoff-box p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---- TAG ---- */
.tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 2px; }

/* ---- LOCATION PILLS ---- */
.location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.location-pill { display: block; text-align: center; padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; font-size: 0.92rem; color: var(--text) !important; transition: all var(--transition); }
.location-pill:hover { border-color: var(--primary); color: var(--primary) !important; background: var(--primary-light); }

/* ---- FOOTER ---- */
footer { background: var(--slate); color: #999; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.footer-brand span { color: var(--primary-light); }
.footer-desc { font-size: 0.9rem; color: #999; margin-bottom: 16px; }
.footer-heading { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--white); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #999 !important; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light) !important; }
.footer-contact-item { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact-item a { color: #CCC !important; }
.footer-network-bar { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; font-size: 0.82rem; color: #777; text-align: center; }
.footer-network-bar a { color: #AAA !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; font-size: 0.8rem; color: #666; text-align: center; }

/* ---- MOBILE CTA ---- */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000; }
.mobile-cta-bar a { display: block; text-align: center; background: var(--primary); color: var(--white) !important; padding: 16px; font-weight: 800; font-size: 1.05rem; }

/* ---- MAP ---- */
.map-embed { border-radius: var(--radius-md); overflow: hidden; height: 300px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 72px; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 3px solid var(--primary); padding: 16px 20px 20px; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.15); gap: 2px; }
  .nav-links.open > li { width: 100%; }
  .nav-links.open > li > a { padding: 12px 14px; font-size: 1.2rem; }
  .dropdown { position: static; box-shadow: none; border: none; border-left: 3px solid var(--primary); margin-left: 14px; padding: 4px 0; }
  .nav-links.open > li:hover .dropdown { display: block; }
  .nav-cta { display: none !important; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.12); }
  .stat-item:last-child { border-bottom: none; }
  .hero { padding: 56px 0 52px; }
  .handoff-box { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* WhatsApp Float Button */
.whatsapp-float{position:fixed;bottom:24px;right:24px;width:60px;height:60px;background:#25d366;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;box-shadow:0 4px 12px rgba(0,0,0,.25);z-index:9999;transition:transform .2s,box-shadow .2s;text-decoration:none;}
.whatsapp-float:hover{transform:scale(1.1);box-shadow:0 6px 20px rgba(0,0,0,.3);}
@media(max-width:768px){.whatsapp-float{bottom:80px;right:16px;width:54px;height:54px;font-size:1.7rem;}}
