/* ============================================
   DEVIS-TOIT.BE — Premium Roofing Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font: 'Inter', -apple-system, sans-serif;
  
  --black: #0F172A;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Orange/Terracotta - Toiture */
  --primary: #EA580C;
  --primary-dark: #C2410C;
  --primary-light: #FFF7ED;
  --primary-gradient: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
  
  --green: #16A34A;
  --green-light: #DCFCE7;
  
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: var(--font); 
  color: var(--gray-700); 
  background: var(--white); 
  line-height: 1.7; 
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4, h5 { 
  font-weight: 700; 
  line-height: 1.3; 
  color: var(--gray-900); 
  letter-spacing: -0.02em; 
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }

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

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-accent {
  color: var(--primary);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); }
.nav a:hover { color: var(--primary); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gray-900);
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(234,88,12,0.3);
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(234,88,12,0.4); 
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-secondary:hover { 
  background: var(--gray-200); 
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--gray-700);
}

@media (max-width: 968px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .menu-toggle { display: block; }
}

/* ============ HERO ============ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-light);
  color: var(--green);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { color: var(--primary); }

.hero-text {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-phone-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-phone-text { font-size: 0.85rem; color: var(--gray-500); }
.hero-phone-number { 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: var(--gray-900);
  display: block;
}

.hero-trust {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-stats {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stat {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid var(--gray-200);
}
.stat:last-child { border: none; }

.stat-value { 
  font-size: 1.75rem; 
  font-weight: 800; 
  color: var(--primary); 
  line-height: 1;
}
.stat-label { 
  font-size: 0.8rem; 
  color: var(--gray-500); 
  margin-top: 0.25rem;
}

@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-phone { margin: 0 auto; }
  .hero-trust { justify-content: center; flex-wrap: wrap; }
  .hero-image { margin-top: 2rem; }
  .hero-stats { position: relative; bottom: 0; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
}

/* ============ FEATURES ============ */
.features {
  padding: 5rem 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
}

@media (max-width: 968px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============ SECTIONS ============ */
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* ============ LOCALITIES ============ */
.localities { background: var(--white); }

.region-section {
  margin-bottom: 3rem;
}

.region-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
}

.region-header h3 {
  font-size: 1.25rem;
}

.region-emoji {
  font-size: 1.5rem;
}

.localities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.locality-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.locality-card:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateX(4px);
}

.locality-card svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.locality-name {
  font-weight: 500;
  color: var(--gray-800);
  font-size: 0.9rem;
}

.locality-card:hover .locality-name {
  color: var(--primary);
}

/* ============ SERVICES ============ */
.services { background: var(--gray-50); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 0.5rem;
}

.service-content p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.service-link:hover {
  gap: 0.75rem;
}

@media (max-width: 968px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============ CONTENT (SEO) ============ */
.content-section {
  padding: 5rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
}

.content-main h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.content-main h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border: none;
}

.content-main h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

.content-main p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.content-main a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-main a:hover {
  text-decoration-thickness: 2px;
}

.content-main ul, .content-main ol {
  margin-bottom: 1.5rem;
}

.content-main li {
  line-height: 1.7;
}

.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.info-box h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-box p {
  margin: 0;
  color: var(--gray-700);
}

/* Sidebar */
.content-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sidebar-cta {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
}

.sidebar-cta h4 {
  color: white;
}

.sidebar-cta p {
  opacity: 0.9;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.sidebar-cta .btn {
  width: 100%;
  background: white;
  color: var(--primary-dark);
}

.sidebar-phone {
  text-align: center;
}

.sidebar-phone-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.sidebar-phone-text {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 0.5rem 0;
}

.sidebar-links a:hover {
  color: var(--primary);
}

.sidebar-links svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar { display: none; }
}

/* ============ FAQ ============ */
.faq { background: var(--gray-50); }

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--gray-400);
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============ CTA ============ */
.cta-section {
  background: var(--primary-gradient);
  padding: 5rem 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-section .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.625rem;
}

.footer a {
  font-size: 0.9rem;
  color: var(--gray-400);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
