/* ==========================================================================
   Pridemark Contractors — concept redesign
   Premium coastal-estate aesthetic: dark charcoal, brushed brass, wide
   photography, architectural type. Prepared by Ashcombe Digital.
   ========================================================================== */

:root{
  --ink: #0c0d0f;
  --ink-2: #14161a;
  --ink-3: #1c1f24;
  --paper: #f3efe6;
  --paper-dim: #cfc9bb;
  --line: rgba(243,239,230,0.12);
  --line-strong: rgba(243,239,230,0.22);
  --gold: #c6a15b;
  --gold-bright: #e0bd7d;
  --gold-deep: #8f7038;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --maxw: 1240px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; margin: 0; color: var(--paper); }
p{ margin: 0; }
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor: pointer; }

.eyebrow{
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-gold{ background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover{ background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost{ background: transparent; color: var(--paper); border-color: var(--line-strong); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }
.btn-outline{ background: transparent; color: var(--paper); border-color: var(--gold); padding: 11px 22px; }
.btn-outline:hover{ background: var(--gold); color: var(--ink); }
.btn-block{ width: 100%; }

/* mockup badge */
.mockup-badge{
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 500;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* ---------------- header ---------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(12,13,15,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo{ height: 44px; width: auto; }
.main-nav{ display: flex; gap: 36px; }
.main-nav a{
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}
.main-nav a:hover{ color: var(--gold); }
.header-cta{ display: flex; align-items: center; gap: 22px; }
.header-phone{ font-size: 0.88rem; letter-spacing: 0.04em; color: var(--paper-dim); }
.header-phone:hover{ color: var(--gold); }
.nav-toggle{
  display: none;
  background: none; border: none;
  width: 32px; height: 24px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span{ display:block; height: 2px; background: var(--paper); border-radius: 2px; }

/* ---------------- hero ---------------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media{ position: absolute; inset: 0; }
.hero-img{ width: 100%; height: 100%; object-fit: cover; }
.hero-overlay{
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(12,13,15,0.96) 0%, rgba(12,13,15,0.55) 46%, rgba(12,13,15,0.35) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 90px;
  width: 100%;
}
.hero h1{
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  color: var(--paper);
  max-width: 820px;
  margin-bottom: 22px;
}
.hero-sub{
  font-size: 1.08rem;
  color: var(--paper-dim);
  max-width: 560px;
  margin-bottom: 34px;
  font-weight: 300;
}
.hero-actions{ display: flex; gap: 18px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-stats{
  display: flex;
  gap: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
  flex-wrap: wrap;
}
.hero-stat{ display: flex; flex-direction: column; gap: 4px; }
.stat-num{ font-family: var(--serif); font-size: 2rem; color: var(--gold-bright); font-weight: 600; }
.stat-label{ font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim); }

/* ---------------- trust bar ---------------- */
.trust-bar{ background: var(--ink-2); border-bottom: 1px solid var(--line); }
.trust-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.trust-item h3{ font-size: 1.15rem; margin-bottom: 12px; color: var(--gold-bright); }
.trust-item p{ font-size: 0.9rem; color: var(--paper-dim); font-weight: 300; line-height: 1.65; }

/* ---------------- section shared ---------------- */
.section-head{ max-width: var(--maxw); margin: 0 auto; padding: 0 32px; text-align: left; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(1.9rem, 3.2vw, 2.7rem); max-width: 640px; margin-bottom: 14px; }
.section-sub{ font-size: 1rem; color: var(--paper-dim); font-weight: 300; max-width: 560px; }

/* ---------------- portfolio ---------------- */
.portfolio{ padding: 110px 0 100px; background: var(--ink); }
.portfolio-grid{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.project-card{ border-radius: var(--radius); overflow: hidden; }
.project-card:nth-child(1){ grid-column: span 4; grid-row: span 2; }
.project-card:nth-child(2){ grid-column: span 2; grid-row: span 1; }
.project-card:nth-child(3){ grid-column: span 2; grid-row: span 1; }
.project-card:nth-child(4){ grid-column: span 3; grid-row: span 1; }
.project-card:nth-child(5){ grid-column: span 3; grid-row: span 1; }

.project-open{
  position: relative;
  width: 100%; height: 100%;
  border: none; padding: 0; margin: 0;
  background: var(--ink-3);
  display: block;
}
.project-open img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), filter 0.6s ease;
  filter: saturate(0.92) brightness(0.86);
}
.project-open:hover img{ transform: scale(1.05); filter: saturate(1) brightness(0.9); }
.project-card-overlay{
  position: absolute; left:0; right:0; bottom:0;
  padding: 22px 24px;
  background: linear-gradient(0deg, rgba(12,13,15,0.92) 0%, rgba(12,13,15,0) 100%);
  text-align: left;
}
.project-tag{ font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); }
.project-card-overlay h3{ font-size: 1.4rem; margin: 6px 0 4px; color: var(--paper); }
.project-count{ font-size: 0.78rem; color: var(--paper-dim); }

/* ---------------- process ---------------- */
.process{
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-media{ position: relative; min-height: 480px; }
.process-media img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: saturate(0.85) brightness(0.82); }
.process-content{ padding: 90px 64px; }
.process-content h2{ font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 40px; }
.process-steps{ display: flex; flex-direction: column; gap: 28px; }
.process-steps li{ display: flex; gap: 20px; }
.step-num{ font-family: var(--serif); font-size: 1.3rem; color: var(--gold); flex-shrink: 0; width: 40px; }
.process-steps h3{ font-size: 1.1rem; margin-bottom: 6px; color: var(--paper); }
.process-steps p{ font-size: 0.88rem; color: var(--paper-dim); font-weight: 300; line-height: 1.65; }

/* ---------------- about ---------------- */
.about{ padding: 110px 0; background: var(--ink); }
.about-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text h2{ font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 24px; }
.about-text p{ font-size: 0.98rem; color: var(--paper-dim); font-weight: 300; line-height: 1.75; margin-bottom: 18px; }
.about-cta{ margin-top: 28px; }
.video-frame{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption{ display: block; margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); text-align: center; }

/* ---------------- contact ---------------- */
.contact{ padding: 110px 0; background: var(--ink-2); border-top: 1px solid var(--line); }
.contact-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-info h2{ font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 18px; }
.contact-list{ margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li{ display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.contact-list span{ font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.contact-list a{ font-size: 1.05rem; color: var(--paper); }
.contact-list a:hover{ color: var(--gold-bright); }

.contact-form{ background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 40px; }
.form-row{ margin-bottom: 20px; }
.form-row label{ display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 8px; }
.form-row input, .form-row textarea{
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.form-row input:focus, .form-row textarea:focus{ outline: none; border-color: var(--gold); }
.form-note{ margin-top: 14px; font-size: 0.76rem; color: var(--paper-dim); text-align: center; font-weight: 300; }

/* ---------------- footer ---------------- */
.site-footer{ background: var(--ink); border-top: 1px solid var(--line); }
.footer-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-logo{ height: 40px; margin-bottom: 16px; }
.footer-brand p{ font-size: 0.86rem; color: var(--paper-dim); font-weight: 300; line-height: 1.6; }
.footer-links, .footer-contact{ display: flex; flex-direction: column; gap: 12px; }
.footer-links h4, .footer-contact h4{ font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer-links a, .footer-contact a, .footer-contact span{ font-size: 0.88rem; color: var(--paper-dim); }
.footer-links a:hover, .footer-contact a:hover{ color: var(--gold-bright); }
.footer-bottom{ border-top: 1px solid var(--line); padding: 22px 32px; text-align: center; }
.footer-bottom p{ font-size: 0.76rem; color: var(--paper-dim); opacity: 0.7; }

/* ---------------- lightbox ---------------- */
.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,9,10,0.97);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 24px;
}
.lightbox.is-open{ display: flex; }
.lightbox-stage{ position: relative; width: 100%; max-width: 1100px; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox-stage img{ max-width: 100%; max-height: 68vh; object-fit: contain; border: 1px solid var(--line-strong); }
.lightbox-stage iframe{ width: 100%; max-width: 1000px; aspect-ratio: 16/9; border: 1px solid var(--line-strong); }
.lightbox-close{
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--paper); font-size: 2.2rem; line-height: 1;
}
.lightbox-close:hover{ color: var(--gold); }
.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong);
  color: var(--paper); font-size: 1.8rem; width: 52px; height: 52px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.lightbox-nav:hover{ background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox-prev{ left: 20px; }
.lightbox-next{ right: 20px; }
.lightbox-meta{ display: flex; gap: 16px; align-items: baseline; margin-top: 18px; color: var(--paper-dim); font-size: 0.85rem; }
#lightbox-title{ font-family: var(--serif); font-size: 1.2rem; color: var(--paper); }
.lightbox-thumbs{
  display: flex; gap: 8px; margin-top: 16px; max-width: 100%; overflow-x: auto;
  padding-bottom: 6px;
}
.lightbox-thumbs img{
  width: 64px; height: 46px; object-fit: cover; opacity: 0.5; cursor: pointer;
  border: 1px solid transparent; flex-shrink: 0; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lightbox-thumbs img:hover{ opacity: 0.85; }
.lightbox-thumbs img.is-active{ opacity: 1; border-color: var(--gold); }

/* ---------------- responsive ---------------- */
@media (max-width: 980px){
  .main-nav{ display: none; }
  .header-cta .header-phone{ display: none; }
  .nav-toggle{ display: flex; }
  .trust-inner{ grid-template-columns: repeat(2, 1fr); }
  .process{ grid-template-columns: 1fr; }
  .process-media{ min-height: 320px; }
  .about-inner, .contact-inner{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5){ grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px){
  .trust-inner{ grid-template-columns: 1fr; padding: 48px 24px; }
  .hero-content{ padding: 0 20px 60px; }
  .hero-stats{ gap: 28px; }
  .section-head, .portfolio-grid, .process-content, .about-inner, .contact-inner, .footer-inner{ padding-left: 20px; padding-right: 20px; }
  .process-content{ padding-top: 56px; padding-bottom: 56px; }
  .lightbox-nav{ width: 40px; height: 40px; font-size: 1.4rem; }
}
