/*  TABLE OF CONTENTS
    1. Custom Properties
    2. Reset
    3. Base Typography
    4. Layout
    5. Skip Link
    6. Preloader
    7. Update Banner
    8. Site Navigation
    9. Hero
   10. Update Cards
   11. Feature Sections
   12. Forms Grid
   13. FAQ Accordion
   14. Tabs (Office Schedules)
   15. Office Details
   16. Feedback
   17. Site Footer
   18. Responsive (max-width: 991px)
   19. Responsive (max-width: 767px)
   20. Responsive (max-width: 479px)
   21. Reduced Motion
*/

/* ==========================================================================
   1. Custom Properties
   ========================================================================== */

:root {
  /* Colors */
  --color-navy: #143c5f;
  --color-navy-dark: #001f3f;
  --color-blue: #143C5F;
  --color-blue-mobile-menu: #143C5F;
  --color-yellow: #FFD202;
  --color-text: #16151a;
  --color-text-muted: #333;
  --color-bg-light: #e7f2fc;
  --color-bg-lighter: #f5f7fc;
  --color-white: #fff;
  --color-border: rgba(22, 21, 26, 0.15);
  --color-red: #ff0000;

  /* Typography */
  --font-body: 'Poppins', sans-serif;
  --font-icon: 'Font Awesome';
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.5rem;
  --text-lg: 2rem;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Layout */
  --max-width-site: 1280px;
  --max-width-content: 1200px;
  --max-width-narrow: 740px;
  --max-width-hero-text: 670px;
  --nav-height: 72px;
  --space-page-inline: 80px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 16px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

details summary {
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  content: '';
}

/* ==========================================================================
   3. Base Typography
   ========================================================================== */

@font-face {
  font-family: 'Font Awesome';
  src: url('../fonts/fa-regular-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-muted);
  background-color: var(--color-white);
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 120%;
  color: var(--color-text);
}

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

a:hover {
  text-decoration: underline;
}

p {
  margin: 0;
}

strong {
  font-weight: 600;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: 40px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ==========================================================================
   5. Skip Link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-yellow);
  color: var(--color-text);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  text-decoration: none;
}

/* ==========================================================================
   6. Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-navy);
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: preloader-timeout 0.4s 5s forwards;
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

@keyframes preloader-timeout {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.preloader img {
  width: 10%;
}

/* ==========================================================================
   7. Update Banner
   ========================================================================== */

.update-banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--space-sm) 0;
  background-color: var(--color-navy-dark);
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
}

.update-banner:hover {
  text-decoration: none;
}

.update-banner:hover .banner-inner {
  border-bottom: 1px solid var(--color-white);
}

.banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
}

.banner-text {
  color: var(--color-white);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 20px;
}

.banner-arrow {
  color: var(--color-white);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-icon), Arial, sans-serif;
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 20px;
}

/* ==========================================================================
   8. Site Navigation
   ========================================================================== */

#site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav {
  background-color: var(--color-navy);
  padding-inline: var(--space-page-inline);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width-site);
  height: var(--nav-height);
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo:hover {
  opacity: 0.75;
  text-decoration: none;
}

.nav-logo img {
  width: 124px;
}

.nav-menu {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  z-index: 10;
}

.nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-inline: 20px;
  color: var(--color-white);
  letter-spacing: 0.05px;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.nav-link:hover {
  opacity: 0.75;
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--color-white);
  text-decoration: underline;
}

.nav-cta-item {
  padding-left: 20px;
}

.nav-home {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 99;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-hamburger {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ==========================================================================
   9. Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 648px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(#143C5F80, #143C5F80), url('../images/HeroNew.avif');
  background-position: 0 0, 50%;
  background-size: auto, cover;
}

.hero-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max-width-site);
  padding-inline: 40px;
  gap: var(--space-xl);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: var(--max-width-hero-text);
}

.hero h1 {
  color: var(--color-white);
  font-size: 56px;
  font-weight: 400;
  line-height: 120%;
}

.hero-body {
  opacity: 0.8;
  color: var(--color-white);
  letter-spacing: 0.01em;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  align-items: center;
}

.cta-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: var(--space-sm) 20px;
  background-color: var(--color-yellow);
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
}

.cta-primary:hover {
  background-color: var(--color-text);
  color: var(--color-yellow);
  text-decoration: none;
}

.cta-outline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: var(--space-sm) 20px;
  background-color: transparent;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: 20px;
  border: 1px solid var(--color-yellow);
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
}

.cta-outline:hover {
  background-color: var(--color-yellow);
  color: var(--color-text);
  text-decoration: none;
}

