/* ===== CSS Variables ===== */
:root {
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-text-light: #777777;
  --color-gold: #c9a84c;
  --color-dark: #1a1a1a;
  --color-grey-light: #f5f5f5;
  --color-grey-border: #e0e0e0;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
  --header-height: 70px;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===== Header ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled,
#header.header-solid {
  background: var(--color-bg);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

#header.scrolled .logo-light,
#header.header-solid .logo-light {
  display: none;
}

#header.scrolled .logo-dark,
#header.header-solid .logo-dark {
  display: block;
}

/* Nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  transition: color var(--transition);
  padding: 5px 0;
}

#header.scrolled .main-nav a,
#header.header-solid .main-nav a {
  color: var(--color-text);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gold);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
}

#header.scrolled .menu-toggle span,
#header.header-solid .menu-toggle span {
  background: var(--color-text);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Hero slideshow — one image at a time, crossfade + scale */
.hero-slideshow {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 45%;
  height: 90%;
}

.hero-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.4));
}

.hero-slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-text {
  position: absolute;
  left: 51%;
  top: 65%;
  text-align: left;
  color: #fff;
}

.hero-logo {
  max-width: 400px;
  margin: 0 0 5px;
}

.hero-text h1 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ===== Portfolio Carousel ===== */
.portfolio-section {
  background: var(--color-grey-light);
  padding: 60px 0 40px;
}

.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0 50px;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  padding-bottom: 56%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.1);
  color: var(--color-text);
}

.carousel-btn.prev {
  left: 5px;
}

.carousel-btn.next {
  right: 5px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-grey-border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.carousel-dot.active {
  background: var(--color-gold);
}

/* ===== Services ===== */
.services-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.service-block {
  text-align: center;
}

.service-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.1;
}

.service-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-light);
  margin-bottom: 25px;
}

.service-block p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text);
  text-align: left;
}

/* ===== Contact ===== */
.contact-section {
  background: var(--color-grey-light);
  padding: 80px 30px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-text);
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.contact-form-wrapper {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 6px;
  font-style: italic;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-grey-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
}

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

.cf-turnstile {
  margin-bottom: 20px;
}

.btn-send {
  display: inline-block;
  padding: 10px 30px;
  background: var(--color-dark);
  color: #fff;
  border: 1px solid var(--color-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-send:hover {
  background: transparent;
  color: var(--color-dark);
}

.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
}

.form-status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.contact-image {
  flex-shrink: 0;
}

.contact-mascot {
  max-height: 500px;
  width: auto;
}

/* ===== Scroll To Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  text-decoration: none;
}

.scroll-top.visible {
  opacity: 0.7;
  visibility: visible;
}

.scroll-top:hover {
  opacity: 1;
}

/* ===== Footer ===== */
#footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 25px 30px;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ===== Cookie Policy / Page Content ===== */
.page-content {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 60vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
}

.page-content h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--color-text);
}

.page-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.page-content a {
  color: var(--color-gold);
  text-decoration: underline;
}

.page-content a:hover {
  color: var(--color-text);
}

/* ===== Mobile Overlay Nav ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay ul {
  list-style: none;
  text-align: center;
}

.nav-overlay li {
  margin-bottom: 25px;
}

.nav-overlay a {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-overlay a:hover {
  color: var(--color-gold);
}

.nav-overlay-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .hero-slideshow {
    top: 5%;
    left: 5%;
    width: 50%;
    height: 55%;
  }

  .hero-text {
    right: 5%;
    bottom: 8%;
    left: 5%;
  }

  .hero-logo {
    max-width: 200px;
  }

  .hero-text h1 {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .service-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 36px;
  }

  .contact-inner {
    flex-direction: column;
    gap: 40px;
  }

  .contact-image {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .contact-mascot {
    max-height: 350px;
  }

  .carousel-container {
    padding: 0 35px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    max-width: 160px;
  }

  .service-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .services-section {
    padding: 50px 20px;
  }

  .contact-section {
    padding: 50px 20px;
  }
}
