/* ============================================
   MARIAN AGRO — MASTER STYLESHEET (CORPORATE)
   ============================================ */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --green: #2e7d32; /* Darker corporate green */
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --yellow: #fbc02d;
  --yellow-hover: #f57f17;
  
  --bg-main: #ffffff;
  --bg-gray: #f5f7fa; /* Light neutral gray */
  --bg-dark: #263238; /* Corporate charcoal instead of navy */
  
  --text: #374151;
  --text-mid: #4b5563;
  --text-light: #6b7280;
  --border: #e5e7eb;
  
  /* FLAT DESIGN - Reduced shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.08);
  
  /* CORPORATE SHAPES - Sharper edges */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 6px; /* Replaced extreme pills with slight rounding */
  
  --transition: all .2s ease-in-out;
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
  font-family: 'Roboto', 'Inter', sans-serif; /* Corporate font */
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 { color: #1f2937; line-height: 1.2; font-family: 'Roboto', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }

/* ---------- Utilities ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.bg-gray { background: var(--bg-gray); }
.bg-green { background: var(--green); }
.text-center { text-align: center; }
.text-white { color: #fff; }
.hidden { display: none !important; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(27, 94, 32, 0.1);
}
.section-title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 800; line-height: 1.2; color: var(--text); margin-bottom: 16px; }
.section-title.white { color: #fff; }
.section-desc { font-size: 1.05rem; color: var(--text-light); max-width: 640px; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent; transition: var(--transition); white-space: nowrap; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-yellow { background: var(--yellow); color: var(--text); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); color: #fff; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--green); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
}
.header-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.header-logo .logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: .02em;
}
.header-logo .logo-tagline {
  font-size: .7rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Desktop Nav */
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-mid);
  transition: var(--transition);
}
.header-nav a:hover,
.header-nav a.active { color: var(--green); background: var(--green-light); }

/* Right cluster */
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Language switcher */
.lang-wrap { position: relative; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  color: var(--text-mid);
  transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--text-mid); }
.lang-toggle i { font-size: 1rem; transition: transform .2s; }
.lang-toggle.open i { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 140px;
  display: none;
  z-index: 999;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--bg-gray);
}
.lang-menu a:last-child { border-bottom: none; }
.lang-menu a:hover { background: var(--bg-gray); color: var(--text); }
.lang-menu a.selected { color: var(--green); font-weight: 600; }

/* Mobile Burger */
.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-mid);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .7);
  opacity: 0;
  transition: opacity .3s;
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .3s ease-in-out;
  padding: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.mobile-drawer.open { pointer-events: all; }
.mobile-drawer.open .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-gray);
}
.drawer-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}
.drawer-nav { padding: 12px 0; }
.drawer-nav a {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--bg-gray);
}
.drawer-nav a:hover, .drawer-nav a.active { color: var(--green); background: var(--green-light); border-left: 3px solid var(--green); padding-left: 17px; }
.drawer-footer { padding: 20px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); }

/* ---------- HERO (CORPORATE) ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('../assets/images/hero_tractor.png') no-repeat center center/cover;
  z-index: 1;
}
/* Left-aligned dark gradient overlay for corporate feel */
.hero-bg-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(27, 94, 32, 0.95) 0%, rgba(27, 94, 32, 0.7) 40%, rgba(27, 94, 32, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px; /* Constrain width for left alignment */
  text-align: left; /* Align left */
  color: #fff;
  padding-left: 20px; /* Add some padding if container doesn't have enough */
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-badge i { color: var(--yellow); font-size: 1.2rem; }
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
}
.hero-title span { color: var(--yellow); }
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 550px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: scrollFade 2s infinite;
}
@keyframes scrollFade { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- ABOUT SECTION ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-features { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; }
.about-feature-icon { width: 40px; height: 40px; background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-mid); flex-shrink: 0; }
.about-feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.about-feature p { font-size: .9rem; color: var(--text-light); }

