/* ================================
   SaudiExpatGuide – Global UI Core
   Production CSS (Stabilized)
   ================================ */

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f6f8fa;
  color: #1f2937;
  line-height: 1.6;
}

/* GLOBAL CONTAINERS */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.header {
  background: #0f172a;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  color: #22c55e;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: #e5e7eb;
  margin-left: 22px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: #22c55e;
}

/* ================= HERO ================= */
.hero {
  background: #ffffff;
  padding: 90px 20px;
  text-align: center;
}

.hero-content {
  max-width: 850px;
  margin: auto;
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #0f172a;
}

.hero p {
  font-size: 18px;
  color: #4b5563;
  max-width: 700px;
  margin: auto;
}

.hero-buttons {
  margin-top: 30px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #166534, #22c55e);
  color: white;
  border: none;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34,197,94,0.25);
}

.btn.outline {
  border: 2px solid #166534;
  color: #166534;
  background: transparent;
}

.btn.outline:hover {
  background: #166534;
  color: white;
}

.btn.small {
  background: #166534;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 20px;
  background: #f6f8fa;
  text-align: center;
}

.section.light {
  background: #ffffff;
}

.section h2 {
  font-size: 30px;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-subtitle {
  color: #6b7280;
  margin-bottom: 45px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= CARDS ================= */
.card-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: white;
  padding: 28px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.card h3 {
  margin-top: 12px;
  font-size: 18px;
  color: #0f172a;
}

.card p {
  margin-top: 10px;
  font-size: 14px;
  color: #6b7280;
}

.icon {
  font-size: 34px;
  margin-bottom: 10px;
  color: #22c55e;
}

/* ================= SERVICES ================= */
.service-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  padding: 26px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: #0f172a;
}

.service-card p {
  font-size: 14px;
  color: #6b7280;
}

/* ================= FORMS ================= */
form {
  max-width: 700px;
  margin: auto;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 14px;
  font-size: 14px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.15);
}

/* ================= FOOTER ================= */
.footer {
  background: #0f172a;
  color: #e5e7eb;
  text-align: center;
  padding: 28px 15px;
  font-size: 14px;
}

.footer a {
  color: #22c55e;
  text-decoration: none;
  margin: 0 6px;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== LEGAL LINKS ===== */
.footer .legal-links{
  margin-top:8px;
  font-size:12px;
  opacity:0.9;
}

/* ===== Disclaimer ===== */
.disclaimer{
  font-size:12px;
  color:#9ca3af;
  text-align:center;
  max-width:900px;
  margin:15px auto 0;
  line-height:1.6;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav a {
    margin: 10px 10px;
  }

  .section {
    padding: 60px 15px;
  }

}
