/* Custom properties (Variables) for theming */
:root {
  --primary: #1C2224;      /* Deep Charcoal */
  --secondary: #907865;    /* Warm beige/taupe for accents */
  --secondary-light: #B4A292;
  --bg-light: #F7F5F2;     /* Off white */
  --bg-dark: #121516;
  --text-main: #333333;
  --text-muted: #666666;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease-in-out;
  --border-radius: 4px;
}

/* Reset and Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, .logo {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}
.section-intro {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.125rem;
}

.text-center { text-align: center; }
.mt-lg { margin-top: 4rem; }
.mt-md { margin-top: 3rem; }

/* Backgrounds */
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.bg-dark h2, .bg-dark p, .bg-dark .section-title { color: var(--white); }

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.align-center { align-items: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
}

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

#portfolio .btn-primary:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-solid {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  transition: background-color var(--transition);
}

.btn-solid:hover {
  background-color: var(--secondary);
}

.arrow-icon {
  display: inline-block;
  line-height: inherit;
  font-size: 1.1em;
  transform: translateY(-0.05em);
  transition: transform var(--transition);
}

.btn-solid:hover .arrow-icon,
.btn-primary:hover .arrow-icon {
  transform: translate(4px, -0.05em);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}
.logo:hover {
  opacity: 0.85;
}

.logo-img {
  max-height: 48px;
  width: auto;
  display: block;
  margin-right: 1.25rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.header.scrolled .brand-name {
  color: var(--primary);
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}
.header.scrolled .nav-link { color: var(--primary); }

/* Nav button styles */
.header .nav-list .btn-solid {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: var(--border-radius);
}
.header .nav-list .btn-solid:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.header.scrolled .nav-list .btn-solid {
  background: var(--secondary);
  border: 1px solid var(--secondary);
  color: var(--white);
  border-radius: var(--border-radius);
}
.header.scrolled .nav-list .btn-solid:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  padding: 10px;
}

.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: var(--transition);
}
.hamburger::before { content: ''; top: -8px; }
.hamburger::after { content: ''; bottom: -8px; }
.header.scrolled .hamburger,
.header.scrolled .hamburger::before,
.header.scrolled .hamburger::after {
  background-color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 800px;
}

