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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #fbfbf9;
  --color-white: #ffffff;
  --color-dark: #252915;
  --color-olive: #56612f;
  --color-olive-mid: #6f7557;
  --color-muted-bg: #f4f4f1;
  --color-border: #e2e2dc;
  --font: 'Roboto', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-dark);
  font-weight: 400;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-olive); }

.nav-links a.active {
  color: var(--color-dark);
  font-weight: 500;
  border-bottom: 2px solid var(--color-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border: 1.5px solid var(--color-olive);
  color: var(--color-olive);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-olive);
  color: var(--color-white);
}

.btn-white {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-white:hover {
  background: var(--color-white);
  color: var(--color-olive);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--color-olive);
  padding: 5rem 2rem 4rem;
  color: var(--color-white);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 680px;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.7;
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--color-olive);
  color: var(--color-white);
  padding: 3.5rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.4rem;
}

.footer-brand strong {
  font-size: 1rem;
  font-weight: 700;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  opacity: 0.9;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-col ul li a:hover { opacity: 1; }

.footer-connect-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-connect-link:hover { opacity: 1; }

.footer-connect-link svg { flex-shrink: 0; }

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ── HOME: HERO ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='%23000' stroke-opacity='0.03' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-olive-mid);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

/* ── HOME: PAST EXPERIENCE ── */
.past-experience {
  background: var(--color-olive);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--color-white);
}

.past-experience h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.past-experience > p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2.75rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.logo-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 90px;
  flex: 1 1 150px;
  max-width: 200px;
}

.logo-card img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* ── HOME: SERVICES PREVIEW ── */
.services-preview {
  padding: 5rem 2rem;
  background: var(--color-bg);
  text-align: center;
}

.services-preview h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-olive-mid);
  margin-bottom: 0.6rem;
}

.services-preview > p {
  font-size: 1rem;
  color: var(--color-olive-mid);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: left;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-olive);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--color-olive-mid);
  line-height: 1.6;
}

/* ── HOME: MEET AHMED ── */
.meet-ahmed {
  background: var(--color-muted-bg);
  padding: 5rem 2rem;
}

.meet-ahmed-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}

.ahmed-photo img {
  width: 260px;
  height: 330px;
  object-fit: cover;
  border-radius: 12px;
}

.ahmed-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-olive);
  margin-bottom: 1rem;
}

.ahmed-text p {
  font-size: 0.95rem;
  color: var(--color-olive-mid);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* ── HOME: CONTACT CTA ── */
.contact-cta {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--color-bg);
}

.contact-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-olive-mid);
  margin-bottom: 0.6rem;
}

.contact-cta > p {
  font-size: 0.95rem;
  color: var(--color-olive-mid);
  margin-bottom: 2.5rem;
}

.contact-form {
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--color-dark);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-olive);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
}

.form-result {
  font-size: 0.875rem;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: none;
}

.form-result--success {
  display: block;
  background: #edf7ed;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-result--error {
  display: block;
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ── SERVICES PAGE ── */
.services-list {
  max-width: 840px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-detail-card {
  background: var(--color-muted-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}

.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-olive);
}

.service-detail-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.service-detail-header p {
  font-size: 0.875rem;
  color: var(--color-olive-mid);
}

.capabilities h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.capabilities ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.capabilities ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-olive-mid);
}

.capabilities ul li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-olive-mid);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.services-cta {
  background: var(--color-muted-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.services-cta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.6rem;
}

.services-cta p {
  font-size: 0.95rem;
  color: var(--color-olive-mid);
  margin-bottom: 1.75rem;
}

/* ── ABOUT PAGE ── */
.about-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

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

.about-sidebar img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 1rem;
}

.about-sidebar h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.about-sidebar .title {
  font-size: 0.875rem;
  color: var(--color-olive-mid);
  margin-bottom: 1.25rem;
}

.about-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--color-olive-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── OUR PURPOSE PAGE ── */
.purpose-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.purpose-content p {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── CONTACT PAGE ── */
.contact-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}

.contact-page > p {
  font-size: 0.9rem;
  color: var(--color-olive-mid);
  margin-bottom: 2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-white); padding: 1rem 2rem; border-bottom: 1px solid var(--color-border); gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .meet-ahmed-inner { grid-template-columns: 1fr; }
  .ahmed-photo { text-align: center; }
  .ahmed-photo img { width: 200px; height: 250px; margin: 0 auto; }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar img { width: 180px; height: 230px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-grid { gap: 0.75rem; }
  .logo-card { min-width: 120px; max-width: 160px; }
}