/* ==========================================================================
   10. Update Cards
   ========================================================================== */

.updates-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  justify-content: flex-start;
  align-items: center;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  padding-inline: var(--space-page-inline);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.section-title {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 120%;
}

.section-body {
  opacity: 0.8;
  color: var(--color-text-muted);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
  width: 100%;
}

.section-body a {
  color: var(--color-blue);
  font-weight: 500;
}

.updates-grid {
  display: flex;
  gap: var(--space-md);
  max-width: var(--max-width-content);
  width: 100%;
  margin: var(--space-2xl) auto 0;
  padding-bottom: var(--space-4xl);
}

.update-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 550px;
}

.update-card:hover {
  text-decoration: none;
}

.update-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.eyebrow-label {
  color: var(--color-blue);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 20px;
}

.eyebrow-dot {
  width: 4px;
  height: 4px;
  min-width: 4px;
  background-color: rgba(22, 21, 26, 0.7);
  border-radius: var(--radius-pill);
}

.update-date {
  opacity: 0.7;
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 20px;
}

.update-title {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 120%;
}

.update-content {
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 165%;
  overflow-wrap: break-word;
}

.updates-grid .update-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.update-content p + p {
  margin-top: 1em;
}

.update-content a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
}

.update-content .alert-text {
  color: var(--color-red);
  font-weight: 600;
}

.update-content .alert-link {
  color: var(--color-red);
  text-decoration: underline;
}

.update-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 634px;
  width: 634px;
}

.update-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 100%;
  height: 82px;
  padding: 20px var(--space-md);
  gap: var(--space-xl);
  text-decoration: none;
  color: inherit;
}

.update-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.update-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-link-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-blue);
  opacity: 0.6;
}

.update-link-title {
  opacity: 0.8;
  color: var(--color-text);
  letter-spacing: 0.01em;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow-icon {
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-icon), Arial, sans-serif;
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 20px;
  flex-shrink: 0;
}

.arrow-icon.blue {
  color: var(--color-blue);
}

/* Updates page specific */
.updates-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin-inline: auto;
  padding: 0 0 var(--space-3xl);
  gap: var(--space-xl);
}

.updates-list .update-card {
  max-width: 720px;
  padding: var(--space-xl);
}

/* ==========================================================================
   11. Feature Sections
   ========================================================================== */

.permits-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg-lighter);
}

.permits-container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-top: 120px;
  padding-bottom: 160px;
}

.permits-layout {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 60px;
}

.feature-image {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.feature-image img {
  display: block;
  width: 550px;
  aspect-ratio: 550 / 390;
  object-fit: cover;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 600px;
}

.permits-title {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 120%;
}

.body-text {
  opacity: 0.8;
  color: var(--color-text);
  letter-spacing: 0.01em;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
}

.body-text a {
  color: var(--color-blue);
  font-weight: 500;
}

/* ==========================================================================
   12. Forms Grid
   ========================================================================== */

.forms-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: var(--space-3xl) 40px var(--space-4xl);
  background-color: var(--color-white);
}

.forms-container {
  display: flex;
  gap: var(--space-2xl);
  width: 100%;
  max-width: var(--max-width-content);
}

.forms-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 600px;
}

.forms-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.form-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-sm);
  gap: var(--space-xl);
  text-decoration: none;
  color: inherit;
}

.form-link:hover {
  text-decoration: none;
}

.form-link-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.form-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.form-link-text {
  opacity: 0.8;
  color: var(--color-text);
  letter-spacing: 0.01em;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
}

/* ==========================================================================
   13. FAQ Accordion
   ========================================================================== */

.faq-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 100px 280px;
  gap: var(--space-2xl);
  background-color: var(--color-bg-light);
}

.faq-title {
  color: var(--color-text);
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 120%;
}

.faq-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: var(--max-width-narrow);
}

.accordion-item {
  border-top: 1px solid var(--color-text);
  width: 100%;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.accordion-item:first-child {
  border-top: none;
}

.accordion-item:last-child {
  border-bottom: 1px solid #e5e5e5;
}

.accordion-trigger {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: var(--space-sm);
  padding: 0;
  border: none;
  background: none;
  font: inherit;
}

.accordion-trigger:hover {
  opacity: 0.75;
}

.accordion-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.accordion-icon img {
  width: 23px;
  height: 23px;
}

details[open] .accordion-icon {
  transform: rotate(90deg);
}

.accordion-question {
  color: var(--color-text);
  text-transform: none;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.01em;
  text-align: left;
}

.accordion-content {
  padding-top: var(--space-md);
  padding-right: 40px;
}

.accordion-answer {
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 165%;
}

.accordion-answer a {
  color: var(--color-blue);
  font-weight: 500;
}

/* ==========================================================================
   14. Tabs (Office Schedules)
   ========================================================================== */

.offices-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  gap: var(--space-xl);
  overflow: hidden;
}