.hero-title, .hero-subtitle {
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Process Section */
.process .grid {
  gap: 3.5rem;
  margin-top: 4.5rem;
}

.feature-card {
  background: transparent;
  padding: 3.5rem 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(28, 34, 36, 0.12);
  box-shadow: none;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: left;
  z-index: 1;
}

.feature-card:hover {
  border-color: var(--secondary);
}

.feature-icon {
  font-family: var(--font-heading);
  font-size: 7rem;
  color: var(--secondary);
  opacity: 0.14;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-30%, -48%);
  line-height: 0.8;
  font-weight: 300;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* Services Section */
.img-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-wrapper img {
  transition: transform 0.7s ease;
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.content-wrapper {
  padding: 2rem;
}

.list-checked {
  list-style: none;
  margin-top: 1.5rem;
}

.list-checked li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.list-checked li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Portfolio Section */
.gallery-filters {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  border-radius: 20px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.gallery-item {
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(28, 34, 36, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-overlay span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay, .gallery-item:focus .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span, .gallery-item:focus .gallery-overlay span { transform: translateY(0); }

.gallery-item.hide {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(18, 21, 22, 0.98);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  overflow-y: auto;
  padding: 4rem 1rem;
}

@media (min-width: 900px) {
  .lightbox {
    align-items: center;
  }
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content.split {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 95%;
  gap: 2rem;
  color: var(--white);
  position: relative;
  margin: auto;
}

@media (min-width: 900px) {
  .lightbox-content.split {
    flex-direction: row;
    align-items: stretch;
    max-height: 90vh;
  }
}

.lightbox-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

#lightbox-main-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  background-color: transparent;
}

.lightbox-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.lightbox-thumbnails::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

@media (min-width: 600px) {
  .lightbox-thumbnails {
    justify-content: center;
  }
}

.lightbox-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: 0.6;
}

.lightbox-thumbnails img.active,
.lightbox-thumbnails img:hover {
  border-color: var(--white);
  opacity: 1;
}

.lightbox-right {
  flex: 1 1 auto;
  background-color: var(--bg-light);
  color: var(--primary);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (min-width: 900px) {
  .lightbox-right {
    flex: 0 0 380px;
  }
}

#lightbox-title {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--secondary-light);
  padding-bottom: 0.75rem;
}

.lightbox-meta {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.lightbox-meta strong {
  color: var(--primary);
}

#lightbox-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  z-index: 101;
  transition: background var(--transition), border-color var(--transition);
}

.lightbox-arrow-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.25px; /* Elegant, refined line-weight for high-end feel */
  display: block;
  transition: transform var(--transition);
}

.lightbox-prev:hover .lightbox-arrow-icon {
  transform: translateX(-2px);
}

.lightbox-next:hover .lightbox-arrow-icon {
  transform: translateX(2px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 10px;
}

@media (min-width: 900px) {
  .lightbox-prev {
    left: 20px;
  }
}

.lightbox-next {
  right: 10px;
}

@media (min-width: 900px) {
  .lightbox-next {
    right: 20px;
  }
}

.lightbox-close {
  position: fixed;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  z-index: 102;
}

@media (min-width: 900px) {
  .lightbox-close {
    top: 20px;
    right: 20px;
  }
}

/* Testimonials */
.quote-mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0rem;
  opacity: 0.8;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
}

.quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--primary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.author {
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 1px;
}

/* Contact */
.contact-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
}

.contact-info {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 3rem;
}

.contact-info h2, .contact-info p {
  color: var(--white);
}

.contact-details {
  list-style: none;
  margin-top: 2rem;
}

.contact-details li {
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.8);
}
.contact-details strong { color: var(--secondary); }

.contact-form-wrapper {
  padding: 4rem 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.error-msg {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error input { border-color: #dc3545; }
.form-group.error .error-msg { display: block; }

.submit-btn { width: 100%; }

.form-success-msg {
  color: #28a745;
  margin-top: 1rem;
  font-weight: 600;
  display: none;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 2rem 0;
}

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

.footer-col.brand-col {
  padding-right: 2rem;
}

.footer-col p {
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-heading {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.logo-footer {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo {
  max-height: 44px;
  width: auto;
  display: block;
  margin-right: 1.25rem;
}

.logo-footer .brand-name {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a { 
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--secondary); }

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.social-links a:hover .social-icon {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
}

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

.faq-title-area {
  margin-bottom: 3rem;
}

.faq-title-area .section-title {
  margin-bottom: 1rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(144, 120, 101, 0.3);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

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

.faq-item.active .faq-question {
  color: var(--secondary);
}

.faq-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Horizontal line */
.faq-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

/* Vertical line */
.faq-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.faq-item.active .faq-icon::before {
  background-color: var(--secondary);
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  background-color: transparent;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
  padding: 0 2rem 1.5rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* About Section */
.about {
  background-color: var(--white);
}

.about .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-badge {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.about-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.22rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; height: 100vh;
    background: var(--bg-dark);
    padding: 6rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .main-nav.open { right: 0; }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .nav-link { color: var(--white); font-size: 1.1rem; }
  .header.scrolled .main-nav .nav-link { color: var(--white); }

  .hamburger.open,
  .header.scrolled .hamburger.open { background-color: transparent !important; background: transparent !important; }
  .hamburger.open::before { transform: rotate(45deg); top: 0; }
  .hamburger.open::after { transform: rotate(-45deg); bottom: 0; }
  .header.scrolled .hamburger.open::before,
  .header.scrolled .hamburger.open::after { background-color: var(--white); }

  .reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
  
  .contact-info, .contact-form-wrapper {
    padding: 2rem;
  }

  /* FAQ Mobile Styling */
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
  }
  .faq-answer-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
