/* ============================================================
   PlanTech Solutions — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:      #1a2744;
  --navy-mid:  #22345c;
  --blue:      #2c5aa0;
  --blue-mid:  #3b6bb5;
  --blue-light:#5584c8;
  --accent:    #4a9fd4;
  --steel:     #6b8ab0;
  --light-bg:  #f4f6fa;
  --border:    #d8e2ef;
  --text:      #1e2a3a;
  --text-mid:  #3d4f66;
  --text-light:#6b7f99;
  --white:     #ffffff;
  --check:     #3a9e5f;

  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --shadow-sm: 0 2px 8px rgba(26,39,68,0.08);
  --shadow-md: 0 6px 24px rgba(26,39,68,0.12);
  --shadow-lg: 0 12px 48px rgba(26,39,68,0.16);

  --radius: 6px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  margin: 0;
  padding: 0;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 0 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 88px;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.logo-img {
  height: 72px;
  width: auto;
  max-width: 300px;
  display: block;
  /* Pull left to compensate for PNG's internal whitespace padding */
  margin-left: 0;
  margin-right: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo-text .brand span {
  color: var(--blue);
}

.logo-text .tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  font-weight: 500;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  background: rgba(44,90,160,0.07);
}

.nav-contact-btn {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 7px 18px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  margin-left: 8px;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-contact-btn:hover {
  background: var(--blue-mid) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  align-self: center;
  margin-right: 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
  transition: opacity 0.3s ease;
}

.mobile-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--blue); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 60px 24px 0;
}

.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  list-style: none;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-text span { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-bar {
  background: var(--navy);
}

/* ── Page Sections ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue) 100%);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.page-hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  position: relative;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Prose content */
.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose p {
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.prose p:last-child { margin-bottom: 0; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section { padding: 48px 20px; }
  .page-hero { padding: 52px 20px; }
}
