/* CSS Reset (modern, minimal) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
li,
figure {
  margin: 0;
  padding: 0;
}

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

/* Theme */

:root {
  --color-bg: #2c1a07;          /* deep brown */
  --color-bg-alt: #201106;
  --color-surface: #3a2510;
  --color-accent: #f8e3a3;      /* cream from logo */
  --color-accent-soft: rgba(248, 227, 163, 0.12);
  --color-text: #fdf7e9;
  --color-muted: #c8b89a;
  --color-border: rgba(248, 227, 163, 0.2);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --nav-height: 70px;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #1b0c05; /* solid dark fallback so no white shows */
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #4b3117 0, #140a03 55%, #0a0502 100%);
  color: var(--color-text);
  line-height: 1.6;
}


/* Layout helpers */

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

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(12, 6, 2, 0.96), rgba(12, 6, 2, 0.88));
  border-bottom: 1px solid rgba(248, 227, 163, 0.16);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.brand-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Nav links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  position: relative;
  padding-bottom: 0.1rem;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 227, 163, 0.4);
  background: rgba(10, 5, 2, 0.85);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero */

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 232, 164, 0.14) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 196, 120, 0.18) 0, transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--color-accent);
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
}

.hero-copy p {
  max-width: 32rem;
  font-size: 0.98rem;
  color: var(--color-muted);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-services-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: none;
}

.hero-services-link:hover {
  color: var(--color-accent);
}

.hero-services-arrow {
  font-size: 0.9rem;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(248, 227, 163, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-muted);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.hero-scroll:hover {
  transform: translate(-50%, -3px);
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 5rem; /* extra room for the scroll arrow */
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f8e3a3, #f1d37a);
  color: #231505;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-accent);
  border-color: rgba(248, 227, 163, 0.4);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.5);
}

.btn-full-width {
  width: 100%;
}

/* Hero side card */

.hero-card {
  background: radial-gradient(circle at top left, rgba(248, 227, 163, 0.08), rgba(11, 5, 2, 0.95));
  border-radius: 1.4rem;
  border: 1px solid var(--color-border);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.hero-card ul {
  list-style: none;
  margin-bottom: 1.2rem;
}

.hero-card li {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.45rem;
}

/* Sections */

.section {
  padding: 4rem 0 3.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(248, 227, 163, 0.04), rgba(8, 3, 1, 0.98));
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.section-intro {
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(15, 7, 3, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 227, 163, 0.16);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--color-accent);
}

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

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(248, 227, 163, 0.14);
}

/* Carousel inside each gallery item */

.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(248, 227, 163, 0.18);
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative; /* needed for overlay */
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* base: define content, but no styles */
.carousel-slide::after {
  content: attr(data-label);
}

/* only slides that actually HAVE a data-label get the pill */
.carousel-slide[data-label]::after {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-accent);
  font-size: 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  pointer-events: none;
  backdrop-filter: blur(3px);
  text-transform: uppercase;
}
/* generic img rule for gallery, uses slides above */
.gallery-item img {
  width: 100%;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(248, 227, 163, 0.6);
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease-out,
              transform 0.15s ease-out,
              opacity 0.15s ease-out;
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.gallery-item figcaption {
  padding: 0.75rem 0.9rem 0.9rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* Estimate section */

.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.bullet-list {
  list-style: none;
  margin-top: 0.75rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0.3rem;
  top: 0.06rem;
  color: var(--color-accent);
}

.estimate-card {
  background: radial-gradient(circle at top left, rgba(248, 227, 163, 0.1), rgba(9, 4, 2, 0.96));
  border-radius: 1.3rem;
  border: 1px solid var(--color-border);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.estimate-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.estimate-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.estimate-contact {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.estimate-contact a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Footer */

.site-footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(248, 227, 163, 0.14);
  background: rgba(5, 2, 1, 0.96);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-subtext {
  margin-top: 0.3rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    padding-top: 4.25rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 1.75rem;
  }

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

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

  .estimate-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    background: radial-gradient(circle at top, #3d2713, #0b0502);
    flex-direction: column;
    padding: 1.1rem 1.25rem 1.4rem;
    gap: 0.9rem;
    border-bottom: 1px solid rgba(248, 227, 163, 0.18);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
