/* ==================================================
   GLOBAL THEME VARIABLES (Easy to maintain)
================================================== */
:root {
  --gold: #D4AF37;
  --gold-hover: #E6C85C;

  --black: #0E0E0E;
  --soft-black: #1A1A1A;

  --white: #FFFFFF;
  --soft-white: #F5F5F5;

  --glow-soft: 0 0 10px rgba(212, 175, 55, 0.6);
  --glow-strong: 0 0 20px rgba(230, 200, 92, 0.75);

  --border-gold: rgba(212, 175, 55, 0.35);
}

/* ==================================================
   GENERAL RESET + GLOBAL FONTS
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Playfair Display', serif;
}

body {
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

/* Cinzel for headings/nav/buttons */
h1, h2, h3,
.menu ul li a,
.cn,
.btn {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}

/* Links */
a {
  text-decoration: none;
  color: var(--gold);
  transition: 0.3s ease;
}
a:hover { color: var(--gold-hover); }

/* ==================================================
   BACKGROUND (Consistent on mobile + desktop)
   Uses a fixed pseudo-layer instead of background-attachment: fixed
================================================== */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(14,14,14,0.92), rgba(14,14,14,0.92)),
    url("backgrnd.jpg") center / cover no-repeat;
  transform: translateZ(0);
}

/* ==================================================
   BASE LAYOUT
================================================== */
.main {
  width: 100%;
  min-height: 100vh;
}

.section {
  padding: 60px 50px;
  text-align: center;
}

.section .content {
  max-width: 900px;
  margin: 0 auto;
}

.section h1, .section h2 {
  color: var(--gold);
  text-shadow: 0 0 5px var(--gold-hover);
  margin-bottom: 20px;
}

.section p {
  color: var(--soft-white);
  max-width: 850px;
  margin: 0 auto;
}

/* ==================================================
   NAVBAR
================================================== */
.navbaar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background-color: var(--soft-black);
  box-shadow: 0 0 10px var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 18px;

  /* hide/show animation (mobile JS uses .nav-hidden) */
  transition: transform 0.25s ease;
  will-change: transform;
}
.navbaar.nav-hidden { transform: translateY(-120%); }

.nav-left {
  display: flex;
  align-items: center;
}

.nav-left img.nav-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: var(--glow-soft);
}

/* Menu */
.menu ul {
  display: flex;
  list-style: none;
  gap: 14px;
}

.menu ul li { margin-left: 16px; }

.menu ul li a {
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.3s ease;
  color: var(--white);
}

.menu ul li a:hover,
.menu ul li a.active {
  background-color: var(--gold);
  color: var(--black);
  box-shadow: 0 0 10px var(--gold-hover);
}

/* ==================================================
   SEARCH BAR (Desktop)
================================================== */
.search {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  gap: 0;
}

.search .srch {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px 0 0 10px;
  border: 1px solid var(--border-gold);
  outline: none;
  font-size: 14px;
  background: var(--black);
  color: var(--soft-white);
  width: 170px;
  display: block;
}

.search .btn,
.search .cn {
  height: 40px;
  padding: 0 16px;
  border-radius: 0 10px 10px 0;
  margin: 0;
  min-width: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* ==================================================
   BUTTONS
================================================== */
.cn,
.btn {
  min-height: 44px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  white-space: nowrap;
  overflow: visible;
  width: auto;
  margin-top: 24px;
}

/* .cn primary */
.cn {
  background: var(--gold);
  color: var(--black);
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(230, 200, 92, 0.45); /* softened default glow */
}

.cn:hover {
  background-color: var(--gold-hover);
  box-shadow:
    0 0 8px rgba(212, 175, 55, 0.45),
    0 0 14px rgba(230, 200, 92, 0.35);
}

/* keep text crisp on hover */
.cn:hover,
.cn:hover a {
  color: var(--black);
  text-shadow: none;
}

/* .btn secondary */
.btn {
  background: var(--gold);
  color: var(--black);
  border-radius: 12px;
  box-shadow: var(--glow-soft);
}

.btn:hover {
  background: var(--gold-hover);
  box-shadow: var(--glow-strong);
}

/* Links inside buttons */
.cn a,
.btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* ==================================================
   CARDS (Global)
================================================== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: var(--soft-black);
  padding: 20px;
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 0 10px var(--gold);
  transition: 0.3s ease;
  text-align: center;
}

.card:hover { box-shadow: 0 0 20px var(--gold-hover); }

.card i {
  color: var(--gold);
  margin-bottom: 10px;
}

.card h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Optional glow animation */
.glow-card { animation: glow 2s infinite alternate; }
@keyframes glow {
  from { box-shadow: 0 0 10px var(--gold); }
  to   { box-shadow: 0 0 20px var(--gold-hover); }
}

