/* --- CSS Variables & Design System --- */
:root {
  --clr-bg: #0f1014;
  --clr-bg-darker: #0a0a0c;
  --clr-surface: #1e1e24;
  --clr-surface-hover: #2a2a32;
  --clr-primary: #d4af37; /* Warm Gold */
  --clr-primary-hover: #b3922e;
  --clr-text: #f0f0f0;
  --clr-text-muted: #9ga9aa;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  --nav-height: 80px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Resets & Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-darker {
  background-color: var(--clr-bg-darker);
}

/* Typography Utilities */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--clr-primary);
  color: var(--clr-bg);
  border: 2px solid var(--clr-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--clr-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
  background-color: var(--clr-primary);
  color: var(--clr-bg);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(15, 16, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled {
  background-color: rgba(10, 10, 12, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-primary);
}

.logo-icon {
  color: var(--clr-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--clr-primary);
  transition: var(--transition);
}

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

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--clr-text);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 16, 20, 0.7), rgba(15, 16, 20, 0.95));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--clr-primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--clr-text-muted);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-7px) translateX(-50%); }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--clr-surface);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--clr-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: var(--clr-surface-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-card .price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--clr-primary);
  font-weight: 700;
}

/* --- Before & After Slider --- */
.portfolio-content {
  max-width: 800px;
  margin: 0 auto;
}

.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* The before wrapper will have its width dynamic via JS */
.before-wrapper {
  width: 50%;
  z-index: 2;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--clr-primary);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-bg);
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  pointer-events: none;
}

.slider-button svg {
  width: 20px;
  height: 20px;
}

.portfolio-caption {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- FAQ Section --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--clr-surface);
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--clr-text);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--clr-primary);
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--clr-primary);
}

.faq-question.active svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--clr-text-muted);
}

/* --- Footer --- */
.footer {
  background-color: var(--clr-bg-darker);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--clr-text-muted);
  margin-top: 1rem;
  max-width: 300px;
}

.footer h3 {
  font-size: 1.2rem;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer ul li a {
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--clr-primary);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--clr-text-muted);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

/* --- Scroll Animations (Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .hero-title { font-size: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { 
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--clr-bg-darker);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-container > .btn { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-title { font-size: 2.5rem; }
  .hero { background-attachment: scroll; }
  .footer-grid { grid-template-columns: 1fr; }
  .before-after-container { aspect-ratio: 4/5; }
  .section { padding: 4rem 0; }
}
