/* Fresh Permits - styles.css */
/* Mobile-first responsive design */

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

:root {
  --blue: #1a365d;
  --blue-light: #2a4a7f;
  --blue-dark: #0f2440;
  --green: #38a169;
  --green-hover: #2f855a;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--green);
}

.header-phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-phone:hover {
  color: var(--green);
  text-decoration: none;
}

/* ===== NAV ===== */
.site-nav {
  background: var(--blue-dark);
  padding: 0.5rem 1rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav-inner a {
  color: var(--gray-200);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.nav-inner a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 0.92;
}

.hero-phone {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.hero-phone:hover {
  background: var(--green-hover);
  text-decoration: none;
  color: var(--white);
}

/* ===== CONTAINER / SECTION ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--gray-50);
}

.section-title {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

/* ===== CARDS GRID ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 2rem 1.5rem;
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.trust-item {
  font-weight: 600;
  font-size: 1rem;
}

.trust-item span {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

/* ===== SERVICE AREAS ===== */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
}

.area-list li {
  background: var(--blue);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.cta-banner h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.cta-banner .hero-phone {
  font-size: 1.15rem;
}

/* ===== CONTENT PAGE ===== */
.page-content {
  padding: 2.5rem 0;
}

.page-content h1 {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.3rem;
  color: var(--blue);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content h3 {
  font-size: 1.1rem;
  color: var(--blue-light);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content p,
.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.35rem;
}

.inline-cta {
  background: var(--gray-50);
  border-left: 4px solid var(--green);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.inline-cta p {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-800);
}

.inline-cta a {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== PERMIT TABLE ===== */
.permit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.permit-table th,
.permit-table td {
  border: 1px solid var(--gray-200);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.permit-table th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.permit-table tr:nth-child(even) {
  background: var(--gray-50);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--gray-800);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.12);
}

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

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

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

.contact-info-box {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1.5rem;
}

.contact-info-box h3 {
  color: var(--blue);
  margin-bottom: 1rem;
}

.contact-info-box p {
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

.contact-info-box .phone-big {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
}

.map-placeholder {
  width: 100%;
  height: 250px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--blue-dark);
  color: var(--gray-200);
  padding: 2rem 1.5rem 1.25rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-col a {
  color: var(--gray-200);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ===== RESPONSIVE: TABLET ===== */
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RESPONSIVE: DESKTOP ===== */
@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 4.5rem 2rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-content h1 {
    font-size: 2rem;
  }
}
