/* Goshen Solutions — Brand Design System */
:root {
  --blue-primary: #2988c0;
  --blue-light: #39b5d9;
  --blue-dark: #2379a7;
  --blue-muted: #79bdd0;
  --green-primary: #b8d548;
  --green-dark: #6ebf5b;
  --green-muted: #a2d072;
  --yellow-primary: #feda3f;
  --yellow-bright: #fce642;
  --yellow-soft: #fdf1a1;
  --gray-text: #4c4c4d;
  --gray-light: #f5f7f9;
  --gray-border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(41, 136, 192, 0.12);
  --shadow-lg: 0 8px 40px rgba(41, 136, 192, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --header-height: 80px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1280px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--gray-text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.hero-landing h1,
.hero-band-content h1,
.hero-minimal h1,
.hero-sub,
.hero-band-content .hero-sub,
.section-title,
.section-subtitle,
.cta-inner h2,
.split-info h2,
.error-page h1 {
  text-wrap-style: balance;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--blue-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 100;
  position: relative;
  background: var(--white);
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;

  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  z-index: 100;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: var(--gray-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active,
.nav-item.active>.nav-link {
  color: var(--blue-primary);
  background: rgba(41, 136, 192, 0.08);
}

.dropdown-chevron {
  opacity: 0.6;
}

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--gray-text);
  transition: background var(--transition);
}

.dropdown-link:hover,
.dropdown-link.active {
  background: rgba(184, 213, 72, 0.15);
  color: var(--blue-dark);
}

.dropdown-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.dropdown-desc {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Main */
.app-main {
  min-height: calc(100vh - var(--header-height) - 200px);
}

.loading {
  text-align: center;
  padding: 4rem;
  color: var(--blue-primary);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  color: var(--white);
  border-color: transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
}

/* Hero — Landing */
.hero {
  position: relative;
  width: 100%;
}

.hero-landing {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-landing .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero-landing h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  opacity: 0.95;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero — Band */
.hero-band {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
}

.hero-band .image-band {
  position: absolute;
  inset: 0;
}

.hero-band-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: var(--white);
}

.hero-band-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-band-content p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin: 0;
  max-width: 600px;
}

/* Hero — Minimal */
.hero-minimal {
  background: linear-gradient(135deg, rgba(41, 136, 192, 0.08), rgba(184, 213, 72, 0.12));
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-minimal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--blue-dark);
  margin: 0 0 0.75rem;
}

.hero-minimal .hero-sub {
  color: var(--gray-text);
  max-width: 640px;
  margin: 0 auto;
}

/* Image bands / themes */
.image-band {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.image-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 121, 167, 0.7), rgba(41, 136, 192, 0.3));
}

.theme-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 40%, var(--green-primary) 100%);
}

.theme-pools {
  background: linear-gradient(160deg, var(--blue-primary) 0%, var(--blue-light) 50%, var(--blue-muted) 100%);
}

.theme-roofs {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--gray-text) 60%, var(--blue-primary) 100%);
}

.theme-driveways {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-muted) 50%, var(--yellow-soft) 100%);
}

.theme-coming {
  background: linear-gradient(160deg, var(--yellow-primary) 0%, var(--green-primary) 50%, var(--blue-light) 100%);
}

.theme-residential {
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--green-muted) 50%, var(--yellow-soft) 100%);
}

.theme-commercial {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--gray-text) 40%, var(--blue-primary) 100%);
}

.projects-preview {
  background: var(--white);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-inner.narrow {
  max-width: 800px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--blue-dark);
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #777;
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
}

/* Features */
.features-section {
  background: var(--gray-light);
}

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

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--blue-dark);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services-grid-lg {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.service-card .image-band {
  height: 220px;
  flex-shrink: 0;
}

.service-card-lg .image-band {
  height: 260px;
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  color: var(--blue-dark);
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.service-card-body p {
  margin: 0 0 1rem;
  color: #666;
  font-size: 0.95rem;
  flex: 1;
}

.service-link {
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlights li {
  background: rgba(184, 213, 72, 0.2);
  color: var(--blue-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Detail features */
.intro-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555;
  text-align: center;
}

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

.detail-feature {
  padding: 1.5rem;
  border-left: 4px solid var(--green-primary);
  background: var(--gray-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.detail-feature h3 {
  color: var(--blue-dark);
  margin: 0 0 0.5rem;
}

.detail-feature p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Gallery */
.gallery-section {
  background: var(--gray-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item .image-band {
  height: 240px;
}

.gallery-item figcaption {
  padding: 1rem 1.25rem;
  background: var(--white);
  font-size: 0.9rem;
  color: var(--gray-text);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.cta-inner p {
  margin: 0 0 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.cta-section .btn-primary {
  background: var(--yellow-primary);
  color: var(--blue-dark);
}

.cta-section .btn-primary:hover {
  background: var(--yellow-bright);
  color: var(--blue-dark);
}

/* Form page */
.form-section {
  padding: 3rem 0 5rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split-info h2 {
  color: var(--blue-dark);
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.split-info p {
  color: #666;
  margin: 0 0 1rem;
}

.info-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-detail {
  padding: 1rem 1.25rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--green-primary);
}

.info-detail strong {
  display: block;
  color: var(--blue-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-detail span {
  color: #666;
  font-size: 0.95rem;
}

.split-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-border);
}

.cms-form .form-group {
  margin-bottom: 1.25rem;
}

.cms-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 0.4rem;
}

.cms-form input,
.cms-form select,
.cms-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cms-form input:focus,
.cms-form select:focus,
.cms-form textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(41, 136, 192, 0.15);
}

.form-actions {
  margin-top: 1.5rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-message.success {
  background: rgba(110, 191, 91, 0.15);
  color: var(--green-dark);
}

.form-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #c0392b;
}

/* Footer */
.site-footer {
  background: var(--gray-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--green-primary);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  margin: 0;
}

/* Error page */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  color: var(--blue-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    transform: translateY(-100%);
    transition: all var(--transition);
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
    border-bottom: 10px solid var(--gray-border);
    z-index: 50;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 1rem;
    font-size: 1.1rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    min-width: auto;
  }

  .dropdown-link {
    padding: 0.75rem 1rem;
  }

  .hero-landing {
    min-height: 70vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}