/* ==================================================
   FOUNDERS (About)
================================================== */
.founders {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.founder {
  background-color: var(--soft-black);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px var(--gold);
  transition: 0.3s ease;
  text-align: center;
  width: 280px;
}

.founder:hover { box-shadow: 0 0 20px var(--gold-hover); }

.founder-img,
.founder img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ==================================================
   TESTIMONIALS
================================================== */
.testimonials {
  margin-top: 30px;
}

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.testimonial-card {
  width: 300px;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--soft-black);
  color: var(--soft-white);
  box-shadow: 0 0 10px var(--gold);
  transition: 0.3s ease;
  text-align: center;
  overflow-wrap: break-word;
}

.testimonial-card:hover { box-shadow: 0 0 20px var(--gold-hover); }

.testimonial-card span {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
}

/* ==================================================
   SOCIAL ICONS
================================================== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.social-icons a {
  color: var(--gold);
  font-size: 24px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: var(--gold-hover);
  text-shadow: 0 0 10px var(--gold);
}

/* ==================================================
   FORMS
================================================== */
form {
  max-width: 720px;
  margin: 0 auto;
}

form input, form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  outline: none;
  background-color: var(--black);
  color: var(--soft-white);
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.35);
  transition: 0.3s ease;
}

form input:focus, form textarea:focus {
  box-shadow: 0 0 10px var(--gold-hover);
  border-color: rgba(230, 200, 92, 0.6);
}

/* ==================================================
   MAP (Contact page)
================================================== */
.map {
  max-width: 950px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(212,175,55,0.35);
}

/* ==================================================
   PAGE-SPECIFIC FIXES
================================================== */
/* HOME hero centered */
.home .hero-section .content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* APPOINTMENTS: center google calendar button */
.appointments .book-now,
.appointments a.book-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SERVICES: equal-height cards + button aligned bottom */
.services .cards { align-items: stretch; }

.services .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services .card p { margin-bottom: 10px; }

.services .card .cn,
.services .card a.cn,
.services .card button.cn {
  margin-top: auto;
  align-self: center;
}

/* ==================================================
   FOOTER
================================================== */
footer {
  text-align: center;
  padding: 20px;
  background-color: var(--soft-black);
  box-shadow: 0 -5px 10px var(--gold);
  color: var(--soft-white);
  margin-top: 50px;
}

/* ==================================================
   RESPONSIVE: TABLET (<= 1024px)
================================================== */
@media screen and (max-width: 1024px) {
  .navbaar {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    text-align: center;
  }

  .menu ul {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .menu ul li { margin-left: 0; }

  .search {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .search .srch { width: 220px; }

  .cards, .founders {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .section { padding: 55px 20px; }

  .testimonial-card {
    width: 92%;
    max-width: 340px;
  }
}

/* ==================================================
   RESPONSIVE: MOBILE (<= 768px) — CSS ONLY, NO HAMBURGER
   - Menu becomes horizontal + wraps
   - Search is hidden on mobile (as you chose)
   - Cards/testimonials centered and sized nicely
================================================== */
@media screen and (max-width: 768px) {

  .section { padding: 28px 14px; }

  /* Slimmer navbar */
  .navbaar {
    padding: 10px 12px;
    gap: 10px;
  }

  .nav-left img.nav-logo {
    width: 52px;
    height: 52px;
  }

  /* Menu: horizontal + wraps */
  .menu ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .menu ul li { margin-left: 0; }

  .menu ul li a {
    font-size: 13px;
    padding: 7px 9px;
  }

  /* Hide search on mobile */
  .search { display: none; }

  /* Hero text scale */
  .hero-section h1 {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .hero-section p { font-size: 0.98rem; }

  /* Services cards: full-width feel */
  .cards {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .card {
    width: 92%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Testimonials: stacked clean */
  .testimonial-cards {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-card {
    width: 92%;
    max-width: 380px;
  }
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
/* =========================
   SERVICES PAGE – CARD LAYOUT (FINAL)
   ========================= */

.main.services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 24px;

  /* This is the key fix */
  justify-content: center;   /* centers the grid when rows aren’t full */
  align-items: stretch;
}

/* Ensure all cards behave the same */
.main.services .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Headings spacing */
.main.services .card h3 {
  margin-bottom: 10px;
}

/* Description text consistency */
.main.services .card p {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Pricing always sits near the bottom */
.main.services .card .price {
  margin-top: auto;
  margin-bottom: 12px;
  font-weight: 600;
  opacity: 0.95;
}

/* CTA buttons aligned across all cards */
.main.services .card .book-now {
  align-self: stretch;
  text-align: center;
}

/* Optional: prevent overly tall cards on large screens */
@media (min-width: 1024px) {
  .main.services .card p:not(.price) {
    max-height: 4.5em; /* ~3 lines */
    overflow: hidden;
  }
}
