/* ==========================================================================
   Fulcrum Contracting — Main Stylesheet
   Font: Cabin (Google Fonts)
   ========================================================================== */

:root {
  --red: #ec1d25;
  --red-dark: #bf1e2e;
  --red-line: #f11a26;
  --black: #0c0c0c;
  --near-black: #1a1a1a;
  --gray-text: #4a4a4a;
  --gray-hover: #3e3e3e;
  --white: #ffffff;
  --max-width: 1180px;
  --font-main: 'Cabin', Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--gray-text);
  line-height: 1.6;
  font-size: 16px;
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--black);
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--red);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--gray-hover);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  text-decoration: none !important;
  padding: 16px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-dark {
  background-color: var(--black);
  color: var(--white) !important;
}

.btn-dark:hover,
.btn-dark:focus {
  background-color: var(--gray-hover);
  color: var(--white) !important;
}

.btn-red {
  background-color: var(--red);
  color: var(--white) !important;
}

.btn-red:hover,
.btn-red:focus {
  background-color: var(--gray-hover);
  color: var(--white) !important;
}

/* ==========================================================================
   Skip link (accessibility)
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  background: var(--white);
  position: relative;
  z-index: 500;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: block;
  width: 220px;
  max-width: 60vw;
  margin-bottom: 4px;
}

.logo img {
  width: 100%;
  height: auto;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 30px;
  cursor: pointer;
  padding: 0;
  z-index: 600;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--black);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  color: var(--black);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px 12px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus,
.main-nav > ul > li.is-current > a {
  color: var(--black);
  border-bottom-color: var(--red);
}

.main-nav .caret {
  font-size: 1em;
  margin-left: 2px;
  display: inline-block;
}

/* Dropdown */
.has-dropdown .dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--black);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 700;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-left: 3px solid transparent;
}

.dropdown li a:hover,
.dropdown li a:focus {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--red);
  color: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero img.hero-bg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: 560px;
  padding: 40px 40px 44px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0) 100%);
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-content p {
  color: #f1f1f1;
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 26px;
}

/* ==========================================================================
   Intro / Built on experience
   ========================================================================== */
.intro {
  padding: 70px 0;
}

.intro .container {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1 1 480px;
}

.intro-image {
  flex: 0 1 340px;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 22px;
}

.checklist {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--near-black);
  font-weight: 500;
}

.checklist li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 700;
}

/* ==========================================================================
   Photo slider
   ========================================================================== */
.slider-section {
  overflow: hidden;
  background: var(--black);
  padding: 0;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: slide-scroll 40s linear infinite;
}

.slider-section:hover .slider-track {
  animation-play-state: paused;
}

.slider-track .slide {
  flex: 0 0 auto;
  height: 320px;
  width: 400px;
  overflow: hidden;
}

.slider-track .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {
  .slider-track .slide {
    height: 220px;
    width: 280px;
  }
}

/* ==========================================================================
   Full-Service Solutions (dark section)
   ========================================================================== */
.services-dark {
  background: var(--black);
  color: #d7d7d7;
  padding: 70px 0 10px;
  position: relative;
  border-top: 6px solid var(--red-line);
}

.services-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.services-intro-text {
  flex: 1 1 480px;
}

.services-intro h2 {
  color: var(--white);
  font-size: 2rem;
}

.services-intro-text p {
  max-width: 560px;
}

.pyramid {
  flex: 0 0 460px;
  max-width: 460px;
}

.pyramid img {
  width: 100%;
  height: auto;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 56px;
}

.service-card {
  border: 1px solid var(--red);
  padding: 32px 28px 36px;
}

.service-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.service-card p {
  color: #cfcfcf;
  font-size: 1rem;
  margin-bottom: 26px;
}

.services-extra {
  border-top: 1px solid #2a2a2a;
  padding: 44px 0 60px;
}

.services-extra > .container > p.lead {
  max-width: 900px;
  color: #d7d7d7;
}

.services-extra-grid {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 20px;
}

.services-extra-list {
  flex: 1 1 480px;
}

.services-extra-image {
  flex: 0 1 340px;
}

.extra-item {
  margin-bottom: 26px;
}

.extra-item h4 a {
  color: var(--red);
  text-decoration: underline;
  font-size: 1.05rem;
}

.extra-item h4 a:hover {
  color: var(--gray-hover);
  text-decoration: none;
}

.extra-item p {
  color: #cfcfcf;
  font-size: 1rem;
  margin: 8px 0 0;
}

/* ==========================================================================
   CTA / Ready to get started
   ========================================================================== */
.cta {
  background: var(--white) url('../img/topo-map-background.png') repeat center top;
  padding: 90px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.1rem;
}

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

/* ==========================================================================
   Quote
   ========================================================================== */
.quote-bar {
  border-top: 4px solid var(--red);
}

