:root {
  --navy: #1E2A39;
  --orange: #F5A25D;
  --green-dark: #2A4F49;
  --offwhite: #FFF8F2;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .about,
  .columns,
  #my-approach .section-content.about,
  #about-structural-bodywork .section-content.about {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .about > img,
  .columns img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.5rem auto;
    flex: none;
    order: 1 !important;
  }

  .about > div,
  .columns > div {
    order: 2 !important;
    width: 100%;
  }

  .section {
    padding: 2rem 1rem;
    overflow-x: hidden;
  }

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

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

  .hero-content {
    padding: 0 1rem;
  }

  .video-wrapper iframe {
    width: 100%;
    max-width: 100%;
    height: 200px;
  }
}

.faq-category {
  margin-bottom: 2rem;
}

.faq-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

details {
  background: white;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
}

details[open] {
  background: #fdfdfd;
}

summary {
  font-weight: bold;
  cursor: pointer;
  outline: none;
}

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

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--offwhite);
  color: var(--navy);
  line-height: 1.7;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--orange);
  color: #fff;
  padding: 0.5rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.main-nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 0.5rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--navy);
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: var(--orange);
  color: white;
}

@media (max-width: 768px) {
  .main-nav {
    position: static;
    margin: 1rem;
    margin-bottom: 0;
  }
  
  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}

header.hero {
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--green-dark);
  color: var(--offwhite);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin: 0;
}

.btn-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  text-decoration: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background: #e18e48;
}

.section {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.divider {
  border-top: 4px solid var(--orange);
  margin-top: 3rem;
  padding-top: 3rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.about > img {
  order: 1;
}

.about > div {
  order: 2;
  flex: 1;
}

/* Flip layout for My Approach section */
#my-approach .section-content.about {
  flex-direction: row;
}

#my-approach .section-content.about > img {
  order: 2;
}

#my-approach .section-content.about > div {
  order: 1;
}

/* Flip layout for Structural Bodywork section */
#about-structural-bodywork .section-content.about {
  flex-direction: row;
}

#about-structural-bodywork .section-content.about > img {
  order: 2;
}

#about-structural-bodywork .section-content.about > div {
  order: 1;
}

.about img {
  max-width: 400px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}

.card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.highlight-card {
  background: linear-gradient(135deg, var(--green-dark) 0%, #3a635a 100%);
  color: var(--offwhite);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.highlight-card img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem 0.5rem 0 0;
}

.highlight-card .card-body {
  padding: 1rem;
}

.highlight-card h3 {
  margin-top: 0;
}

.highlight-card p {
  margin-bottom: 0;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.columns img {
  max-width: 400px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: -1.5rem;
}

.approach-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

blockquote {
  background: white;
  padding: 1rem;
  border-left: 4px solid var(--green-dark);
  border-radius: 0.25rem;
}

.video-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content, .section {
    animation: fadeIn 0.8s ease both;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
