/* Modern overrides: fresher, sexy, mobile-first look without changing markup */

:root {
  --bg: #0c0c0f;
  --card-bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #e94e77; /* playful rose */
  --accent-2: #9b59b6; /* velvet violet */
  --accent-3: #f39c12; /* warm gold */
  --ring: rgba(233, 78, 119, 0.35);
  --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Background polish */
body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(12,12,15,0.6), rgba(12,12,15,0.6)), url('../img/bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* Elevate main card */
.wrapper {
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: min(1100px, 92%);
  margin: 36px auto;
}

/* Brand styling */
.brand { 
  display: block !important; 
  font-weight: 600;
}
.brand, .navbar-default .navbar-brand {
  color: var(--ink);
  letter-spacing: 0.5px;
}
.brand .title, .navbar-default .navbar-brand .title {
  color: var(--muted);
}

/* Glassy sticky nav */
.navbar-default {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.6);
  margin-top: 10px;
}
.navbar-default .navbar-nav>li>a {
  border: none;
  color: #3f3f3f;
  padding: 14px 18px;
}
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover {
  color: var(--accent);
  background: transparent;
}

/* Sexy buttons */
.btn {
  border-radius: 999px !important;
  padding: 12px 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 16px rgba(233,78,119,0.2);
}
.btn:focus { box-shadow: 0 0 0 4px var(--ring); outline: none; }
.btn-success, .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn-warning, .btn-default {
  background: linear-gradient(135deg, #2b2b2f, #47474f);
  color: #fff;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Headlines */
.heading-inner, h1 {
  color: var(--ink);
  font-weight: 600;
}
/* Make page titles (About, Etiquette, etc.) larger and responsive */
/* Use higher specificity to override legacy h3.heading-inner in style.css */
h3.heading-inner,
.heading-inner {
  /* ~30% larger than previous */
  font-size: clamp(3rem, 3vw + 1.2rem, 4.2rem) !important;
  line-height: 1.08;
}
h2, h3, h4, h5, p { color: #444; }

/* Age-gate full-height center */
.age-gate {
  min-height: 80vh;
  display: grid;
  align-content: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.age-gate h3.heading-inner { font-size: 2rem; }
.age-gate h2 { font-size: 1.1rem; color: #555; padding: 0 1rem; margin-top: 10px; }
.age-gate .btn { margin: 10px 12px; }

/* Content polish */
.box-services, .box-about, .box-home, .box-contact, .footer {
  border-top: none;
  border-bottom: none;
}

.footer {
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  margin: 30px auto 44px;
  padding: 8px 16px;
}
.footer h5 { color: #555; }
.footer .icon1 { color: var(--accent); }
.footer .icon1:hover { color: var(--accent-2); }

/* Gallery hover refinement */
figure.effect-moses {
  background: linear-gradient(-45deg, var(--accent) 0%, var(--accent-2) 100%);
}
figure.effect-moses:hover img { opacity: 0.7; }

/* Utilities */
img[loading="lazy"] { 
  filter: saturate(1.02);
}

/* Containers inside the card wrapper should not exceed the wrapper width */
.wrapper .container { width: 100% !important; }

/* ---- Gallery improvements ---- */
.portfolio-filter,
.portfolio-items { margin: 0 0 24px 0 !important; padding: 0 !important; }
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio-filter > li { display: inline-block; }
.portfolio-filter > li a.btn { border-radius: 999px; padding: 8px 14px; }

.filter-bar { display: flex; justify-content: center; margin-bottom: 16px; }
.portfolio-items { width: 100% !important; clear: both; margin-left: 0 !important; margin-right: 0 !important; }
.portfolio-items::after { content: ""; display: block; clear: both; }
.portfolio-filter { float: none !important; max-width: 100%; }
.portfolio-filter > li { margin: 0; }
.portfolio-filter > li a.btn { white-space: nowrap; }
.filter-bar { padding: 0; width: 100%; }
.portfolio-item { margin-bottom: 24px; }
.portfolio-item figure { width: 100%; }
.grid figure img { width: 100%; height: auto; }

/* Fix float wrapping below heading block on gallery page */
.margin-collection .container,
.margin-collection .container-fluid,
.filter-bar { clear: both; }

/* Keep 3 columns across desktop viewports */
@media (min-width: 992px) {
  .portfolio-items.grid { margin-left: 0; margin-right: 0; }
  .portfolio-items.grid .portfolio-item {
    width: calc(33.3333% - 1px) !important; /* avoid rounding overflow so 3 always fit */
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Even thumbnail borders and spacing */
.grid figure {
  border: 4px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .wrapper { margin: 20px auto; width: 94%; }
  .navbar-default { margin-top: 0; }
  /* Hide standalone brand to avoid duplication on mobile */
  .brand { display: none !important; }
  /* Show script font brand inside the navbar and center it */
  .navbar-header { position: relative; }
  .navbar-default .navbar-brand {
    float: none;
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Qwigley', Helvetica, Sans-serif;
    font-size: 2.6rem;
    padding: 16px 56px; /* leave room for hamburger */
    margin-top: 0;
    color: var(--ink);
    white-space: nowrap;
  }
  /* Hide phone subtitle in the navbar on mobile; keep it below on desktop only */
  .navbar-default .navbar-brand .title { display: none !important; }
  /* Place hamburger on the right inside the bar */
  .navbar-toggle {
    position: absolute;
    right: 8px;
    top: 10px;
    margin: 0;
  }
}

/* Keep phone number on its own line; name + "- Milf" stays on the first line */
@media (min-width: 768px) {
  .brand { display: block !important; }
  .brand .title { display: block; padding: 10px 0 27px; font-size: 0.32em; letter-spacing: 0.08em; }
}

/* Keep 3 columns on large desktops */
@media (min-width: 1200px) {
  .portfolio-items.grid .portfolio-item { width: calc(33.3333% - 1px) !important; }
}

/* Mobile floating call button */
.call-cta {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 12px 16px;
  border-radius: 9999px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 2000;
  display: none;
}
.call-cta:hover { filter: brightness(1.05); }
.call-cta i { margin-right: 8px; }
@media (max-width: 768px) {
  .call-cta { display: inline-flex; align-items: center; }
}
