@import url('https://fonts.googleapis.com/css2?family=Cardo:wght@400;700&family=Roboto:wght@400;500;600&display=swap');

:root {
  --color-charcoal:     #2E2E2E;
  --color-navy:         #04395E;
  --color-orange:       #F9A046;
  --color-orange-light: #FFBC7D;
  --color-text:         #646464;
  --color-white:        #FFFFFF;
  --color-bg:           #FAFAFA;
  --color-border:       #E5E5E5;
  --font-heading: 'Cardo', serif;
  --font-ui:      'Roboto', sans-serif;
  --container:    1200px;
  --radius-btn:   59px;
  --transition:   0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  color: var(--color-text);
  background: var(--color-bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; color: var(--color-charcoal); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 5vw, 4.6875rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.8rem); }
h5 { font-size: 1rem; font-family: var(--font-ui); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
p { margin-bottom: 1rem; }

.btn {
  display: inline-block;
  font-family: var(--font-ui); font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--radius-btn); padding: 15px 51px 14px;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  border: none;
}
.btn-primary { background: var(--color-orange); color: var(--color-white); }
.btn-primary:hover { background: var(--color-orange-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-charcoal); }

/* =====================
   NAV
===================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--color-navy); padding: 0 1.5rem; }
.nav-inner { max-width: var(--container); margin: 0 auto; height: 80px; display: flex; align-items: center; gap: 2rem; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; flex: 1; }
.nav-links a { color: var(--color-white); font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: border-color var(--transition); white-space: nowrap; }
.nav-links a:hover { border-color: var(--color-orange); }
.nav-cta { flex-shrink: 0; padding: 10px 28px; font-size: 0.8125rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--color-white); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 80px; left: 0; right: 0; background: var(--color-navy); padding: 1rem 1.5rem; z-index: 999; }
  .nav-links.open a { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* =====================
   HERO
===================== */
.hero {
  margin-top: 80px;
  position: relative;
  min-height: 100vh;
  background: url('https://cdn.suntasticdecks.com/2023/01/hero-img.jpg') center 35% / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #031D4400 40%, #031D44 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 280px 5% 0;
  width: 100%;
}
.hero-premium {
  position: relative;
  z-index: 2;
  background: var(--color-navy);
  padding: 3rem 0;
  color: var(--color-white);
  text-align: center;
}
.hero-premium h2 { color: var(--color-white); margin-bottom: 1.25rem; }
.hero-premium p { max-width: 780px; margin: 0 auto 1rem; color: rgba(255,255,255,0.85); }
.hero-photos {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2rem 1.5rem 2.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-photos::-webkit-scrollbar { display: none; }
.hero-photos img {
  height: 220px;
  aspect-ratio: 4/3;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
}
.hero-tagline {
  width: 85%;
  max-width: 900px;
  margin: 0 auto 86px;
  display: block;
}
.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 196px;
  height: 196px;
}

@media (max-width: 768px) {
  .hero-content { padding: 140px 5% 2rem; }
  .hero-tagline { width: 90%; margin-bottom: 60px; }
  .hero-badge { width: 140px; height: 140px; }
  .hero-premium { padding: 2rem 1rem; }
}

/* =====================
   SERVICES SECTION
===================== */
.services-sec { background: var(--color-bg); }
.services-sec .container { padding: 5rem 1.5rem 2.5rem; }
.services-sec h2 { margin-bottom: 1rem; }
.section-intro { max-width: 700px; }

/* Vendor logos strip */
.logos-strip {
  background: #f8f8f8;
  padding: 2rem 0;
  overflow: hidden;
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: logoScroll 28s linear infinite;
}
.logos-track img { height: 40px; width: auto; object-fit: contain; }
@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logos-strip:hover .logos-track { animation-play-state: paused; }

