/* Clear Choice Home Renovations — styles */

:root {
  --bg: #1E1E1E;
  --surface: #272727;
  --accent: #2D6A4F;
  --text: #F5F0E8;
  --muted: #8A9E9E;
  --border: #333333;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 30, 30, 0.25);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: 100%;
  max-width: 100px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  border-color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18, 18, 18, 0.88) 0%,
    rgba(18, 18, 18, 0.60) 50%,
    rgba(18, 18, 18, 0.30) 100%
  );
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(45deg, rgba(245,240,232,0.04) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-left: 8vw;
  text-align: left;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  text-align: left;
}

.hero .sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  margin-bottom: 36px;
  text-align: left;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* page hero (smaller, used on inner pages) */
.page-hero {
  padding: 110px 24px 70px;
  text-align: center;
  background: linear-gradient(180deg, #1E1E1E 0%, #161616 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.page-hero .sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.btn-primary:hover {
  background: #295F47;
}

.btn-outline {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust-bar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: 22px 24px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.trust-bar li {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-bar li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Sections ---------- */
section {
  padding: 90px 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-head::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.section-head p {
  color: var(--muted);
  margin-top: 8px;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  height: 280px;
  border-radius: 8px;
  perspective: 1000px;
  filter: drop-shadow(0 0 12px rgba(45, 106, 79, 0.25));
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  filter: drop-shadow(0 0 0px rgba(45, 106, 79, 0));
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: inherit;
}

.card-front {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 26px;
  box-shadow: 0 0 18px 4px rgba(45, 106, 79, 0.35),
              0 0 40px 8px rgba(45, 106, 79, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.service-card:hover .card-front {
  border-color: var(--accent);
}

.card-back {
  transform: rotateY(180deg);
  overflow: hidden;
  border-radius: inherit;
  box-shadow: none;
}

.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-back-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(18, 18, 18, 0.92) 0%,
    rgba(18, 18, 18, 0.4) 70%,
    transparent 100%
  );
  z-index: 2;
}

.card-back-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.card-back-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.service-card .icon {
  color: var(--accent);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

@media (max-width: 768px) {
  .service-card:hover .card-inner {
    transform: none;
  }

  .service-card.flipped .card-inner {
    transform: rotateY(180deg);
  }

  .nav-logo img {
    max-width: 80px;
  }
}

/* ---------- Featured work / placeholders ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.placeholder-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--surface) 25%, transparent 25%) -20px 0/40px 40px,
    linear-gradient(225deg, var(--surface) 25%, transparent 25%) -20px 0/40px 40px,
    linear-gradient(315deg, var(--surface) 25%, transparent 25%) 0 0/40px 40px,
    linear-gradient(45deg, var(--surface) 25%, #1E1E1E 25%) 0 0/40px 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
}

.placeholder-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 106, 79, 0);
  transition: background 0.25s ease;
}

.placeholder-img:hover .overlay {
  background: rgba(45, 106, 79, 0.55);
}

.placeholder-img .label {
  position: relative;
  z-index: 1;
  padding: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(0deg, rgba(28,43,43,0.85), transparent);
  width: 100%;
}

.work-cta {
  text-align: center;
}

.work-cta a {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.work-cta a:hover {
  text-decoration: underline;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-grid p {
  margin-bottom: 16px;
  color: var(--text);
}

.about-photo {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.faq-item p {
  color: var(--text);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--accent);
  color: #1E1E1E;
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  margin-bottom: 14px;
}

.cta-banner p {
  margin-bottom: 28px;
  font-weight: 600;
}

.cta-banner .btn-primary {
  background: #1E1E1E;
  color: var(--text);
}

.cta-banner .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ---------- Footer ---------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 30px;
}

.footer-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.footer-grid p, .footer-grid a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Mobile bottom CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--accent);
  border-top: 1px solid var(--border);
}

.mobile-cta-bar .row {
  display: flex;
}

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  font-weight: 700;
  color: #1E1E1E;
  letter-spacing: 0.02em;
}

.mobile-cta-bar a:first-child {
  border-right: 1px solid rgba(28,43,43,0.25);
}

/* ---------- Projects page ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #1E1E1E;
  border-color: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.project-card .placeholder-img {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}

.project-card .body {
  padding: 22px;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #1E1E1E;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.project-card .location {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.project-card p.desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-card.is-hidden {
  display: none;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.97rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.contact-details h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 22px 0 8px;
}

.contact-details h3:first-child {
  margin-top: 0;
}

.contact-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}

.contact-details a:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .card-grid,
  .work-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links li {
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: none;
  }

  .hamburger {
    display: flex;
  }

  .card-grid,
  .work-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }

  .mobile-cta-bar {
    display: block;
  }

  body {
    padding-bottom: 56px;
  }
}
