:root{
  --container: 1100px;
  --muted: #9b9b9a;
  --accent: #c9b79a;
}
*{box-sizing:border-box}
body{font-family: 'Georgia', 'Times New Roman', serif; margin:0; color:#111}
.container{max-width:var(--container);margin:0 auto;padding:0 24px}

/* Layout normalization */
html, body { max-width: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* Container: keep centered with comfortable max width */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.topbar{background:#fafafa;border-bottom:1px solid #eee}
.topbar .container{display:flex;align-items:center;justify-content:space-between;height:72px;max-width:35.5cm;margin:0 auto;padding:0 24px;position:relative;overflow: visible; /* allow absolute nav to escape */}
.brand{font-weight:700;font-size:22px;display:flex;align-items:center;gap:12px}
.brand .logo{width:48px;height:48px;object-fit:contain}
.brand .brand-name{font-size:22px}
.nav a{margin-left:18px;color:var(--muted);font-size:16px;text-decoration:none}
.nav a.active{color:#000}

/* Nav: neutral text, animated gold underline on hover/focus/active */
.nav a {
  color: #666;                 /* neutral/default color */
  text-decoration: none;
  position: relative;
  padding: 6px 8px;
  transition: color .18s ease;
}

/* animated underline using pseudo-element — gold color */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 60%;
  height: 3px;
  background: #d4af37;         /* gold */
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
  opacity: 0;
}

/* reveal underline on hover/focus and show on active */
.nav a:hover,
.nav a:focus {
  color: #111;                 /* slight darken on hover for contrast */
  outline: none;
}
.nav a:hover::after,
.nav a:focus::after,
.nav a.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* ensure active link remains readable (no strong colored text unless desired) */
.nav a.active {
  color: #111;
}

.hero{height:520px;position:relative;overflow:hidden}
.hero .slide{background-size:cover;background-position:center;height:100%;display:flex;align-items:center;position:absolute;left:0;right:0;top:0;bottom:0;opacity:0;transform:scale(1.02);transition:opacity .6s ease,transform .6s ease}
.hero .slide.active{opacity:1;transform:scale(1)}
.hero .slide::before{content:'';position:absolute;left:0;right:0;top:0;bottom:0;background:linear-gradient(rgba(0,0,0,0.32),rgba(0,0,0,0.32));z-index:0}
.hero-inner{width:100%;text-align:center;color:#fff}
.hero h1{font-size:64px;margin:0;font-weight:700;letter-spacing:1px}
.subtitle{margin-top:12px;color:#e6e6e6;font-size:20px}
.cta{margin-top:26px;background:#111;color:#fff;border:0;padding:12px 22px;border-radius:3px;cursor:pointer}

/* Carousel controls */
.carousel-controls{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;padding:0 18px;z-index:40}
.carousel-controls button{pointer-events:auto;background:rgba(255,255,255,0.85);border:0;width:44px;height:44px;border-radius:6px;font-size:26px;cursor:pointer;color:#111}
.carousel-controls button:focus{outline:3px solid #e6c07a}

@media (max-width:900px){
  .hero{height:340px}
  .hero h1{font-size:32px}
}

.featured{padding:60px 0}
.featured h2{text-align:center;color:#9a9a9a;font-size:40px;margin:0}
.featured .lead{text-align:center;color:#cfcfcf;max-width:700px;margin:14px auto 34px}
.grid{display:flex;gap:20px;margin-top:28px}
.card{flex:1}
.thumb{height:200px;background:#eee;position:relative;background-size:cover;background-position:center}
.thumb::after{content:'';position:absolute;left:0;right:0;bottom:0;height:64px;background:linear-gradient(180deg, rgba(255,255,255,0), rgba(0,0,0,0.55))}

/* proximity hover: allow smooth scaling when cursor approaches a thumb */
.thumb{transition:box-shadow .36s cubic-bezier(.2,.9,.3,1);transform-origin:center center;position:relative;overflow:hidden}
/* proximity state: don't scale the container anymore; animate the image itself */
.thumb.zoomed{box-shadow:0 12px 36px rgba(0,0,0,.16);z-index:2}
.thumb img{transition:transform .36s cubic-bezier(.2,.9,.3,1);transform:translateZ(0);display:block}

/* overlay */
.thumb-overlay{position:absolute;left:0;right:0;bottom:0;top:0;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.thumb .overlay-inner {
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.45));
  width: 100%;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(12px);
  opacity: 0; /* FIX: was 'opacity=0' */
  transition: transform .32s ease, opacity .28s ease;
  pointer-events: none;
}
/* interaction: on hover/focus or when zoomed */
.thumb:hover img,.thumb.zoomed img,.thumb:focus-within img{transform:translateY(-6px) scale(1.04) rotate(-0.6deg)}
.thumb:hover,.thumb.zoomed,.thumb:focus-within{z-index:2}
.thumb:hover .overlay-inner,.thumb.zoomed .overlay-inner,.thumb:focus-within .overlay-inner{transform:translateY(0);opacity:1;pointer-events:auto}

.card h3{margin:12px 0 6px;font-size:18px}
.muted{color:var(--muted);font-size:14px}
.view-portfolio{text-align:center;margin-top:28px}
.ghost{background:transparent;border:1px solid #d6d6d6;padding:10px 16px;border-radius:4px}
.ghost{display:inline-block;text-decoration:none;color:inherit}
.ghost:hover{background:#f6f6f6}
.ghost:focus{outline:3px solid #e6c07a;outline-offset:3px}

.site-footer{background:#0b0b0b;color:#e9e9e9;padding:28px 0 18px;font-size:15px;line-height:1.45;box-sizing:border-box}
.footer-grid{display:grid;grid-template-columns:1fr 220px 1fr;gap:24px;align-items:start;width:100%;max-width:1180px;margin:0 auto;padding:0 18px;box-sizing:border-box}
.footer-brand .footer-logo,.footer-brand .logo{display:block;width:auto;max-width:120px;max-height:64px;height:auto;margin-bottom:10px;object-fit:contain}
.footer-brand h4{margin:0 0 8px;color:#fff;font-weight:700}
.footer-links h4,.site-contact h4{margin:0 0 8px;color:#fff;font-weight:700}
.footer-links .links{list-style:none;padding:0;margin:0;color:var(--muted)}
.footer-links .links li{margin:8px 0}
.footer-links .links a,.site-contact a{color:#dcdcdc;text-decoration:none}
.footer-links .links a:hover,.site-contact a:hover{color:#fff;text-decoration:underline}
.site-footer .copyright{margin-top:16px;text-align:center;color:#9b9b9b;font-size:13px;padding:10px 18px 18px}

/* Prevent footer children from exceeding viewport width */
.site-footer, .footer-grid, .footer-grid *{box-sizing:border-box;max-width:100vw}

@media (max-width:820px){
  .footer-grid{
    grid-template-columns:1fr;
    text-align:center;
    gap:14px;
    padding:12px 16px;
  }

  .footer-brand,.footer-links,.site-contact{
    justify-self:center;
    align-self:start;
  }

  .footer-links .links li{display:inline-block;margin:8px 10px}
  .footer-brand .footer-logo,.footer-brand .logo{max-width:84px;max-height:56px}

  .site-contact .muted{margin:0 auto;max-width:100%;word-break:break-word}
}

/* Extra defensive rule to hide horizontal overflow (helps when zoomed on mobile) */
html, body { max-width: 100%; overflow-x: hidden; }
.no-scroll { width: 100%; left: 0; right: 0; }

@media (max-width:900px){
  .grid{flex-direction:column}
  .hero h1{font-size:42px}
}

/* Mobile menu and back-to-top button */
.menu-toggle{display:none;background:transparent;border:0;font-size:22px;cursor:pointer;padding:6px 10px;border-radius:6px}
.menu-toggle{background:rgba(255,255,255,0.85);color:#111;position: relative;z-index: 220 !important;pointer-events: auto;}
.menu-toggle:hover{background:rgba(255,255,255,1)}
.menu-toggle:focus{outline:3px solid #e6c07a;outline-offset:2px}
.menu-toggle{z-index:60}
.to-top{position:fixed;right:18px;bottom:18px;background:#111;color:#fff;border:0;width:44px;height:44px;border-radius:6px;display:none;align-items:center;justify-content:center;cursor:pointer}

@media (max-width:768px){
  .menu-toggle{display:block}
  .nav{position:absolute;top:100%;right:0;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,0.08);flex-direction:column;padding:12px;display:none;z-index:70}
  .nav a{margin:8px 0}
  .nav{transform-origin:top right;transition:transform .22s ease,opacity .22s ease;opacity:0;transform:scaleY(0)}
  body.nav-open .nav{display:flex;opacity:1;transform:scaleY(1);z-index:70}
  /* debug border to confirm nav is visible - remove when satisfied */
  body.nav-open .nav{border:1px solid rgba(255,0,0,0.25)}
  .brand .logo{width:40px;height:40px}
}

/* Fix: ensure mobile menu toggle and dropdown remain visible & clickable */
.topbar .container { overflow: visible; /* allow absolute nav to escape */ }

/* ensure the toggle sits above other elements */
.menu-toggle {
  display: none; /* keep default (media query shows on mobile) */
  position: relative;
  z-index: 220 !important;
  pointer-events: auto;
}

/* mobile: ensure toggle visible and nav above page */
@media (max-width:768px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 200; /* above most elements */
    display: none;
    transform-origin: top right;
  }
  /* when open force visible / interactive (important to override other rules) */
  body.nav-open .nav {
    display: flex !important;
    opacity: 1 !important;
    transform: scaleY(1) !important;
    pointer-events: auto !important;
    z-index: 200 !important;
  }
}

/* Defensive: ensure nothing unintended covers the toggle */
.menu-toggle,
.nav,
.topbar { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* Portfolio styles */
.page-title{font-size:56px;text-align:center;margin-top:30px}
.portfolio .lead{max-width:800px;margin:8px auto 24px;color:#bfbfbf}
.filters{display:flex;gap:12px;justify-content:center;margin:20px 0 30px}
.filter{border:1px solid #ddd;background:#fff;padding:8px 14px;border-radius:8px;cursor:pointer}
.filter.active{background:#000;color:#fff;border-color:#000}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.photo{background:#ddd;height:200px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.photo.hidden{display:none}

@media (max-width:1100px){
  .gallery{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:800px){
  .gallery{grid-template-columns:repeat(2,1fr)}
  .page-title{font-size:38px}
}

/* Services page styles */
.services-hero{padding:48px 0 24px;text-align:center}
.services-hero h1{font-size:48px;margin:6px 0}
.service-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:28px;margin:36px auto;max-width:var(--container);justify-content:center}
.service-card{background:#fff;padding:18px;border:1px solid #eee;border-radius:6px;text-align:left;display:flex;flex-direction:column;gap:12px}
.service-card img{height:160px;object-fit:cover;border-radius:4px}
.service-card .price{color: rgb(184,135,10); font-weight:700}

/* Service card hover / tilt effect */
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* gentle lift on hover (for non-tilt fallback / touch) */
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* inner image pop when card tilts */
.service-card img {
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  transform-origin: center center;
  border-radius: 6px;
}

/* slight scale and lift for the whole card on hover */
.service-card {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Lightbox open/close micro-animations */
@keyframes zoomIn {
  from { transform: scale(.98); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes zoomOut {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(.98); opacity: 0; }
}
.lb-image.animate-in { animation: zoomIn .28s ease forwards; }
.lb-image.animate-out { animation: zoomOut .22s ease forwards; }

/* Optional gentle pulse (use .zoom-pulse on elements you want to subtly breathe) */
@keyframes zoomPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.zoom-pulse { animation: zoomPulse 6s ease-in-out infinite; }

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .photo img, .thumb img, .service-card, .lb-image, .zoom-pulse { transition: none !important; animation: none !important; transform: none !important; }
}

.why{padding:56px 0;text-align:center}
/* ensure .why used together with .container is constrained and centered */
.why.container{max-width:var(--container);margin:36px auto;text-align:center}

.gallery.container{max-width:var(--container);margin:36px auto}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:36px auto;justify-content:center}
.gallery .photo{height:160px}

/* reveal animation */
.reveal{opacity:0;transform:translateY(14px) scale(1.06);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1);will-change:transform,opacity}
.reveal.visible{opacity:1;transform:translateY(0) scale(1)}

@media (max-width:900px){
  .service-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
}

.why{padding:48px 0 24px;text-align:center;max-width:var(--container);margin:0 auto}
.why h2{font-size:40px;margin-bottom:12px;color:var(--text-dark,#222)}
.why .muted{color:var(--muted,#555);font-size:18px;line-height:1.6;max-width:800px;margin:0 auto}

.gallery{padding:48px 0}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin:0 auto;max-width:var(--container);justify-content:center}
.photo{overflow:hidden;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08);transition:transform .3s ease,box-shadow .3s ease}
.photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.photo:hover img{transform:scale(1.08)}
.photo:hover{transform:translateY(-4px);box-shadow:0 4px 16px rgba(0,0,0,.12)}

/* featured thumbnails */
.thumb.wedding{background-image: url('images/1.jpg')}
.thumb.portrait{background-image: url('images/2.jpg')}
.thumb.nature{background-image: url('images/3.jpg')}

/* ensure thumb boxes keep a consistent aspect ratio and images are fully visible */
.thumb {
  /* pick the ratio you want, e.g. 4/3 or 16/9 */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  position: relative;
  background: #f6f6f6;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* show full image without cropping */
  object-position: center;
  display: block;
}

@media (max-width:768px) {
  .thumb img { object-fit: contain; height:100%; }
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.85);
  z-index:120;
  padding:12px;
  box-sizing:border-box;
  -webkit-overflow-scrolling: touch;
}
.lightbox[aria-hidden="false"]{display:flex}
.lb-inner{
  max-width:100%;
  max-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:8px;
  box-sizing:border-box;
}
.lb-image{
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 120px);
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:6px;
  box-shadow:0 12px 30px rgba(0,0,0,0.6);
  transition:transform .28s ease,opacity .28s ease;
  transform-origin:center;
  opacity:0;
  transform:scale(.98);
  touch-action:manipulation;
}
.lightbox[aria-hidden="false"] .lb-image{ opacity:1; transform:scale(1); }

/* small class applied to body while lightbox open to prevent layout shift on mobile */
.no-scroll{
  position:fixed;
  left:0;
  right:0;
  overflow:hidden;
  /* top is set dynamically by JS to preserve scroll position */
}

/* keep the caption readable on small viewports */
.lb-caption{ color:#fff; margin-top:10px; font-size:14px; text-align:center; max-width:90ch; }

.lb-close,.lb-prev,.lb-next{
  position:fixed;border:0;background:rgba(0,0,0,0.45);color:#fff;width:44px;height:44px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.lb-close{top:18px;right:18px;z-index:130}
.lb-prev{left:18px;top:50%;transform:translateY(-50%);z-index:130}
.lb-next{right:18px;top:50%;transform:translateY(-50%);z-index:130}
.lb-close:focus,.lb-prev:focus,.lb-next:focus{outline:2px solid rgba(255,215,0,0.9)}
@media (max-width:720px){
  .lb-prev,.lb-next{display:none}
  .lb-inner{padding:0 6px}
}

@media (max-width:768px){
  /* ensure container is centered */
  .container { margin-left: auto; margin-right: auto; padding-left: 18px; padding-right: 18px; }

  /* make featured grid single-column and center cards */
  .featured .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center; /* center each card horizontally */
    align-items: start;
  }

  /* limit card width so centered cards don't stretch full width */
  .featured .card {
    width: 100%;
    max-width: 720px; /* tweak as needed */
    box-sizing: border-box;
  }

  /* make thumbnail fill card but keep aspect and avoid cropping issues */
  .featured .card .thumb {
    width: 100%;
    aspect-ratio: 4 / 3; /* or use height value if you don't want aspect-ratio */
    overflow: hidden;
    border-radius: 6px;
  }

  .featured .card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or 'contain' if you prefer no cropping */
    object-position: center;
    display: block;
  }
}

/* Fix: prevent horizontal overflow when zooming on mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden; /* hide accidental horizontal overflow caused by zoom/transforms */
}

/* Ensure body lock doesn't expand width */
.no-scroll {
  width: 100%;
  left: 0;
  right: 0;
}

/* Ensure large containers & hero slides never exceed viewport width */
.container, .hero, .hero .slide, .gallery, .featured .grid {
  box-sizing: border-box;
  max-width: 100vw;
}

/* Avoid using physical units that can expand layout on small screens:
   replace the .topbar container height set in cm with a responsive px/rem value */
.topbar .container {
  height: 72px; /* was 2.9cm — use pixels/rem for consistent behavior on mobile */
}

/* Featured grid: consistent columns and centering */
.featured .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
  justify-items: center; /* center cards inside each grid cell */
  width: 100%;
  max-width: 100%;
}

/* Card: prevent floats and make card fill its cell cleanly */
.featured .card {
  width: 100%;
  max-width: 420px; /* control visual width so layout stays even */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  float: none;
}

/* Thumb: ensure image fits and cannot push layout */
.featured .card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  position: relative;
  background: #f6f6f6;
}

/* Make sure images don't overflow and always sized to container */
.featured .card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* or 'contain' if you prefer no cropping */
  object-position: center;
  display: block;
}

/* Headings and caption alignment inside card */
.featured .card h3,
.featured .card .muted {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  text-align: left;
}

/* Defensive: prevent accidental horizontal overflow */
.featured,
.featured * {
  max-width: 100vw;
}

/* Desktop tweak: center entire featured section horizontally (if container narrower) */
@media (min-width: 1024px) {
  .featured .grid { justify-items: center; }
}

/* ----- Layout & Featured Work fixes ----- */
/* Override any earlier .grid:flex conflicts for the featured section */
.featured .grid {
  display: grid !important;             /* ensure grid layout */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  justify-content: center;
  align-items: start;
  margin-top: 28px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Keep cards visually centered in their cells */
.featured .card {
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* Make Featured Work headings and copy darker for better contrast */
.featured h2 {
  color: #0b0b0b; /* stronger black for the main heading */
  font-weight: 700;
}

.featured .lead {
  color: #5a5a5a; /* darker muted lead text */
}

.featured .card h3 {
  color: #111111; /* card titles a bit darker */
  font-weight: 600;
}

.featured .card .muted,
.featured .card p.muted {
  color: #6a6a6a; /* body/caption text darker but still softer than headings */
}

/* If you show overlay titles on thumbnails and want them darker (adjust only if readable) */
.thumb .thumb-title {
  color: rgba(0,0,0,0.88);
}

/* Optional: slightly increase contrast on hover */
.featured .card:hover h3,
.featured .card:hover .muted {
  color: #0a0a0a;
}

/* Footer improvements: bullets, alignment & logo ----- */
.footer-grid { gap: 20px; padding: 0 18px; }

/* footer links vertical by default on desktop, centered on mobile */
.footer-links .links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links .links li { margin: 0; }
.footer-links .links a { display:inline-block; padding: 2px 0; }

/* Reduce spacing between footer menu items */
.footer-links .links {
  display: flex;
  flex-direction: column;
  gap: 2px;             /* smaller vertical gap */
  padding-left: 12px;   /* keep a small indent for bullets/visual */
  margin: 0;
}

.footer-links .links li {
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

/* mobile: make links inline and centered */
@media (max-width:820px) {
  .footer-links .links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
  }
  .footer-links .links li { display: inline-block; }
}

/* ensure link padding is not large */
.footer-links .links a {
  padding: 4px 6px;
  display: inline-block;
}

/* constrain logo further so footer doesn't collapse */
.footer-brand .footer-logo,
.footer-brand .logo { max-width: 96px; max-height: 56px; width: auto; height: auto; }

/* ensure contact wraps and is always visible on small screens */
.site-contact .muted { word-break: break-word; white-space: normal; }

/* Defensive: prevent accidental horizontal overflow */
html, body, .container, .featured, .footer-grid { max-width: 100vw; box-sizing: border-box; overflow-x: hidden; }

/* optional: tighten spacing on very wide screens */
@media (min-width:1300px){
  .container { max-width: 1200px; }
  .featured .card { max-width: 480px; }
}

/* Footer list / bullet alignment fixes */
.footer-links .links {
  /* show bullets aligned with text on desktop */
  list-style: disc;
  list-style-position: inside;
  padding-left: 12px; /* small indentation so bullets sit next to text */
  margin: 0;
  color: var(--muted);
}

/* tidy list items */
.footer-links .links li {
  margin: 6px 0;
  padding-left: 0;
  line-height: 1.4;
}

/* When showing footer links inline on small screens, remove bullets and use compact spacing */
@media (max-width:820px) {
  .footer-links .links {
    list-style: none !important;
    list-style-position: outside !important;
    padding-left: 0 !important;
    margin: 8px 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px 10px !important; /* row/column gap */
    justify-content: center !important;
    align-items: center !important;
  }

  .footer-links .links li {
    display: inline-block !important;
    margin: 0 6px !important;
    padding: 0 !important;
  }

  .footer-links .links a {
    display: inline-block;
    padding: 6px 8px;
    line-height: 1.2;
    font-size: 14px;
  }
}

/* Remove underlines and style CTA/ghost links consistently */
a.cta, a.ghost, .nav a, .footer-links .links a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

a.cta, a.ghost {
  padding: 10px 16px;
  border-radius: 6px;
  transition: background-color .18s ease, color .18s ease;
}

a.cta { background:#111; color:#fff; }
a.cta:hover { background:#000; text-decoration:none; }

a.ghost {
  background:transparent;
  border:1px solid rgba(0,0,0,0.06);
  color: #111;
}
a.ghost:hover { background: rgba(0,0,0,0.04); text-decoration:none; }

/* Ensure anchors keep no-underline on hover/active/focus */
a.cta:hover, a.cta:focus, a.ghost:hover, a.ghost:focus, .nav a:hover, .nav a:focus {
  text-decoration: none;
  outline: none;
}

/* Contact page layout */
.hero-small { padding: 44px 0 24px; text-align:center; background: #fff; }
.hero-title { font-family: 'Georgia', serif; font-size:42px; margin:0 0 6px; color:#111; }
.hero-sub { color:#777; margin:0 0 18px; }

.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items:start; margin: 28px auto; max-width:1180px; padding: 0 18px; box-sizing:border-box; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.card { background:#fff; border-radius:8px; padding:18px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.contact-form .form-row { display:flex; gap:12px; }
.contact-form label { display:block; margin:10px 0; font-size:14px; color:#333; }
.contact-form input, .contact-form textarea { width:100%; padding:10px 12px; border:1px solid #e6e6e6; border-radius:6px; font-size:14px; }
.contact-form .cta { margin-top:12px; background:#111; color:#fff; border:0; padding:10px 14px; border-radius:6px; cursor:pointer; }

/* footer adjustments kept responsive */
.footer-grid { display:grid; grid-template-columns: 1fr 220px 1fr; gap:20px; align-items:start; padding: 18px; max-width:1180px; margin:0 auto; }
@media (max-width:820px) { .footer-grid { grid-template-columns: 1fr; text-align:center; } }

/* NAV: hover/active color and smooth transition */
.nav a {
  color: #666;
  text-decoration: none;
  padding: 8px 10px;
  transition: color .18s ease, transform .12s ease;
  border-radius:4px;
}
.nav a:hover, .nav a:focus {
  color: #111;
  transform: translateY(-2px);
  text-decoration: none;
}
.nav a.active {
  color: #e03e2d; /* accent color for active page */
  background: rgba(224,62,45,0.06);
  box-shadow: inset 0 -2px 0 rgba(224,62,45,0.12);
}

/* Improve click feedback on mobile (tap) */
.nav a:active { transform: translateY(0); opacity:0.95; transition: none; }

/* small-screen nav fallback: spacing */
@media (max-width:768px) {
  .nav { display:flex; gap:8px; justify-content:flex-end; align-items:center; }
  .nav a { padding:8px 10px; font-size:14px; }
}

/* ensure no underline */
a { text-decoration:none; }

/* Smooth hover zoom (images / thumbnails) */
.photo img,
.thumb img,
.service-card img {
  transition: transform .36s cubic-bezier(.2,.9,.3,1), filter .28s ease, opacity .28s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Hover/touch-fallback: zoom in */
.photo:hover img,
.thumb:hover img,
.service-card:hover img,
.photo:focus-within img,
.thumb:focus-within img {
  transform: scale(1.06);
}

/* Contact page enhancements: social buttons, contact card, WhatsApp FAB */

.contact-card .info-list { list-style: none; padding: 0; margin: 8px 0 12px; color: #444; }
.contact-card .info-list li { margin: 10px 0; }

.contact-cta { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.contact-cta .cta { padding:8px 12px; border-radius:6px; text-decoration:none; display:inline-block; }
.contact-cta .cta.ghost { background:transparent; border:1px solid rgba(0,0,0,0.06); color:#111; }
.contact-cta .cta:not(.ghost) { background:#111; color:#fff; }

/* Social card */
.social-card .social-grid { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.social-btn {
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:8px;
  background: linear-gradient(180deg,#fff,#fbfbfb);
  border:1px solid rgba(0,0,0,0.05);
  color:#111;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.social-btn svg { color:#e07b3d; flex:0 0 28px; }
.social-meta { text-align:left; }
.social-name { font-weight:600; font-size:14px; }
.social-handle { font-size:13px; color:#6b6b6b; margin-top:2px; }

/* brand-specific accents */
.social-btn.instagram:hover { box-shadow: 0 12px 30px rgba(225,82,173,0.08); transform: translateY(-4px); }
.social-btn.facebook:hover  { box-shadow: 0 12px 30px rgba(59,89,152,0.06); transform: translateY(-4px); }

/* WhatsApp floating action button */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg,#25D366,#1DA851);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.18);
  text-decoration:none;
  z-index: 999;
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-fab:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(37,211,102,0.22); }

/* ensure whatsapp FAB icon is white and footer whatsapp uses brand green */
.whatsapp-fab svg { width:48px; height:48px; display:block; }
.footer-social .social-link.whatsapp svg { width:32px; height:32px; display:block; }

/* responsive tweaks */
@media (max-width:920px) {
  .social-grid { flex-direction:row; gap:10px; flex-wrap:wrap; }
  .social-btn { flex:1 1 calc(50% - 10px); }
}
@media (max-width:520px) {
  .whatsapp-fab { right:12px; bottom:12px; width:48px; height:48px; }
}

/* small utility */
.small { font-size:13px; color:#777; }

/* Header brand / logo */
.brand-link { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand .logo { width:56px; height:56px; flex:0 0 56px; display:block; border-radius:10px; background:transparent; }
.brand-name { font-size:20px; font-weight:700; color:#111; }

/* Slight hover for whole brand (subtle) */
.brand-link:hover .brand-name { transform: translateY(-2px); transition: transform .18s ease; }

/* Social button visual upgrade */
.social-btn {
  padding:12px;
  border-radius:10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
  align-items:center;
}

/* Instagram: warm gradient, white icon */
.social-btn.instagram {
  background: linear-gradient(135deg,#f58529 0%,#dd2a7b 50%,#8134af 100%);
  color: #fff;
}
.social-btn.instagram svg { color: #fff; filter: drop-shadow(0 6px 18px rgba(221,42,123,0.18)); }

/* Facebook: darker blue, white icon */
.social-btn.facebook {
  background: linear-gradient(135deg,#4c69ba 0%,#3b5998 100%);
  color: #fff;
}
.social-btn.facebook svg { color: #fff; filter: drop-shadow(0 6px 18px rgba(59,89,152,0.14)); }

/* meta text on colored buttons: use semi-opaque white for handle */
.social-btn .social-name { color: #fff; font-weight:700; }
.social-btn .social-handle { color: rgba(255,255,255,0.85); font-size:13px; }

/* Hover lift */
.social-btn:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0,0,0,0.16); }

/* Make sure svg icons scale and sit left */
.social-btn svg { width:26px; height:26px; flex:0 0 26px; }

/* Ensure contrast for small screens */
@media (max-width:520px) {
  .social-btn { padding:10px; border-radius:8px; }
  .social-btn .social-name { font-size:13px; }
  .social-btn .social-handle { font-size:12px; }
}

/* Ensure hero overlay doesn't block CTA clicks and CTAs sit above */
.hero .overlay { pointer-events: none; z-index: 1; }
.hero .hero-inner,
.hero .hero-inner .cta,
a.cta, a.ghost {
  position: relative;
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* ensure carousel controls remain clickable */
.carousel-controls,
.carousel-controls button { z-index: 210; pointer-events: auto; }

/* Footer inline social icons (normal colored logos */
.footer-social { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: transform .16s ease, box-shadow .16s ease;
  background: transparent;
  box-shadow: none;
}
.footer-social .social-link svg { width: 22px; height: 22px; flex: 0 0 22px; display: block; }
.footer-social .social-link:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

/* small-screen adjustments */
@media (max-width: 520px) {
  .footer-social { gap: 10px; }
  .footer-social .social-link { padding: 6px; font-size: 14px; }
  .footer-social .social-link svg { width: 20px; height: 20px; }
}

/* Site credits */
.site-credits {
  text-align: center;
  padding: 12px 0 6px;
  font-size: 13px;
  color: #9b9b9b;
}
.site-credits a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #d4af37;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.site-credits a:hover,
.site-credits a:focus {
  color: #fff;
  text-decoration-color: #ffd700;
  outline: none;
}
@media (max-width:820px) {
  .site-credits { font-size: 12px; padding: 10px 0; }
}

/* site copyright (appears in footer on all pages) */
.site-copyright {
  text-align: center;
  font-size: 13px;
  color: #9b9b9b;
  padding: 10px 0 18px;
  letter-spacing: 0.2px;
}
@media (min-width: 900px) {
  .site-copyright { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-copyright { transition: none !important; }
}

/* FINAL override: ensure .nav is hidden on mobile and visible on desktop,
   and the toggle only appears on mobile. Put this at the end of the file. */
.menu-toggle { display: none !important; }

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  /* hide nav by default on mobile (force with !important to override earlier rules) */
  .nav {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform-origin: top right !important;
    transform: translateY(-6px) scale(.99) !important;
  }
  /* show only when JS adds body.nav-open */
  body.nav-open .nav {
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    z-index: 10050 !important;
  }
}

@media (min-width: 769px) {
  /* Desktop: ensure nav is visible and the toggle stays hidden */
  .menu-toggle { display: none !important; }
  .nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* end of override */

/* Mobile nav fix - MUST be at end of file to override other rules */
@media (max-width: 768px) {
  .nav {
    display: none !important; /* force hide by default on mobile */
    position: absolute;
    top: 100%;
    right: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    padding: 12px;
    border-radius: 8px;
    z-index: 1000;
  }
  
  /* Only show when toggled */
  body.nav-open .nav {
    display: flex !important;
    flex-direction: column;
  }
  
  /* Ensure toggle is visible */
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Footer social icons styling */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #dcdcdc;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color .18s ease, transform .18s ease;
}

.footer-social .social-link svg {
  width: 20px;
  height: 20px;
}

/* Brand-specific colors */
.footer-social .social-link.instagram:hover {
  color: #E1306C; /* Instagram pink */
}

.footer-social .social-link.facebook:hover {
  color: #4267B2; /* Facebook blue */
}

.footer-social .social-link.whatsapp:hover {
  color: #25D366; /* WhatsApp green */
}

.footer-social .social-link:hover {
  transform: translateY(-3px);
}