.offices-grid {
  display: block;
  width: 100%;
  max-width: var(--max-width-content);
}

.tab-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.tab-button {
  color: var(--color-text);
  text-transform: uppercase;
  background-color: var(--color-white);
  padding: var(--space-sm) 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--color-white);
  background-color: var(--color-blue);
  border-radius: var(--radius-pill);
}

.tab-button[aria-selected="true"] {
  color: var(--color-white);
  background-color: var(--color-blue);
  border-radius: var(--radius-pill);
}

.tab-panel {
  width: 100%;
}

/* ==========================================================================
   15. Office Details
   ========================================================================== */

.office-layout {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  max-width: var(--max-width-content);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.office-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 412px;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-2xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background-color: var(--color-white);
}

.office-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
}

.office-label {
  color: var(--color-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 20px;
}

.office-value {
  opacity: 0.8;
  color: var(--color-text);
  letter-spacing: 0.01em;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.hours-day {
  opacity: 0.8;
  color: var(--color-text);
  letter-spacing: 0.01em;
  text-transform: capitalize;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
}

.hours-time {
  opacity: 0.8;
  color: var(--color-text);
  letter-spacing: 0.01em;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 165%;
}

.contact-row {
  display: flex;
  gap: var(--space-2xl);
}

.office-map {
  width: 100%;
  max-width: 788px;
  object-fit: cover;
}

/* ==========================================================================
   16. Feedback
   ========================================================================== */

.feedback-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--space-2xl) var(--space-page-inline);
  gap: var(--space-3xl);
  background-color: var(--color-white);
  overflow: hidden;
}

.feedback-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-width-site);
  gap: 120px;
}

.feedback-title {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 130%;
}

.feedback-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feedback-text {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
}

.feedback-link {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  color: var(--color-blue);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.feedback-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   17. Site Footer
   ========================================================================== */

.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 80px var(--space-page-inline) 40px;
  gap: var(--space-3xl);
  background-color: var(--color-navy);
  overflow: clip;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-width-site);
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 560px;
}

.footer-logo {
  display: inline-block;
}

.footer-logo:hover {
  opacity: 0.75;
  text-decoration: none;
}

.footer-logo img {
  width: 124px;
}

.footer-description {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 165%;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 200px;
}

.footer-links-heading {
  color: var(--color-white);
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 150%;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-link {
  opacity: 0.8;
  color: var(--color-white);
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 20px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-width-site);
}

.footer-copyright {
  color: var(--color-white);
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 150%;
}

.footer-powered {
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 150%;
  text-transform: uppercase;
}

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

.footer-stamp {
  position: absolute;
  top: 46.5px;
  left: 290px;
  width: 100%;
  max-width: 459px;
  height: 459px;
  object-fit: contain;
}

/* Scroll offsets */
[id] {
  scroll-margin-top: 180px;
}

/* Updates page override */
.page-updates [id] {
  scroll-margin-top: 136px;
}

/* ==========================================================================
   18. Responsive (max-width: 991px)
   ========================================================================== */

@media (max-width: 991px) {
  :root {
    --space-page-inline: 40px;
  }

  [id] {
    scroll-margin-top: 150px;
  }

  .page-updates [id] {
    scroll-margin-top: 136px;
  }

  /* Preloader */
  .preloader img {
    width: 20%;
  }

  /* Nav */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 48px var(--space-page-inline) 0;
    gap: var(--space-xl);
    background-color: var(--color-blue-mobile-menu);
  }

  .nav-menu[aria-expanded="true"] {
    display: flex;
  }

  .nav-link {
    letter-spacing: 0.5px;
    justify-content: space-between;
    width: 100%;
    font-size: 18px;
  }

  .nav-link[aria-current="page"] {
    color: var(--color-white);
    text-decoration: underline;
  }

  .nav-home {
    display: list-item;
  }

  .nav-cta-item {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0;
  }

  /* Updates */
  .section-body {
    margin-inline: var(--space-page-inline);
  }

  .update-card {
    max-width: none;
    padding: 20px;
  }

  /* Updates grid */
  .updates-grid {
    flex-direction: column;
    align-items: center;
    padding-inline: var(--space-page-inline);
  }

  .update-sidebar {
    min-width: auto;
    width: 100%;
  }

  /* Permits */
  .permits-container {
    padding-inline: var(--space-page-inline);
  }

  .permits-layout {
    gap: var(--space-2xl);
  }

  /* Forms */
  .forms-container {
    flex-direction: column;
    gap: var(--space-xl);
    padding-inline: var(--space-page-inline);
  }

  /* FAQ */
  .faq-section {
    padding-inline: var(--space-page-inline);
  }

  /* Tabs */
  .tab-list {
    gap: var(--space-sm);
    justify-content: flex-start;
    margin-bottom: var(--space-lg);
  }

  .offices-grid {
    padding-inline: var(--space-page-inline);
  }

  /* Office details */
  .office-layout {
    flex-direction: column;
    max-height: none;
  }

  .office-details {
    border-style: solid none none;
    border-width: 1px 0 0;
    border-radius: 0;
    max-width: none;
    padding-inline: 0;
  }

  .office-map {
    object-fit: cover;
    width: 100%;
    max-height: 480px;
  }

  /* Contact row */
  .contact-row {
    gap: var(--space-xl);
    flex-direction: column;
  }

  /* Feedback */
  .feedback-container {
    gap: 80px;
  }

}

