/* ============================================================
   Muzaffarabad Ads Agency (MAA) — static website stylesheet
   Brand: blue #0B5FA5, orange #F47B20
   ============================================================ */

:root {
  --blue: #0B5FA5;
  --blue-dark: #084a82;
  --orange: #F47B20;
  --orange-dark: #d96a15;
  --ink: #1f2937;
  --muted: #5b6b7c;
  --line: #dbe4ee;
  --bg: #f6f9fc;
  --white: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: var(--blue); }
a:hover { color: var(--orange-dark); }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(11, 95, 165, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text { line-height: 1.2; }
.brand-text .name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
}
.brand-text .tag {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
}

.main-nav a {
  display: inline-block;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  border-radius: 6px;
}

.main-nav a:hover { background: #eaf3fb; color: var(--blue); }
.main-nav a.active { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none;
  background: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 0 56px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

.hero p {
  margin: 0 auto 26px;
  max-width: 760px;
  font-size: 1.1rem;
}

.hero .btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white) !important;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover { background: var(--orange-dark); color: var(--white) !important; }

.btn.blue { background: var(--blue); }
.btn.blue:hover { background: var(--blue-dark); }

.btn.ghost {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
}
.btn.ghost:hover { background: rgba(255,255,255,0.15); }

.btn.small { padding: 7px 14px; font-size: 0.9rem; }

/* ---------- Page body ---------- */
.page-main { padding: 36px 0 56px; }

.page-title {
  color: var(--blue);
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  border-bottom: 3px solid var(--orange);
  padding-bottom: 8px;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.content-card h2 { color: var(--blue); margin-top: 28px; }
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { color: var(--blue-dark); }

.center { text-align: center; }

/* Columns (from source content) */
.cols {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.col {
  flex: 1 1 260px;
  background: #f2f8fd;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.col h2, .col h3 { margin-top: 0; }

/* Package cards */
.packages { display: flex; gap: 20px; flex-wrap: wrap; }
.packages .col { border-top-color: var(--orange); }

/* ---------- Jobs ---------- */
.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.job-card h3 { margin: 0 0 6px; color: var(--blue); }

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  background: #e6f4ea;
  color: #137333;
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge.closed { background: #fdecea; color: #b3261e; }

.apply-box {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.apply-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  display: none;
}

/* ---------- Forms ---------- */
form .field { margin-bottom: 14px; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="month"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(11, 95, 165, 0.35);
  border-color: var(--blue);
}

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 220px; }

.form-error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c6c2;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: none;
}

/* ---------- CV Maker ---------- */
.cv-layout {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cv-form { flex: 1 1 380px; }
.cv-preview-wrap { flex: 1 1 420px; }

.cv-preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  min-height: 500px;
  box-shadow: 0 4px 18px rgba(11, 95, 165, 0.08);
}

.cv-preview h1 {
  margin: 0 0 2px;
  color: var(--blue);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-preview .cv-contact { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }

.cv-preview h2 {
  color: var(--blue);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  margin: 18px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-preview p { margin: 4px 0; }
.cv-preview ul { margin: 4px 0 4px 18px; padding: 0; }

.entry-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fbfdff;
}

.entry-block .remove-btn {
  background: none;
  border: 0;
  color: #b3261e;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0;
}

/* ---------- Client dashboard ---------- */
.dashboard { display: none; }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 24px;
  background: var(--white);
}

table.data th {
  background: var(--blue);
  color: var(--white);
  text-align: left;
  padding: 9px 10px;
  font-size: 0.92rem;
}

table.data td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}

.progress-bar {
  background: #e5e5e5;
  height: 10px;
  border-radius: 5px;
  min-width: 120px;
}

.progress-bar > div {
  background: var(--orange);
  height: 10px;
  border-radius: 5px;
}

.login-box {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #dbeafe;
  padding: 40px 0 22px;
  margin-top: 20px;
}

.footer-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-col { flex: 1 1 240px; }

.footer-col h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }

.site-footer a { color: #dbeafe; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: var(--white); }
.footer-brand .name { color: var(--white); font-weight: 700; }

.copyright {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 26px;
  padding-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; padding: 10px 12px; }
  .content-card { padding: 20px 18px; }
}

/* ---------- Print (CV Maker: print only the CV) ---------- */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .page-title, .cv-form, .no-print { display: none !important; }
  .page-main { padding: 0; }
  .container { width: 100%; }
  .cv-preview {
    border: 0;
    box-shadow: none;
    padding: 0;
    min-height: 0;
  }
  .cv-layout { display: block; }
}