/* Showcase slider: Porches / Basements / Kitchens */
.showcase-slider {
  position: relative;
  height: 540px;
  overflow: hidden;
}
.showcase-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
}
.showcase-slide.active { opacity: 1; z-index: 1; }
.showcase-overlay {
  background: linear-gradient(to right, rgba(4,57,94,0.88) 0%, rgba(4,57,94,0.55) 60%, transparent 100%);
  padding: 3rem 4rem;
  max-width: 600px;
  color: var(--color-white);
}
.showcase-overlay h3 { color: var(--color-white); margin-bottom: 1rem; }
.showcase-overlay p { opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.7; }
.showcase-prev, .showcase-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: #fff; border: none; cursor: pointer;
  font-size: 2.5rem; padding: 0.4rem 0.85rem; z-index: 3;
  transition: background var(--transition);
}
.showcase-prev:hover, .showcase-next:hover { background: rgba(255,255,255,0.3); }
.showcase-prev { left: 1rem; }
.showcase-next { right: 1rem; }
.showcase-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 3; }
.showcase-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: background var(--transition); }
.showcase-dots button.active { background: #fff; }

@media (max-width: 768px) {
  .showcase-slider { height: 420px; }
  .showcase-overlay { padding: 2rem 1.5rem; max-width: 100%; background: linear-gradient(to top, rgba(4,57,94,0.88) 0%, rgba(4,57,94,0.55) 70%, transparent 100%); position: absolute; bottom: 0; left: 0; right: 0; }
}

/* =====================
   GALLERY BANNER
===================== */
.gallery-banner {
  display: block;
  position: relative;
  overflow: hidden;
  height: 400px;
}
.gallery-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-banner:hover img { transform: scale(1.03); }
.gallery-banner-overlay {
  position: absolute; inset: 0;
  background: rgba(4,57,94,0.65);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  color: var(--color-white);
}
.gallery-banner-overlay h2 { color: var(--color-white); margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 5rem); }
.gallery-banner-overlay p { max-width: 640px; opacity: 0.9; margin-bottom: 1.75rem; line-height: 1.65; }

