/* ==========================================================================
   J.C.A Surfacing — Brand Stylesheet
   Palette extracted directly from the J.C.A Surfacing logo:
   - Asphalt Black: #111315
   - Tarmac Slate:  #1C1F24
   - Hi-Vis Orange: #F26522
   - Plant Amber:   #F7A61C
   - Steel Silver:  #D1D5DB
   ========================================================================== */

:root {
  --asphalt-black: #111315;
  --tarmac-dark: #1C1F24;
  --tarmac-border: #2E333B;
  --brand-orange: #F26522;
  --brand-amber: #F7A61C;
  --steel-silver: #D1D5DB;
  --surface-light: #F4F5F7;
  --white: #FFFFFF;
  --text-dark: #111315;
  --text-muted: #4B5563;
  --whatsapp-green: #1E8E3E;
  --whatsapp-green-hover: #177331;
  --radius: 8px;
  --shadow: 0 10px 25px rgba(17, 19, 21, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--surface-light);
}

body {
  padding-bottom: 72px;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--asphalt-black);
  color: var(--white);
  border-bottom: 4px solid var(--brand-orange);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background-color: var(--white);
  padding: 2px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--brand-amber);
  font-weight: 600;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--steel-silver);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--white);
  background-color: var(--tarmac-dark);
}

.nav-link.active {
  border-bottom: 2px solid var(--brand-orange);
}

.header-actions {
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.95rem 1.55rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--brand-orange);
  color: var(--asphalt-black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--brand-amber);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--white);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background-color: var(--whatsapp-green-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--steel-silver);
  color: var(--white);
}

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

.btn-outline-dark {
  background-color: var(--asphalt-black);
  color: var(--white);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background-color: var(--tarmac-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--asphalt-black) 0%, var(--tarmac-dark) 100%);
  color: var(--white);
  padding: 2.75rem 0 3.5rem;
  border-bottom: 6px solid var(--brand-amber);
}

.quote-hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background-color: rgba(242, 101, 34, 0.18);
  color: var(--brand-amber);
  border: 1px solid var(--brand-orange);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.05rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.accent-text {
  color: var(--brand-orange);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--steel-silver);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-figure {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-photo {
  aspect-ratio: 4 / 3;
  border: 3px solid var(--brand-orange);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.hero-figure figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--steel-silver);
}

.photo {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--asphalt-black);
  cursor: zoom-in;
}

.photo:focus-visible {
  outline: 3px solid var(--brand-amber);
  outline-offset: 3px;
}

/* ==========================================================================
   Photo Gallery Section
   ========================================================================== */
.gallery-section {
  padding: 3.5rem 0;
  background-color: var(--white);
  border-bottom: 2px solid #E5E7EB;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--asphalt-black);
  margin-bottom: 0.45rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.job-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
}

.job {
  min-width: 0;
}

.job h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  padding-left: 0.65rem;
  border-left: 4px solid var(--brand-orange);
}

.job-photos {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.job-photos .photo {
  box-shadow: var(--shadow);
}

.job-photos img {
  width: 100%;
}

/* ==========================================================================
   Photo Viewer
   ========================================================================== */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  padding: 1rem;
  background-color: rgba(10, 11, 12, 0.96);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.lightbox img {
  min-height: 0;
  max-width: 100%;
  max-height: calc(100% - 4.5rem);
  object-fit: contain;
}

.lightbox-controls {
  display: flex;
  gap: 0.75rem;
}

.lightbox-controls button {
  min-width: 64px;
  min-height: 48px;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 800;
  color: var(--asphalt-black);
  background-color: var(--brand-orange);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

/* ==========================================================================
   Contact & Quote Page Sections
   ========================================================================== */
.contact-section {
  padding: 3.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--white);
  border: 2px solid #E2E5E9;
  border-top: 5px solid var(--brand-orange);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background-color: var(--asphalt-black);
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.card-icon-whatsapp {
  color: #4ADE80;
}

.card-icon-fb {
  color: var(--brand-amber);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.contact-detail {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--asphalt-black);
  margin-bottom: 0.25rem;
}

.hours-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.quote-box {
  background-color: var(--white);
  border: 2px solid #E2E5E9;
  border-top: 5px solid var(--brand-orange);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.quote-box h2 {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.quote-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.quote-label span {
  font-weight: 400;
  color: var(--text-muted);
}

.quote-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 2px solid #CBD5E1;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.quote-input:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.quote-direct-info {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.quote-direct-info a {
  color: var(--text-dark);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--asphalt-black);
  color: var(--steel-silver);
  padding: 2.25rem 0;
  border-top: 4px solid var(--tarmac-border);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
}

.site-footer strong {
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--brand-amber);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-email {
  color: var(--steel-silver);
}

.copyright {
  font-size: 0.85rem;
  color: #9CA3AF;
}

/* ==========================================================================
   Sticky Mobile Bottom Call Bar
   ========================================================================== */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--asphalt-black);
  padding: 0.6rem 1rem;
  border-top: 2px solid var(--brand-orange);
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background-color: var(--brand-orange);
  color: var(--asphalt-black);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  /* photos in one job share a height, so nothing is cropped */
  .job-photos {
    flex-direction: row;
    align-items: flex-start;
  }

  .job-photos .photo {
    flex: var(--ratio) 1 0;
    min-width: 0;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .header-actions {
    display: block;
  }

  .mobile-call-bar {
    display: none;
  }

  .hero {
    padding: 4.25rem 0;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero-photo {
    aspect-ratio: 4 / 5;
  }

  .cta-group,
  .quote-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: end;
  }

  .job-wide {
    grid-column: 1 / -1;
  }

  .job-tall {
    width: 100%;
    max-width: 780px;
    justify-self: center;
  }
}
