/* ============================================================
   Cap City Marketing — Main Stylesheet
   ============================================================ */

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

:root {
  --accent:       #c8952a;
  --accent-hover: #b5821f;
  --dark:         #0c343d;
  --text:         #2b2b2b;
  --text-light:   #666;
  --bg:           #fff;
  --bg-light:     #f6f6f6;
  --border:       #e2e2e2;
  --radius:       6px;
  --shadow:       0 2px 14px rgba(0,0,0,0.09);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1100px;
}

html { scroll-behavior: smooth; }

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

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

/* === Typography === */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === Container === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Sections === */
.section {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-wrap { padding: 80px 0; }
.section-wrap--light { background: var(--bg-light); }
.section-wrap--dark  { background: var(--dark); }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header { max-width: 600px; margin-bottom: 52px; }
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* Dark section overrides */
.section-wrap--dark h2,
.section-wrap--dark h3,
.section-wrap--dark .section-header p {
  color: rgba(255,255,255,0.75);
}
.section-wrap--dark h2 { color: #fff; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s;
  border: 2px solid transparent;
  font-family: var(--font);
  line-height: 1;
}

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

.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--outline-dark:hover { background: var(--dark); color: #fff; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* === Navigation === */
.nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo img {
  height: 34px;
  width: auto;
}

.nav__logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.18s;
}
.nav__link:hover,
.nav__link.active { color: #fff; }

.nav__cta {
  background: var(--accent);
  color: var(--dark) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
}
.nav__cta:hover { background: var(--accent-hover); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.22s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Footer === */
.footer { background: var(--dark); color: rgba(255,255,255,0.55); font-size: 0.875rem; }

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer__brand img { height: 30px; margin-bottom: 18px; }
.footer__brand p { line-height: 1.7; color: rgba(255,255,255,0.5); }

.footer__col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col li a { color: rgba(255,255,255,0.5); transition: color 0.18s; }
.footer__col li a:hover { color: var(--accent); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* === Hero (Home) === */
.hero {
  background: var(--dark);
  padding: 108px 24px 100px;
  text-align: center;
}
.hero__inner { max-width: 780px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.68);
  margin: 0 auto 36px;
  max-width: 560px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === Page Hero (inner pages) === */
.page-hero {
  background: var(--dark);
  padding: 72px 24px;
}
.page-hero__inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 { color: #fff; }
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 520px;
  margin-top: 14px;
  margin-bottom: 0;
}

/* === Services Grid (Home overview) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.service-card__icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card__icon svg { width: 20px; height: 20px; fill: var(--dark); }
.service-card h3 { margin-bottom: 8px; font-size: 1rem; }
.service-card p { color: var(--text-light); font-size: 0.9rem; }

/* === Pillars === */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.pillar__num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--text-light); font-size: 0.95rem; }

/* === CTA Banner === */
.cta-banner {
  background: var(--accent);
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 { color: var(--dark); margin-bottom: 12px; }
.cta-banner p { color: rgba(20,23,28,0.65); font-size: 1.05rem; margin-bottom: 32px; }

/* === About: Fit grid === */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.fit-item {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
}

.fit-item p { font-size: 0.95rem; color: var(--text); margin: 0; }

/* === Two-col layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* === Services Detail Page === */
.service-entry {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.service-entry:last-child { border-bottom: none; }

.service-entry__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.service-entry__icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-entry__icon svg { width: 24px; height: 24px; fill: var(--dark); }
.service-entry__head h2 { font-size: 1.6rem; }

.service-entry__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.service-entry__body p { color: var(--text-light); font-size: 0.975rem; }

.service-entry__includes h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 14px;
}
.service-entry__includes ul { display: flex; flex-direction: column; gap: 10px; }
.service-entry__includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.service-entry__includes li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { color: var(--text-light); font-size: 0.975rem; }

.contact-facts { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }

.contact-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-fact__icon {
  width: 38px;
  height: 38px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-fact__icon svg { width: 17px; height: 17px; fill: var(--accent); }
.contact-fact h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 2px; }
.contact-fact p { font-size: 0.9rem; color: var(--text); margin: 0; }

/* === Form === */
.form {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }
.form-group:last-of-type { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252,175,59,0.18);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form__note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 14px;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 800px) {
  .nav__menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav__menu.open { max-height: 360px; padding-bottom: 12px; }
  .nav__link {
    display: block;
    padding: 13px 24px;
    width: 100%;
    font-size: 0.95rem;
  }
  .nav__cta { margin: 8px 24px 4px; display: inline-block; width: auto; }
  .nav__hamburger { display: flex; }

  .section { padding: 56px 20px; }
  .section-wrap { padding: 56px 0; }

  .hero { padding: 72px 20px 64px; }

  .two-col,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

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

  .form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }

  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* === FAQ === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.975rem;
  line-height: 1.7;
  margin: 0;
}