.quote {
  text-align: center;
  padding: 44px 24px 30px;
  font-style: italic;
  color: var(--near-black);
}

.quote blockquote {
  margin: 0 0 8px;
  font-size: 1.05rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.quote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 20px 24px 30px;
  font-size: 1rem;
  color: var(--near-black);
}

.site-footer .footer-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer .footer-legal {
  font-size: 1rem;
  color: #777;
  margin-top: 10px;
}

.site-footer .footer-legal a {
  color: #777;
  text-decoration: underline;
}

.site-footer .footer-legal a:hover {
  color: var(--gray-hover);
}

/* ==========================================================================
   Sub-page (interior) template
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero img.hero-bg {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.page-hero-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.05) 100%);
}

.page-hero-content h1 {
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin: 0;
  padding: 0 24px;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.breadcrumb {
  background: #f5f5f5;
  padding: 12px 0;
  font-size: 1rem;
}

.breadcrumb a {
  color: var(--red);
}

.breadcrumb span {
  color: #999;
  margin: 0 6px;
}

.page-content {
  padding: 60px 0;
}

.page-content .container {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.page-main {
  flex: 1 1 620px;
}

.page-main h2 {
  font-size: 1.7rem;
  margin-top: 34px;
}

.page-main h2:first-child {
  margin-top: 0;
}

.page-main h3 {
  margin-top: 26px;
}

.page-main img {
  margin: 24px 0;
}

.page-sidebar {
  flex: 0 1 320px;
}

.sidebar-box {
  background: var(--black);
  color: var(--white);
  padding: 28px 26px;
  margin-bottom: 24px;
}

.sidebar-box h3 {
  color: var(--white);
  font-size: 1.15rem;
}

.sidebar-box p {
  color: #cfcfcf;
  font-size: 1rem;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e2e2;
}

.sidebar-list li {
  border-bottom: 1px solid #e2e2e2;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  display: block;
  padding: 14px 20px;
  color: var(--near-black);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-list a:hover {
  color: var(--red);
  background: #f7f7f7;
}

.page-main--full {
  flex: 1 1 100%;
  max-width: 840px;
}

/* ==========================================================================
   Callout / alert boxes (service pages)
   ========================================================================== */
.callout-box {
  background: var(--black);
  color: #e6e6e6;
  border-left: 5px solid var(--red);
  padding: 24px 28px;
  margin: 28px 0;
}

.callout-box p {
  margin: 0;
  color: #e6e6e6;
}

.alert-box {
  background: var(--red);
  color: var(--white);
  padding: 20px 26px;
  margin: 28px 0;
  font-weight: 700;
}

.alert-box p {
  margin: 0;
  color: var(--white);
}

/* ==========================================================================
   Warning / notice list (repair page "call us if you notice")
   ========================================================================== */
.warning-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border: 1px solid #e2e2e2;
  background: #fafafa;
}

.warning-list li {
  position: relative;
  padding: 14px 20px 14px 44px;
  border-bottom: 1px solid #e2e2e2;
  color: var(--near-black);
}

.warning-list li:last-child {
  border-bottom: none;
}

.warning-list li::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9em;
}

/* ==========================================================================
   Numbered process steps
   ========================================================================== */
.steps-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.step {
  border-top: 3px solid var(--red);
  padding-top: 14px;
}

.step .step-number {
  display: block;
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step p {
  margin-bottom: 0;
}

/* ==========================================================================
   Service / repair item grid
   ========================================================================== */
.item-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.item-grid li h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.item-grid li p {
  margin-bottom: 0;
}

/* ==========================================================================
   Two-column plain list (commercial clients, etc.)
   ========================================================================== */
.two-col-list {
  columns: 2;
  column-gap: 40px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.two-col-list li {
  break-inside: avoid;
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.two-col-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--red);
  font-weight: 700;
}

/* ==========================================================================
   Gallery grid
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  height: 220px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid #e2e2e2;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 4px;
  font-weight: 700;
  color: var(--black);
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--red);
  font-size: 1.3rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 4px 20px;
  color: var(--gray-text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1060px) {
  .nav-toggle {
    display: block;
  }

  .header-inner {
    padding: 16px 24px;
  }

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 900px;
  }

  .main-nav ul {
    flex-direction: column;
    border-top: none;
  }

  .main-nav > ul > li > a {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
  }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: #111;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .hero-content {
    max-width: 100%;
    padding: 26px 22px 30px;
  }
}

@media (max-width: 900px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

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

  .steps-list,
  .item-grid {
    grid-template-columns: 1fr;
  }

  .two-col-list {
    columns: 1;
  }

  .intro .container,
  .services-extra-grid,
  .page-content .container {
    flex-direction: column;
  }

  .intro-image,
  .services-extra-image,
  .page-sidebar {
    order: -1;
    max-width: 100%;
    flex-basis: auto;
  }

  .pyramid {
    display: none;
  }
}