/* ===== CSS Variables / Color Palette ===== */
:root {
  --blue-primary: #3578AC;
  --blue-dark: #1B4F72;
  --blue-darker: #13374F;
  --blue-light: #D4EAF7;
  --blue-bg: #EAF4FB;
  --green-accent: #3DA349;
  --green-dark: #2E7D32;
  --yellow-green: #B8CC2A;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --gray-light: #F5F7FA;
  --gray-medium: #6B7280;
  --gray-border: #E0E0E0;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-accent); }

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

/* ===== Top Bar ===== */
.top-bar {
  background: var(--blue-darker);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--yellow-green); font-weight: 600; }
.top-bar a:hover { color: var(--white); }
.top-bar .licenses { color: rgba(255,255,255,0.7); }

/* ===== Header / Navigation ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.logo { flex-shrink: 0; }
.logo img { height: 100px; width: auto; display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--blue-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--blue-darker);
  font-weight: 700;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  font-size: 1.05rem;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--blue-dark);
  color: var(--white);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle span { background: var(--blue-dark); }
  .logo img { height: 70px; }
  .nav-toggle { display: block; }
  .nav-toggle span { background: var(--white); }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 999;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 20px; border-radius: 0; border-bottom: 1px solid var(--gray-border); }
  .main-nav li:last-child a { border-bottom: none; }
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 60%, #2A8FC1 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}
.hero .highlight { color: var(--yellow-green); }

@media (max-width: 768px) {
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-align: center;
  position: relative;
  z-index: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-primary {
  background: var(--green-accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }

.btn-phone {
  background: var(--yellow-green);
  color: var(--blue-darker);
  font-size: 1.15rem;
}
.btn-phone:hover { background: #CFE032; color: var(--blue-darker); }

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CTA Banner (appears on every page) ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--green-accent), var(--green-dark));
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 24px; opacity: 0.95; }
.cta-banner .btn-phone { background: var(--white); color: var(--green-dark); }
.cta-banner .btn-phone:hover { background: var(--yellow-green); color: var(--blue-darker); }

/* ===== Section Styles ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-light); }
.section-blue { background: var(--blue-bg); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--gray-medium);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-header .underline {
  width: 60px;
  height: 4px;
  background: var(--green-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== Service Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--blue-primary);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card .icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Features / Why Choose Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.feature {
  text-align: center;
  padding: 24px;
}
.feature .icon {
  width: 64px;
  height: 64px;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}
.feature h3 {
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.feature p {
  color: var(--gray-medium);
  font-size: 0.95rem;
}

/* ===== About Content ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 {
  font-size: 2rem;
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--gray-medium);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-image {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  border-radius: var(--radius);
  padding: 48px;
  color: var(--white);
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-image .stat { font-size: 3rem; font-weight: 800; color: var(--yellow-green); }
.about-image .stat-label { font-size: 1.1rem; margin-bottom: 24px; }

@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; }
}

/* ===== Service Area ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.area-item {
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  transition: transform var(--transition);
}
.area-item:hover { transform: translateY(-2px); }
.area-item .pin { color: var(--green-accent); font-size: 1.2rem; }

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  color: var(--blue-dark);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail .icon-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-detail h4 { color: var(--blue-dark); margin-bottom: 4px; }
.contact-detail p { color: var(--gray-medium); }
.contact-detail a { color: var(--blue-primary); font-weight: 600; }

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form h3 {
  color: var(--blue-dark);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--blue-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Service Detail List ===== */
.service-detail {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue-primary);
}
.service-detail h3 {
  color: var(--blue-dark);
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-detail p {
  color: var(--gray-medium);
  margin-bottom: 16px;
  line-height: 1.7;
}
.service-detail ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.service-detail ul li {
  padding: 6px 0;
  color: var(--black);
  position: relative;
  padding-left: 24px;
}
.service-detail ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green-accent);
  font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-darker);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.footer-col p { margin-bottom: 12px; line-height: 1.7; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--yellow-green); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-logo { height: 50px; margin-bottom: 16px; }
.footer-phone {
  color: var(--yellow-green);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom .licenses {
  color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Contact form status message ===== */
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.4;
}
.form-status.success {
  background: var(--blue-light);
  color: var(--blue-darker);
  border: 1px solid var(--blue-primary);
}
.form-status.error {
  background: #FDECEA;
  color: #8B1E1E;
  border: 1px solid #E0B4B4;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
