/*
 * Ground Control Outdoor – Modern Redesign
 *
 * This stylesheet defines the visual appearance for the redesigned
 * Ground Control Outdoor website. The design takes inspiration from
 * Apple’s minimalist aesthetic: plenty of white space, crisp
 * typography and subtle animations. Colors are derived from the
 * existing brand (greens and dark gray) for continuity. Layouts
 * leverage CSS Grid and Flexbox to create responsive modules
 * throughout the site. All interactive states use smooth
 * transitions to enhance usability without overwhelming the user.
 */

/* Base variables for consistent theming */
:root {
  --color-primary: #244435; /* deep forest green used for headlines */
  --color-accent: #71b100; /* brighter green used for buttons and highlights */
  --color-dark: #2c2c2c;   /* dark text for strong contrast */
  --color-light: #f8f8f8;  /* light gray backgrounds */
  --color-white: #ffffff;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.5s ease;
  --container-max-width: 1200px;
  --font-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Global resets and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
}

/* Hides element visually but remains accessible to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover,
a:focus {
  color: var(--color-accent);
}

/* Utility container */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Utility classes */
.text-center {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 700px;
}

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

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.footer-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.service-list {
  margin-top: 1.5rem;
  line-height: 1.8;
  list-style: disc;
  margin-left: 1.5rem;
}

.numbered-list {
  margin-top: 1rem;
  margin-left: 1.5rem;
  line-height: 1.8;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
}

.hero-gallery {
  background-image: url('../images/finished_projects/gallery_project2.jpg');
  min-height: 50vh;
}

.hero-contact {
  background-image: url('../images/finished_projects/gallery_project4a.jpg');
  min-height: 50vh;
}

.hero-installation {
  background-image: url('../images/finished_projects/gallery_project4a.jpg');
}

.hero-lighting {
  background-image: url('../images/finished_projects/gallery_project6a.jpg');
}

.hero-design {
  background-image: url('../images/design_hero.jpg');
}

.hero-pool {
  background-image: url('../images/finished_projects/gallery_projects4c.jpg');
}

.hero-kitchens {
  background-image: url('../images/finished_projects/gallery_project2.jpg');
}

.hero-site-prep {
  background-image: url('../images/finished_projects/gallery_project1c.jpg');
}

.hero-slide-1 {
  background-image: url('../images/finished_projects/gallery_project1.jpg');
}

/* Header styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(5px);
  -webkit-backdrop-filter: saturate(180%) blur(5px);
  transition: background-color var(--transition-slow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  transition: padding var(--transition-slow);
}

.logo img {
  height: 60px;
  width: auto;
  transition: height var(--transition-slow);
}

/* Header state when page is scrolled */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.7);
}

header.scrolled .header-inner {
  padding: 0.4rem 0;
}

header.scrolled .logo img {
  height: 50px;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links li {
  position: relative;
}

.nav-links > li > a {
  font-weight: 500;
  padding: 0.5rem;
  display: block;
}

/* Dropdown menu styling */
.dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background-color: var(--color-white);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 100;
}

.nav-links li:focus-within .dropdown,
.nav-links li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  display: block;
}
.dropdown li a {
  padding: 0.5rem 1rem;
  display: block;
  white-space: nowrap;
}
.dropdown li a:hover {
  background-color: var(--color-light);
}