/* ---------- SERVICES SECTION ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { border-color: var(--text-mid); }
.service-card-img { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-card-img img { transform: scale(1.02); }
.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-icon { font-size: 1.75rem; color: var(--text-mid); margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: .9rem; flex: 1; margin-bottom: 20px; }
.service-card .btn { align-self: flex-start; }

/* ---------- PRODUCTS SECTION (PARTS & MACHINERY) ---------- */
.products-section { background: var(--bg-gray); padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff;
  border-radius: var(--radius-md); /* Slightly rounder for the new look */
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.product-card-img { aspect-ratio: 4/3; overflow: hidden; background: #eef2f6; position: relative; display: flex; align-items: center; justify-content: center; padding: 16px; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; }

/* Card actions (top right over image) */
.card-actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.card-action-btn { width: 32px; height: 32px; background: rgba(255,255,255,.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text); border: none; cursor: pointer; transition: var(--transition); backdrop-filter: blur(4px); }
.card-action-btn:hover { background: #fff; color: var(--green); }

.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); line-height: 1.4; }
.product-card p { font-size: .85rem; color: var(--text-light); margin-bottom: 20px; flex: 1; }

/* Bottom flex area in card */
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.quote-badge { display: inline-flex; align-items: center; padding: 6px 12px; background: var(--bg-gray); color: var(--text-mid); border-radius: var(--radius-sm); font-size: .75rem; font-weight: 600; }
.btn-plus { width: 36px; height: 36px; border: 1px solid var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--green); background: #fff; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.btn-plus:hover { background: var(--green); color: #fff; }

/* ---------- CTA SECTION (FLAT CORPORATE) ---------- */
.cta-section { background: var(--green); padding: 64px 0; border-top: 1px solid var(--green-dark); border-bottom: 1px solid var(--green-dark); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-text h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-text p { font-size: 1rem; color: rgba(255,255,255,.8); }
.cta-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- WHY US (FLAT) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: #fff; border-radius: var(--radius-sm); padding: 32px; border: 1px solid var(--border); transition: var(--transition); }
.why-card:hover { border-color: var(--green); }
.why-icon { width: 48px; height: 48px; background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--text-mid); margin-bottom: 20px; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.why-card p { font-size: .9rem; color: var(--text-light); }

/* ---------- CATALOG SIDEBAR LAYOUT ---------- */
.cat-layout { display: flex; gap: 32px; align-items: flex-start; }
.cat-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.cat-sidebar h3 { font-weight: 700; font-size: .95rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.cat-sidebar ul { margin-bottom: 24px; }
.cat-sidebar ul li a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: var(--text-mid); margin-bottom: 4px; border: 1px solid transparent; }
.cat-sidebar ul li a:hover { background: var(--bg-gray); border-color: var(--border); color: var(--text); }
.cat-sidebar ul li a.active { background: var(--green-light); border-color: var(--green-light); color: var(--green); font-weight: 600; }
.sidebar-cta { background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.sidebar-cta p { color: var(--text-mid); font-size: .8rem; margin-bottom: 12px; font-weight: 500; }
.sidebar-cta .btn { width: 100%; font-size: .85rem; padding: 10px; }
.cat-content { flex: 1; }
.cat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- HERO SPLIT (big cats on home) ---------- */
.big-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.big-cat {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  border: 1px solid var(--border);
}
.big-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.big-cat:hover img { transform: scale(1.03); }
.big-cat-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17, 24, 39, .85) 0%, rgba(17, 24, 39, .2) 100%); }
.big-cat-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }
.big-cat-content h3 { font-size: 1.4rem; color: #fff; font-weight: 700; margin-bottom: 6px; }
.big-cat-content p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 16px; }