/* ==========================================================================
   19. Responsive (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --space-page-inline: 16px;
  }

  /* Preloader */
  .preloader img {
    width: 30%;
  }

  /* Banner */
  .update-banner {
    padding-inline: var(--space-page-inline);
  }

  .nav-logo {
    flex: 1;
    padding-left: 0;
  }

  .nav-link {
    justify-content: flex-start;
    height: auto;
    padding-inline: 0;
  }

  /* CTA outline — no fill on mobile */
  .cta-outline:hover,
  .cta-outline:active {
    background-color: transparent;
    color: var(--color-white);
  }

  /* Hero */
  .hero {
    padding: var(--space-3xl) var(--space-page-inline);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-container {
    padding-inline: 0;
  }

  .updates-list {
    padding-inline: var(--space-page-inline);
  }

  .update-link {
    padding-top: var(--space-md);
  }

  /* Permits */
  .permits-container {
    margin-top: 0;
    padding: var(--space-4xl) var(--space-page-inline) 120px;
  }

  .permits-layout {
    gap: var(--space-xl);
    flex-direction: column;
  }

  .permits-title {
    text-align: center;
  }

  .feature-content {
    max-width: none;
    justify-content: flex-start;
    align-items: center;
  }

  /* Forms */
  .forms-section {
    padding: var(--space-4xl) var(--space-page-inline);
  }

  .forms-container {
    flex-direction: column;
    padding-inline: 0;
  }

  .forms-header {
    align-items: center;
    text-align: center;
  }

  /* FAQ */
  .faq-section {
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-4xl) var(--space-page-inline) var(--space-2xl);
  }

  .accordion-item:first-child {
    padding-top: 0;
  }

  .accordion-answer {
    text-align: left;
  }

  /* Tabs */
  .tab-list {
    white-space: nowrap;
    min-width: 100%;
    display: flex;
    overflow: auto;
  }

  .feedback-container {
    gap: 34px;
    flex-direction: column;
  }

  .footer-main {
    gap: 56px;
    flex-direction: column;
  }

  .footer-links {
    gap: var(--space-xl);
  }

  .footer-bottom {
    gap: var(--space-lg);
    flex-direction: column;
  }

  .footer-stamp {
    object-fit: contain;
  }
}

/* ==========================================================================
   20. Responsive (max-width: 479px)
   ========================================================================== */

@media (max-width: 479px) {
  /* Preloader */
  .preloader img {
    width: 40%;
  }

  /* Nav */
  .nav-menu[aria-expanded="true"] {
    background-color: var(--color-navy);
    padding: 48px var(--space-md) 0;
  }

  .nav-link {
    font-size: 20px;
  }

  /* Hero */
  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--space-lg);
  }

  /* Update cards */
  .update-link {
    height: auto;
    padding-inline: var(--space-md);
  }

  /* Forms */
  .form-link {
    gap: var(--space-md);
    padding-inline: var(--space-md);
  }

  /* FAQ */
  .faq-section {
    gap: var(--space-lg);
    padding-bottom: var(--space-2xl);
  }

  .accordion-trigger {
    gap: 15px;
  }

  .accordion-question {
    text-align: left;
  }

  .accordion-icon {
    min-width: 17px;
  }

  .faq-list {
    margin-top: var(--space-xs);
  }

  /* Footer */
  .footer-stamp {
    left: 150px;
  }
}

/* ==========================================================================
   21. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }

  .preloader {
    transition: none;
  }
}