/* Mobile navigation toggle */
.hamburger {
  display: none;
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
  border: none;
  background: transparent;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger::before {
  content: '';
  top: 0;
}
.hamburger::after {
  content: '';
  bottom: 0;
}
.hamburger span {
  top: 50%;
  transform: translateY(-50%);
}

/* Mobile nav menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  padding: 2rem 1.5rem;
  transition: right var(--transition-slow);
  z-index: 999;
}

.mobile-nav.open {
  right: 0;
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
}
.mobile-nav li {
  margin-bottom: 1rem;
}
.mobile-nav li a {
  font-size: 1.2rem;
  font-weight: 500;
}
.mobile-nav .submenu {
  margin-left: 1rem;
}

/* Hero section */
@property --progress {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.hero {
  --hero-width: 100vw;
  --progress: 0;
  position: relative;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.7) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

/* Sliding hero background */
.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* clip-path animation controlled via CSS for sync with blur line */
  will-change: clip-path;
}

.hero.animating {
  animation: heroProgress 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-slide.next {
  clip-path: inset(0 calc((1 - var(--progress)) * 100%) 0 0);
  -webkit-clip-path: inset(0 calc((1 - var(--progress)) * 100%) 0 0);
  z-index: 2;
}

.transition-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40px;
  background: rgba(255, 255, 255, 0.9);
  filter: blur(8px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translateX(calc(var(--progress) * var(--hero-width) - 20px));
  z-index: 3;
  /* transform and opacity animated via CSS keyframes */
  will-change: transform, opacity;
}

.hero.animating .transition-line {
  opacity: calc(1 - var(--progress));
}

@supports not ((backdrop-filter: blur(0)) or (-webkit-backdrop-filter: blur(0))) {
  .transition-line {
    background: rgba(255, 255, 255, 0.7);
  }
}

@keyframes heroProgress {
  from { --progress: 0; }
  to { --progress: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 1rem;
  transition: color var(--transition-fast);
}

.hero-logo {
  width: 200px;
  max-width: 70%;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.hero .btn {
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}

/* Adjust hero text color on light backgrounds */
.hero-content.light-bg {
  color: var(--color-dark);
}

.hero-content.light-bg .btn.outline {
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  background-size: 200% 200%;
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-position var(--transition-fast), transform var(--transition-fast);
}
.btn:hover,
.btn:focus {
  background-position: 100% 0;
  transform: translateY(-2px);
}

.btn.outline {
  background: none;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn.outline:hover,
.btn.outline:focus {
  background: rgba(255,255,255,0.1);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Section styling */
section {
  padding: 5rem 0;
}

section.light {
  background-color: var(--color-light);
}
section.dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: inherit;
}

/* Residential & Commercial section */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tile {
  --x: 50%;
  --y: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #d9d9d9);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(113, 177, 0, 0.15);
  opacity: 0;
  clip-path: circle(0% at var(--x) var(--y));
  -webkit-clip-path: circle(0% at var(--x) var(--y));
  transition: opacity var(--transition-slow), clip-path var(--transition-slow);
  pointer-events: none;
}
.tile:hover,
.tile:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.tile:hover::before,
.tile:focus-within::before {
  opacity: 1;
  clip-path: circle(150% at var(--x) var(--y));
  -webkit-clip-path: circle(150% at var(--x) var(--y));
}

@supports not (clip-path: circle(0% at 0 0)) {
  .tile::before {
    display: none;
  }
}
.tile img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  filter: brightness(0) saturate(100%);
  position: relative;
  z-index: 1;
}
.tile .btn {
  position: relative;
  z-index: 1;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}
.tile:hover .btn,
.tile:focus-within .btn {
  background-color: var(--color-white);
  color: var(--color-primary);
}
.tile h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-primary);
}
.tile p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.service-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}
.service-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.service-card .btn {
  margin-top: auto;
}

/* Scroll reveal animation for service cards */
.service-card.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.service-card.scroll-reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* About section */
.about {
  background-image: url('../images/design_hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
}
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
}
.about .container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.about h2 {
  color: var(--color-white);
}
.about p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Gallery preview */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-preview img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform var(--transition-fast);
}
.gallery-preview img:hover {
  transform: scale(1.05);
}

/* Full gallery page */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: transform var(--transition-fast);
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Fade-in animation for gallery images */
.gallery img.animate {
  animation: fade-in-up var(--transition-slow) forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect users' reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .gallery img {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* Gallery modal styles */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 2000;
}
.gallery-modal.open {
  opacity: 1;
  visibility: visible;
}
.gallery-modal .modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
}
.gallery-modal .modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--color-accent);
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color var(--transition-fast);
}
.gallery-modal .modal-close:hover {
  background-color: var(--color-primary);
}

