/* ===========================================================
   Ankara Klipin — shared styles (premium stone / bronze)
   =========================================================== */
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; color: #2c2a26; background: #f6f1e9; overflow-x: hidden; }
h1,h2,h3,h4,.font-display { font-family: 'Marcellus', serif; }
::selection { background: #a87334; color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #ece4d6; }
::-webkit-scrollbar-thumb { background: #a87334; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #8a5d28; }

/* ---------- Glass on dark ---------- */
.glass-dark {
  background: rgba(38,39,43,0.42);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.14);
}
.glass-cream {
  background: rgba(246,241,233,0.72);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(168,115,52,0.18);
}

/* ---------- Placeholder imagery ---------- */
.ph { position: relative; overflow: hidden; }
/* geometric laser-cut panel feel */
.ph.panel::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.10) 0deg 6deg, transparent 6deg 18deg),
    repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 22px);
  mix-blend-mode: overlay;
}
.ph.lines::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(125deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(35deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 40px);
  mix-blend-mode: overlay;
}
.ph-label {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: rgba(38,39,43,.45);
  border: 1px solid rgba(255,255,255,.25);
  padding: 4px 9px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.tone-1 { background: linear-gradient(155deg, #f3ead9 0%, #d8c5a3 45%, #a87334 100%); }
.tone-2 { background: linear-gradient(155deg, #e9ddc6 0%, #8a6f4a 50%, #34363c 100%); }
.tone-3 { background: linear-gradient(155deg, #d7cab1 0%, #6b6358 50%, #26272b 100%); }
.tone-4 { background: linear-gradient(155deg, #cdbf a6 0%, #a87334 45%, #5c3f1c 100%); }
.tone-4 { background: linear-gradient(155deg, #cdbfa6 0%, #a87334 45%, #5c3f1c 100%); }
.tone-5 { background: linear-gradient(155deg, #f6f1e9 0%, #c79a5e 50%, #8a5d28 100%); }
.tone-dark { background: linear-gradient(155deg, #3a3b40 0%, #26272b 60%, #1c1d20 100%); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
.reveal-d4 { transition-delay: .36s; }

/* ---------- Floating + WhatsApp ---------- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-pulse { animation: pulseRing 2.2s infinite; }

/* ---------- Mega menu ---------- */
.has-mega .mega {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  z-index: 120;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-panel {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 142px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a87334 rgba(168,115,52,.12);
}
.mega-panel::-webkit-scrollbar { width: 8px; }
.mega-panel::-webkit-scrollbar-track { background: rgba(168,115,52,.12); border-radius: 999px; }
.mega-panel::-webkit-scrollbar-thumb { background: #a87334; border-radius: 999px; }
.mega-services { width: min(980px, calc(100vw - 32px)); }
.mega-areas { width: min(760px, calc(100vw - 32px)); }
.mega-about { width: min(260px, calc(100vw - 32px)); }
.mega-services-panel { padding: 18px; }
.mega-service-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(250px, 1fr) minmax(220px, .9fr);
  gap: 18px;
}
.mega-title {
  margin: 0 0 8px;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a87334;
  font-weight: 700;
}
.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.mega-link:hover { background: rgba(168,115,52,.10); }
.mega-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(168,115,52,.12);
  color: #a87334;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: 0 0 auto;
}
.mega-text {
  color: #2c2a26;
  font-size: 13.5px;
  line-height: 1.2;
  transition: color .2s ease;
}
.mega-link:hover .mega-text { color: #a87334; }
.mega-sep {
  height: 1px;
  margin: 10px 0 12px;
  background: rgba(168,115,52,.18);
}
.mega-media {
  display: grid;
  align-content: start;
  gap: 10px;
}
.mega-visual {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(168,115,52,.14);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.mega-visual:hover {
  transform: translateY(-2px);
  border-color: rgba(168,115,52,.35);
  background: rgba(255,255,255,.68);
}
.mega-visual-img {
  width: 82px;
  height: 66px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}
.mega-visual-copy strong {
  display: block;
  color: #2c2a26;
  font-size: 13.5px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.mega-visual-copy small {
  display: block;
  color: rgba(44,42,38,.66);
  font-size: 12px;
  line-height: 1.25;
}
.mega-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #a87334;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.mega-all:hover { background: #8a5d28; transform: translateY(-2px); }

/* ---------- Footer SEO service links ---------- */
.footer-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.footer-seo-title {
  margin-bottom: 14px;
  color: #c79a5e;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-seo-list {
  display: grid;
  gap: 9px;
}
.footer-seo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  line-height: 1.25;
  transition: color .2s ease, transform .2s ease;
}
.footer-seo-link:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-seo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(199,154,94,.14);
  color: #c79a5e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: 0 0 auto;
}

/* ---------- Local SEO generated pages ---------- */
.seo-local-page main { overflow: hidden; }
.seo-local-page .ph {
  background-color: #d8c5a3;
  background-repeat: no-repeat;
}
.seo-local-page article p {
  max-width: 72ch;
}
.seo-local-page article a {
  overflow-wrap: anywhere;
}
.seo-local-page input,
.seo-local-page textarea,
.seo-local-page button {
  max-width: 100%;
}
.seo-local-page aside .sticky {
  align-self: start;
}

@media (max-width: 1180px) {
  #navLinks { gap: 1rem !important; font-size: 14px !important; }
  .mega-services { width: min(900px, calc(100vw - 24px)); }
  .mega-service-grid { grid-template-columns: minmax(235px, 1fr) minmax(235px, 1fr) minmax(205px, .85fr); gap: 14px; }
  .mega-link { min-height: 34px; padding: 5px 8px; }
  .mega-icon { width: 26px; height: 26px; }
  .mega-text { font-size: 13px; }
}

@media (max-height: 760px) {
  .has-mega .mega { padding-top: .55rem !important; }
  .mega-panel { max-height: calc(100vh - 108px); }
  .mega-services-panel { padding: 14px; }
  .mega-title { margin-bottom: 6px; font-size: 10.5px; }
  .mega-link { min-height: 31px; padding-top: 4px; padding-bottom: 4px; }
  .mega-icon { width: 24px; height: 24px; font-size: 11px; }
  .mega-text { font-size: 12.7px; }
  .mega-visual { grid-template-columns: 70px 1fr; min-height: 68px; padding: 7px; }
  .mega-visual-img { width: 70px; height: 54px; }
  .mega-visual-copy strong { font-size: 12.8px; }
  .mega-visual-copy small { font-size: 11.4px; }
}

@media (max-width: 1023px) {
  .footer-seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-local-page aside .sticky { position: static; }
}

@media (max-width: 640px) {
  .footer-seo-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-seo-link { min-height: 34px; font-size: 13.5px; }
  .seo-local-page section { padding-left: 1rem; padding-right: 1rem; }
  .seo-local-page .grid { min-width: 0; }
  .seo-local-page .grid > * { min-width: 0; }
  .seo-local-page .ph-label {
    max-width: calc(100% - 24px);
    white-space: normal;
    line-height: 1.25;
  }
}

/* ---------- Card hover ---------- */
.lift { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.lift:hover { transform: translateY(-9px); box-shadow: 0 30px 60px -22px rgba(38,39,43,.40); }
.lift:hover .zoom { transform: scale(1.10); }
.zoom { transition: transform .8s cubic-bezier(.2,.7,.2,1); }

/* ---------- Hero slider ---------- */
.hero-slide { position:absolute; inset:0; opacity:0; visibility:hidden; transition: opacity 1.2s ease; }
.hero-slide.active { opacity:1; visibility:visible; }
.hero-slide .bg { position:absolute; inset:0; background-size:cover; background-position:center; transform: scale(1.06); }
.hero-slide.active .bg { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.hero-c > * { opacity:0; transform: translateY(26px); }
.hero-slide.active .hero-c > * { animation: heroUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-slide.active .hero-c > *:nth-child(1){ animation-delay:.3s; }
.hero-slide.active .hero-c > *:nth-child(2){ animation-delay:.46s; }
.hero-slide.active .hero-c > *:nth-child(3){ animation-delay:.62s; }
.hero-slide.active .hero-c > *:nth-child(4){ animation-delay:.78s; }
@keyframes heroUp { to { opacity:1; transform:none; } }
.dot { width: 11px; height: 11px; border-radius:999px; background: rgba(255,255,255,.4); transition: all .35s; cursor:pointer; }
.dot.active { width: 36px; background: #a87334; }

/* ---------- Generic hero-up for inner pages ---------- */
.hero-up { opacity: 0; transform: translateY(24px); animation: heroUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-up.d1 { animation-delay:.12s; } .hero-up.d2 { animation-delay:.24s; } .hero-up.d3 { animation-delay:.36s; }

/* ---------- Accordion ---------- */
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.acc-item.open .acc-body { max-height: 360px; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-icon { transition: transform .35s ease; }

/* ---------- Mobile menu (real CSS, no FOUC) ---------- */
#mobileMenu { transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
#mobileMenu.open { transform: translateX(0); }
#mobileOverlay { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#mobileOverlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Underline grow ---------- */
.ug { position: relative; }
.ug::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:#c79a5e; transition:width .3s ease; }
.ug:hover::after, .ug.active-link::after { width:100%; }
.ug:hover { color: #5c3f1c !important; }
#mainnav.bg-cream .ug.active-link { color: #2c2a26 !important; }

/* ---------- Filter / lightbox ---------- */
.filter-btn { transition: all .3s ease; }
.grid-item { transition: opacity .4s ease, transform .4s ease; }
.grid-item.hide { display: none; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(28,29,32,.88); backdrop-filter: blur(6px); display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition: opacity .3s; }
.lb:target { opacity:1; pointer-events:auto; }
.lb-inner { width:min(90vw,1000px); aspect-ratio:1/1; max-height:86vh; border-radius:1rem; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); background-size:cover; background-position:center; }
.lb-close { position:absolute; top:24px; right:24px; width:48px; height:48px; border-radius:999px; color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; }

/* ---------- Before / After slider ---------- */
.ba { position: relative; overflow: hidden; border-radius: 1rem; cursor: ew-resize; user-select: none; }
.ba .after { position:absolute; inset:0; }
.ba .before { position:absolute; inset:0; width:50%; overflow:hidden; border-right:2px solid #f6f1e9; }
.ba .before .inner { position:absolute; inset:0; }
.ba .handle { position:absolute; top:0; bottom:0; left:50%; width:2px; background:#f6f1e9; z-index:5; transform: translateX(-1px); }
.ba .handle::after { content:"\f337"; font-family:"Font Awesome 6 Free"; font-weight:900; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:42px; height:42px; background:#a87334; color:#fff; border-radius:999px; display:flex; align-items:center; justify-content:center; font-size:14px; box-shadow:0 6px 18px rgba(0,0,0,.3); }
.ba-tag { position:absolute; top:14px; z-index:6; font-size:11px; letter-spacing:.12em; text-transform:uppercase; background:rgba(38,39,43,.6); color:#fff; padding:4px 10px; border-radius:999px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1 !important; transform:none !important; }
  .hero-up, .hero-c > * { opacity:1 !important; transform:none !important; animation:none !important; }
  .hero-slide.active .bg { animation: none; }
}

@media (max-width: 767px) {
  body { font-size: 15.5px; }
  img, video, canvas, iframe { max-width: 100%; height: auto; }
  #mainnav .h-\[78px\] { height: 70px; }
  #logoName { font-size: 17px; line-height: 1; }
  #logoSub { max-width: 190px; font-size: 8px; letter-spacing: .16em; white-space: normal; line-height: 1.25; }
  #mobileMenu { width: min(88vw, 360px); }
  .hero-slide .bg { background-position: center; }
  .hero-c { padding-top: 3rem; padding-bottom: 4.75rem; }
  section[id="top"] { min-height: 620px; }
  .lb-inner { width: 92vw; max-height: 74vh; border-radius: .75rem; }
  .lb-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .ph-label { max-width: calc(100% - 28px); white-space: normal; line-height: 1.25; }
  .wa-pulse { width: 56px !important; height: 56px !important; }
  form input, form select, form textarea { font-size: 16px; }
}

@media (max-width: 480px) {
  .grid { min-width: 0; }
  .grid > * { min-width: 0; }
  .auto-rows-\[180px\] { grid-auto-rows: 140px; }
  a[class*="px-7"], a[class*="px-8"], button[class*="px-6"] { padding-left: 1.1rem; padding-right: 1.1rem; }
  .rounded-3xl { border-radius: 1rem; }
}