/* ---------- PROCESS ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-grid::after { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 1px; background: var(--border); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.process-num { width: 64px; height: 64px; background: #fff; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--text-mid); margin: 0 auto 16px; }
.process-step h4 { font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--text); }
.process-step p { font-size: .85rem; color: var(--text-light); }

/* ---------- TIMELINE (About) ---------- */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-item { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 40px; }
.tl-item:nth-child(odd) { flex-direction: row; }
.tl-item:nth-child(even) { flex-direction: row-reverse; }
.tl-content { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; }
.tl-item:nth-child(odd) .tl-content { text-align: right; }
.tl-year { font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 6px; display: block; }
.tl-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.tl-content p { font-size: .9rem; color: var(--text-light); }
.tl-dot { width: 16px; height: 16px; background: var(--bg-gray); border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; margin-top: 32px; position: relative; z-index: 2; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; background: #fff; overflow: hidden; }
.faq-item:hover { border-color: var(--text-mid); }
.faq-q { padding: 16px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: .95rem; color: var(--text); }
.faq-q i { font-size: 1.1rem; color: var(--text-mid); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 20px 16px; color: var(--text-light); font-size: .9rem; line-height: 1.6; display: none; border-top: 1px solid var(--bg-gray); margin-top: 8px; padding-top: 12px; }
.faq-item.open .faq-a { display: block; }

/* ---------- CONTACT FORM ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: flex-start; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; background: #fff; }
.contact-info-icon { width: 40px; height: 40px; background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-mid); flex-shrink: 0; }
.contact-info-card h4 { font-weight: 700; font-size: .95rem; margin-bottom: 4px; color: var(--text); }
.contact-info-card p, .contact-info-card a { color: var(--text-light); font-size: .9rem; }
.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 32px; }
.contact-form-wrap h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; color: var(--text); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--text-mid); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-gray);
  outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); background: #fff; }

/* ---------- MODAL ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .8); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-box { background: #fff; width: 100%; max-width: 480px; border-radius: var(--radius-sm); padding: 40px; position: relative; transform: translateY(16px); transition: var(--transition); border: 1px solid var(--border); }
.modal-backdrop.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; color: var(--text-mid); transition: var(--transition); }
.modal-close:hover { background: var(--bg-gray); border-color: var(--border); color: var(--text); }
.modal-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.modal-box p.modal-sub { color: var(--text-light); margin-bottom: 24px; font-size: .9rem; }
.modal-success { text-align: center; padding: 16px 0; }
.modal-success i { font-size: 4rem; color: var(--green); margin-bottom: 16px; display: block; }
.modal-success h4 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.modal-success p { color: var(--text-light); font-size: .9rem; }

/* ---------- FOOTER (FLAT CORPORATE) ---------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding-top: 64px; border-top: 4px solid var(--green); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 40px; padding-bottom: 48px; }
.footer-brand-name { font-size: 1.75rem; font-weight: 800; color: #fff; letter-spacing: .02em; margin-bottom: 8px; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 24px; line-height: 1.6; max-width: 280px; }

.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-address-items { display: flex; flex-direction: column; gap: 16px; }
.footer-address-item { display: flex; gap: 12px; align-items: flex-start; }
.footer-address-item i { font-size: 1rem; color: rgba(255,255,255,.4); flex-shrink: 0; margin-top: 2px; }
.footer-address-item p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.footer-address-item p strong { color: rgba(255,255,255,.9); display: block; margin-bottom: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }
.back-to-top { width: 36px; height: 36px; background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,.6); font-size: 1rem; transition: var(--transition); }
.back-to-top:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header-nav, .header-quote-btn { display: none; }
  .burger-btn { display: flex; }
  
  .hero { min-height: 60vh; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::after { display: none; }
  
  .big-cat-grid { grid-template-columns: 1fr; }
  .big-cat { height: 220px; }
  
  .cta-inner { flex-direction: column; text-align: left; align-items: flex-start; }
  .cta-actions { width: 100%; }
  
  .cat-layout { flex-direction: column; }
  .cat-sidebar { width: 100%; position: static; }
  .cat-grid-3 { grid-template-columns: 1fr 1fr; }
  
  .contact-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 24px; }
  .tl-item, .tl-item:nth-child(even) { flex-direction: column; padding-left: 48px; gap: 16px; margin-bottom: 32px; }
  .tl-item:nth-child(odd) .tl-content { text-align: left; }
  .tl-dot { position: absolute; left: 16px; margin-top: 0; top: 0; }
  .tl-item { position: relative; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section, .section-sm { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  
  .hero-title { font-size: 1.75rem; }
  
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid-3 { grid-template-columns: 1fr; }
  
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  
  .modal-box { padding: 24px 16px; }
  .contact-form-wrap { padding: 24px 16px; }
}
