/* ===== VARIABLES ===== */
:root {
  --gold: #E6C17D;
  --brown: #3C2A21;
  --sand: #F8E9D2;
  --ocean: #648C8C;
  --card-bg: #f7af52;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius-xl: 22px;
  --maxw: 1400px;
}

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  background: var(--sand);
  color: var(--brown);
  line-height: 1.6;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(6px);
  background: rgba(255,248,235,0.9);
  border-bottom: 2px solid rgba(14,90,167,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand img {
  height: 85px;
  width: auto;
  object-fit: contain;
  margin-right: 16px;
  display: block;
  transition: transform 0.3s ease;
}


.brand img:hover {
  transform: scale(1.04);   /* elegant hover motion */
}
nav {
  display: flex;
  gap: 40px;
}
nav a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 600;
  transition: 0.3s;
}
nav a:hover {
  color: var(--gold);
}
.contact-btn {
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 700;
  background: var(--gold);
  color: var(--brown);
  text-decoration: none;
  transition: 0.3s;
}
.contact-btn:hover {
  background: #f3d78c;
  transform: scale(1.05);
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
}
.hero-logo-wrapper img {
  max-width: 300px;
  margin-bottom: 20px;
  animation: fadeIn 2s ease forwards;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px,5vw,48px);
  margin: 20px 0 10px;
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px,2vw,20px);
  margin-bottom: 20px;
}
.hero-btn {
  font-family: 'Cinzel', serif;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  position: relative;
  max-height: 450px;
  overflow: hidden;
  margin: 40px 0;
  border-radius: var(--radius-xl);
}
.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230,193,125,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--brown);
  font-family: 'Cinzel', serif;
  font-size: clamp(24px,2.5vw,32px);
  text-align: center;
  padding: 0 20px;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  max-width: 1000px;       /* optional: limit grid width */
  margin-left: auto;
  margin-right: auto;       /* center the whole grid in container */
}

/* Each card styling */
.cards article {
  max-width: 300px;         /* keeps cards from being too wide */
  box-sizing: border-box;
  background: rgba(255, 248, 235, 0.85);
  border-radius: 18px;
  border: 2px solid #19679b;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards article:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.card h3 {
  font-family: 'Cinzel', serif;
  margin: 16px 0 12px;
}

.card p {
  font-family: 'Playfair Display', serif;
  color: var(--brown);
}


/* ===== BEFORE/AFTER ===== */
.ba-wrapper {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden;
}
.ba-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}
.ba-overlay {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: ew-resize;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
  margin-top: 30px;
}
.testimonial {
  background: rgba(248,233,210,0.9);
  padding: 20px;
  border-radius: var(--radius-xl);
  text-align: center;
}
.stars {
  color: #648C8C;
}

/* ===== CONTACT ===== */
.contact-section .contact-frame {
  text-align: center;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: rgba(230,193,125,0.2);
  margin: 50px auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.95);}
  100% { opacity: 1; transform: scale(1);}
}

/* ===== PORTFOLIO TITLE ===== */
.portfolio-frame {
  text-align: center;       /* center everything inside */
  margin: 60px 0 40px 0;    /* spacing above and below */
}

.portfolio-title {
  font-size: 2.5rem;        /* big and eye-catching */
  font-weight: 700;          /* bold for emphasis */
  color: #3C2A21;            /* deep blue color */
  line-height: 1.2;
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
  position: relative;
  display: inline-block;
}

.portfolio-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f7af52; /* accent underline */
  margin: 12px auto 0;        /* centers the underline */
  border-radius: 2px;
}

.portfolio-title span {
  display: block;            /* moves it below the main title */
  font-size: 1.2rem;         /* smaller, secondary text */
  font-weight: 400;
  color: #f7af52;            /* accent color */
  margin-top: 8px;
  font-family: 'Josefin Sans', sans-serif;
}

/* ===== FADE-UP ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: slightly smaller translate for sliders */
.ba-wrapper.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ba-wrapper.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