/* Carousel styles */
.carousel {
  position: relative;
}
.carousel-window {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-prev:hover,
.carousel-next:hover {
  background-color: var(--color-primary);
}

.carousel-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
}
.carousel-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  border-radius: 4px;
}
.carousel-thumb.active {
  opacity: 1;
  border-color: var(--color-primary);
}

/* Before & After slider */
.before-after .ba-viewer {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.before-after .ba-slider {
  position: relative;
}
.before-after .ba-slider img {
  display: block;
  width: 100%;
  height: auto;
}
.before-after .ba-after {
  display: block;
  width: 100%;
  height: auto;
}
.before-after .ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
  z-index: 2;
}
.before-after .ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after .ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.5rem;
  background-color: rgba(0,0,0,0.5);
  color: var(--color-white);
  font-size: 0.9rem;
  border-radius: 3px;
  pointer-events: none;
  z-index: 3;
}
.before-after .ba-label-after {
  left: auto;
  right: 10px;
  z-index: 1;
}
.before-after .ba-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-appearance: none;
  background: none;
  cursor: ew-resize;
}
.before-after .ba-range:focus {
  outline: none;
}
.before-after .ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  border: none;
}
.before-after .ba-range::-moz-range-thumb {
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  border: none;
}
.before-after .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-white);
  transform: translateX(-50%);
  pointer-events: none;
}
.before-after .ba-handle::before,
.before-after .ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.before-after .ba-handle::before {
  left: -8px;
  transform: translateY(-50%);
  border-right: 6px solid var(--color-white);
}
.before-after .ba-handle::after {
  right: -8px;
  transform: translateY(-50%);
  border-left: 6px solid var(--color-white);
}
.before-after .ba-prev,
.before-after .ba-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.before-after .ba-prev { left: 10px; }
.before-after .ba-next { right: 10px; }
.before-after .ba-prev:hover,
.before-after .ba-next:hover {
  background-color: var(--color-primary);
}

/* Testimonials */
.testimonials {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonials .carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}
.testimonials .testimonial {
  flex: 0 0 calc(100% / 3);
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-style: italic;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 3rem;
  color: var(--color-accent);
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .testimonials .testimonial {
    flex: 0 0 100%;
  }
}

/* CTA */
.cta {
  text-align: center;
}
.cta h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}
.cross-link {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 1.5rem;
}
.cross-link a {
  color: var(--color-accent);
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 2rem 0;
}
footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
footer .footer-column {
  flex: 1 1 200px;
}
footer h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}
footer ul {
  list-style: none;
  line-height: 1.8;
  font-size: 0.9rem;
}
footer a {
  color: var(--color-light);
}
footer a:hover {
  color: var(--color-accent);
}
footer .social-icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
footer .social-icons a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}
footer .social-icons a:hover {
  background-color: var(--color-accent);
}
footer .social-icons svg {
  width: 20px;
  height: 20px;
  fill: var(--color-light);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
    margin-right: -5%;
  }
}

/* -------------------------------------------------------------- */
/* Contact page styles
 *
 * The contact section uses a two-column layout on larger screens and
 * stacks on smaller devices. Form elements are styled for
 * readability and accessibility. A simple arithmetic challenge is
 * positioned inline with its input to conserve vertical space.
 */

.contact-section .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}
.contact-info ul {
  list-style: none;
  line-height: 1.8;
  font-size: 0.95rem;
}
.contact-info ul li {
  margin-bottom: 0.5rem;
}
.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--color-primary);
}
.contact-form .form-group {
  margin-bottom: 1rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--color-dark);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(113, 177, 0, 0.2);
}
.contact-form button {
  margin-top: 0.5rem;
}
/* Challenge question group aligns label and input horizontally */
.challenge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.challenge-group label {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.challenge-group input {
  flex: 1 1 auto;
}
@media (max-width: 768px) {
  .contact-section .contact-grid {
    grid-template-columns: 1fr;
  }
}