/* =====================
   MATERIALS
===================== */
.materials-sec { padding: 5rem 0; background: var(--color-white); }
.materials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.materials-text h5 { color: var(--color-orange); margin-bottom: 0.5rem; }
.materials-text h2 { margin-bottom: 1.25rem; }
.materials-note { font-size: 0.875rem; font-style: italic; opacity: 0.75; }
.materials-image img { width: 100%; border-radius: 4px; object-fit: cover; }
@media (max-width: 768px) { .materials-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* =====================
   TESTIMONIALS
===================== */
.testimonials-sec { padding: 5rem 0; background: var(--color-bg); }
.testimonials-sec h5 { color: var(--color-orange); margin-bottom: 0.5rem; }
.testimonials-sec h2 { margin-bottom: 3rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
}
.testimonial-card p { font-style: italic; color: var(--color-charcoal); line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.testimonial-author { font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-navy); }

/* =====================
   GALLERY PAGE
===================== */
.gallery-section { padding-top: calc(5rem + 80px); padding-bottom: 0; }
.gallery-intro { margin-bottom: 2rem; }
.gallery-intro h5 { color: var(--color-orange); margin-bottom: 0.5rem; }
.gallery-intro h2 { margin-bottom: 1rem; }
.gallery-intro p { max-width: 700px; }

/* Category filter bar — sticky */
.gallery-filter-bar {
  position: sticky;
  top: 80px;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0;
}
.gallery-tab {
  padding: 0.55rem 1.25rem;
  border: 2px solid var(--color-border);
  background: transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.gallery-tab:hover { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.gallery-tab.active { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }
.tab-count { opacity: 0.75; font-size: 0.75em; font-weight: 400; }

/* Category sections */
.gallery-categories { padding-top: 1rem; }
.gallery-category { display: none; padding: 2.5rem 0; border-bottom: 1px solid var(--color-border); }
.gallery-category.active { display: block; }
.gallery-category:last-child { border-bottom: none; }
.cat-header { margin-bottom: 1.5rem; }
.cat-header h3 { color: var(--color-charcoal); }
.cat-subtitle { font-size: 0.9rem; color: var(--color-text); margin-top: 0.25rem; margin-bottom: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.gallery-item { overflow: hidden; border-radius: 4px; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Gallery CTA banner */
.gallery-cta-banner { display: block; text-decoration: none; }
.gallery-cta-banner:hover { opacity: 0.95; }

/* Active nav link */
.current-page { border-color: var(--color-orange) !important; }

@media (max-width: 600px) {
  .gallery-filter-bar { top: 70px; }
  .gallery-tabs { gap: 0.35rem; }
  .gallery-tab { font-size: 0.72rem; padding: 0.45rem 0.9rem; }
}

/* =====================
   LIGHTBOX
===================== */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--color-white); font-size: 2rem; background: none; border: none; cursor: pointer; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: var(--color-white); font-size: 2rem; background: rgba(255,255,255,0.1); border: none; cursor: pointer; padding: 1rem; transition: background var(--transition); }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* =====================
   CONTACT PAGE
===================== */
.contact-hero {
  background: url('https://cdn.suntasticdecks.com/2023/01/hero-img.jpg') center center / cover no-repeat;
  padding: calc(80px + 5rem) 0 5rem;
  text-align: center;
  position: relative;
}
.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 29, 68, 0.72);
  pointer-events: none;
}
.contact-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-section { padding: 4rem 0; background: var(--color-orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row.full { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-charcoal); margin-bottom: 0.4rem; }
input[type="text"], input[type="tel"], input[type="email"], select, input[type="file"] { width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(0,0,0,0.15); border-radius: 4px; font-family: var(--font-ui); font-size: 0.9375rem; color: var(--color-charcoal); background: var(--color-white); transition: border-color var(--transition); }
input:focus, select:focus { outline: none; border-color: var(--color-navy); }
.form-notice { font-size: 0.8rem; color: var(--color-charcoal); margin-top: 0.3rem; }
.form-status { display: none; padding: 1rem 1.25rem; border-radius: 4px; margin-top: 1.25rem; font-size: 0.9rem; }
.form-status.success { display: block; background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.form-status.error { display: block; background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.upload-zone {
  border: 2px dashed rgba(0,0,0,0.18);
  border-radius: 6px;
  background: var(--color-white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover,
.upload-zone.drag-over { border-color: var(--color-navy); background: #f0f4f8; }
.upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  pointer-events: none;
}
.upload-zone-icon { color: #b0b8c4; margin-bottom: 0.75rem; }
.upload-zone-text { font-size: 0.9375rem; color: var(--color-charcoal); margin: 0 0 0.35rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.upload-zone-link { color: var(--color-navy); text-decoration: underline; font-weight: 600; }
.upload-zone-hint { font-size: 0.8rem; color: #888; margin: 0; font-weight: 400; text-transform: none; letter-spacing: 0; }
.upload-file-list { margin-top: 0.6rem; }
.upload-file-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}
.upload-file-name { flex: 1; color: var(--color-charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.upload-file-size { color: #888; flex-shrink: 0; font-size: 0.8rem; }
.upload-file-remove {
  flex-shrink: 0; background: none; border: none; color: #aaa;
  cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0;
  transition: color 0.15s;
}
.upload-file-remove:hover { color: #cc0000; }
#submit-btn { background: var(--color-navy); }
#submit-btn:hover { background: #031D44; transform: translateY(-1px); }

/* =====================
   FOOTER
===================== */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.8); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 3rem;
  background: var(--color-charcoal);
  align-items: center;
}
.footer-contact h2, .footer-cta h2 { color: var(--color-white); font-size: clamp(1.2rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.footer-label { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.6; margin-bottom: 0.25rem; }
.footer-contact a { color: var(--color-orange); font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }
.footer-cta { text-align: right; }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; } .footer-cta { text-align: left; } }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding: 3rem;
  align-items: start;
}
.footer-locations h3 { color: var(--color-white); font-family: var(--font-heading); text-transform: uppercase; font-size: 1.4rem; margin-bottom: 1.25rem; }
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem 2rem; }
.locations-grid ul { list-style: none; }
.locations-grid li { font-size: 0.875rem; padding: 0.15rem 0; opacity: 0.75; }

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.875rem; opacity: 0.75; transition: opacity var(--transition); }
.footer-nav a:hover { opacity: 1; color: var(--color-orange); }

@media (max-width: 768px) {
  .footer-bottom { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
}

.footer-copy { text-align: center; padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8125rem; opacity: 0.6; }
.footer-copy a { color: var(--color-orange); }
