/* UGW Luxury – static rebuild of ugwluxury.com
   Colours, type and layout follow the original theme settings:
   lime #cbd506 accent, Raleway throughout, a 960px white box on a
   black-and-white photo background, logo and menu stacked and centred. */

:root {
  --lime: #cbd506;
  --lime-hover: #bec800;
  --gold: #b89433;          /* the original link hover colour */
  --ink: #151818;           /* headings */
  --menu: #1a1a1a;
  --text: #626262;
  --muted: #9e9e9e;
  --social: #65666c;
  --line: #ebebeb;
  --hair: #f0f0f0;
  --sub-bg: #f2f2f2;
  --sub-link: #5f5f5f;
  --side: #191919;
  --side-link: #a6a6a6;
  --font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --box: 960px;
  --content: 940px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #fcfcfc; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 28px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 15px; font-family: var(--font); color: var(--ink); }
h2, .h2 { font-size: 24px; line-height: 34px; font-weight: 500; }
h3, .h3 { font-size: 21px; line-height: 30px; font-weight: 400; }
h4, .h4 { font-size: 18px; line-height: 30px; font-weight: 600; }
p { margin: 0 0 15px; }
strong, b { font-weight: 700; color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; color: var(--ink); background: #fff; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Boxed layout on the photo background ---------- */
.wrapper { position: relative; max-width: var(--box); margin: 0 auto; background: #fff; }
@media (min-width: 768px) {
  body { padding: 25px 0; }
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: #fcfcfc url("../../images/bg-bw.jpg") center / cover no-repeat;
  }
  .wrapper { width: calc(100% - 40px); box-shadow: 0 0 15px rgba(0, 0, 0, .06); }
}

.container { max-width: var(--content); margin: 0 auto; padding: 0 10px; }
@media (max-width: 959px) { .container { padding: 0 24px; } }

/* ---------- Header: logo row + menu row ---------- */
.site-header { position: relative; z-index: 50; }
.topbar { background: #fff; }
.logo-row { display: flex; align-items: center; justify-content: center; height: 90px; border-bottom: 1px solid var(--hair); }
.logo { display: inline-flex; align-items: center; }
.logo img { width: auto; height: 60px; }

.main-nav { display: flex; justify-content: center; border-bottom: 1px solid var(--hair); }
.menu { display: flex; margin: 0; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu > li + li { border-left: 1px solid rgba(0, 0, 0, .05); }
.menu-link {
  position: relative; display: block;
  padding: 0 20px;
  font-size: 18px; font-weight: 500; line-height: 60px; white-space: nowrap;
  color: var(--menu);
}
.menu-link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--lime); opacity: 0; transition: opacity .2s;
}
.menu > li:hover > .menu-link,
.menu > li:focus-within > .menu-link,
.menu > li.is-current > .menu-link { color: var(--lime); }
.menu > li:hover > .menu-link::before,
.menu > li.is-current > .menu-link::before { opacity: 1; }

.sub-menu {
  position: absolute; top: 100%; left: -1px; z-index: 10;
  width: 220px; margin: 0; padding: 0; list-style: none;
  background: var(--sub-bg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .07);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s, transform .2s;
}
.sub-menu a {
  display: block; padding: 10px 20px;
  font-size: 14px; line-height: 20px;
  color: var(--sub-link);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.sub-menu li:last-child a { border-bottom: 0; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { color: #2e2e2e; background: rgba(0, 0, 0, .03); }

/* Mobile-only controls stay hidden on desktop */
.menu-toggle, .sub-toggle, .nav-close, .nav-overlay, .main-nav .nav-social { display: none; }

/* Sticky bar after scrolling (desktop) – the header keeps its height, so nothing jumps */
@media (min-width: 960px) {
  .site-header { height: 151px; }
  .topbar.is-sticky {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    height: 60px;
    padding: 0 max(20px, calc((100% - var(--content)) / 2));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    animation: stickyIn .3s ease both;
  }
  .topbar.is-sticky .logo-row { height: auto; border: 0; }
  .topbar.is-sticky .logo img { height: 35px; }
  .topbar.is-sticky .main-nav { border: 0; }
}
@keyframes stickyIn { from { transform: translateY(-100%); } to { transform: none; } }

/* Mobile: logo left, menu button right, dark panel sliding in from the right */
@media (max-width: 959px) {
  .site-header { height: 70px; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px; padding: 0 12px 0 24px;
    border-bottom: 1px solid var(--hair);
  }
  .logo-row { height: auto; border: 0; }
  .logo img { height: 44px; }

  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0;
    color: var(--menu); background: none; border: 0; cursor: pointer;
  }
  .menu-toggle:hover { color: var(--gold); }

  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2;
    flex-direction: column; justify-content: flex-start;
    width: 280px; max-width: 85vw;
    padding: 64px 0 24px; overflow-y: auto;
    background: var(--side); border: 0;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s ease, visibility 0s .35s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { transform: none; visibility: visible; transition: transform .35s ease; }
  .main-nav :focus-visible { outline-color: #fff; }

  .menu { flex-direction: column; }
  .menu > li + li { border-left: 0; }
  .menu-link { padding: 0 64px 0 25px; font-size: 15px; line-height: 46px; color: var(--side-link); }
  .menu-link::before { display: none; }
  .menu > li:hover > .menu-link,
  .menu > li:focus-within > .menu-link,
  .menu > li.is-current > .menu-link { color: #fff; }

  .sub-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 1px; right: 12px;
    width: 44px; height: 44px; padding: 0;
    color: var(--side-link); background: none; border: 0; cursor: pointer;
  }
  .sub-toggle:hover { color: #fff; }
  .sub-toggle svg { transition: transform .2s; }
  .has-sub.is-open > .sub-toggle svg { transform: rotate(45deg); }

  .sub-menu,
  .has-sub:hover > .sub-menu,
  .has-sub:focus-within > .sub-menu {
    position: static; display: none; width: auto;
    background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 9px 25px 9px 42px; color: var(--side-link); border: 0; }
  .sub-menu a:hover, .sub-menu a[aria-current="page"] { color: #fff; background: none; }

  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 10px; left: 12px;
    width: 44px; height: 44px; padding: 0;
    color: var(--side-link); background: none; border: 0; cursor: pointer;
  }
  .nav-close:hover { color: #fff; }
  .main-nav .nav-social { display: flex; justify-content: center; margin-top: auto; padding-top: 28px; }
  .main-nav .nav-social a { color: var(--side-link); }
  .main-nav .nav-social a:hover { color: #fff; }

  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 1;
    background: rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
  }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; transition: opacity .3s; }
}

/* ---------- Page title bar ---------- */
.subheader { position: relative; padding: 30px 20px; text-align: center; }
.subheader::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  box-shadow: inset 0 4px 3px -2px rgba(0, 0, 0, .06);
}
.subheader h1 { margin: 0; font-size: 50px; line-height: 60px; font-weight: 400; }

/* ---------- Content building blocks ---------- */
.content { padding: 45px 0 40px; }
.content .container > :last-child, .country > :last-child { margin-bottom: 0; }
.block { margin-bottom: 35px; }
.block > :last-child { margin-bottom: 0; }

.row { display: grid; gap: 30px; margin-bottom: 35px; }
.row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row--wide { grid-template-columns: 2fr 1fr; }
.row--middle { align-items: center; }
.row > * > :last-child { margin-bottom: 0; }
.col-stack { display: flex; flex-direction: column; }
.col-stack > .pic { margin: auto auto 0; padding-top: 5px; }

.sep { height: 0; margin: 0 0 35px; border: 0; border-top: 1px solid var(--line); }
.country { margin-bottom: 55px; }
.country:last-child { margin-bottom: 0; }

.fancy-title { margin: 0 0 30px; font-size: 45px; line-height: 54px; font-weight: 400; text-align: center; }

@media (min-width: 768px) and (max-width: 959px) {
  .row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .row, .row--2, .row--3, .row--4, .row--wide { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .row--wide > :empty { display: none; }
  .country { margin-bottom: 45px; }
}

/* ---------- Pictures ---------- */
/* .pic keeps the original size (--w) and crop (--ar) of each photo, centred in its column */
.pic { max-width: var(--w, 100%); margin: 0 auto; }
.pic img { width: 100%; height: auto; }
.pic--crop img { aspect-ratio: var(--ar); object-fit: cover; }
.pic--shadow img { box-shadow: 0 0 6px rgba(0, 0, 0, .18); }
.pic a { display: block; cursor: zoom-in; }
.pic a img { transition: opacity .25s; }
.pic a:hover img { opacity: .82; }

.banner { margin: 0 auto 35px; }
.banner img { margin: 0 auto; }

/* ---------- Home ---------- */
.home-intro { max-width: 480px; margin: 5px auto 35px; text-align: center; }
.home-intro h1 { margin-bottom: 12px; }
.home-link { display: block; text-align: center; color: var(--ink); }
.home-link:hover { color: var(--ink); }
.sep-title {
  display: flex; align-items: center; gap: 14px;
  width: 90%; margin: 0 auto 22px;
  font-size: 18px; line-height: 30px; font-weight: 600;
  transition: color .2s;
}
.sep-title::before, .sep-title::after { content: ""; flex: 1; height: 5px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.home-link:hover .sep-title { color: var(--gold); }
.home-link .pic img { transition: transform .4s ease, box-shadow .4s ease; }
.home-link:hover .pic img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }

/* ---------- Services ---------- */
.svc-row { align-items: start; margin-bottom: 30px; }
.svc-row .text h2 { margin-bottom: 26px; }
.svc-row .text p { color: var(--ink); }
.dots { display: flex; justify-content: center; gap: 8px; margin: 0 auto 30px; }
.dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
@media (max-width: 767px) {
  .svc-row--flip .pic { order: -1; }
}

/* ---------- Contact ---------- */
.office { margin-bottom: 30px; }
.office-title { margin: 0 0 4px; font-size: 14px; line-height: 28px; font-weight: 700; letter-spacing: .6px; }
.office p { margin: 0 0 6px; }
.office a:not(.map-link) { border-bottom: 1px solid var(--lime); }
.map-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.map-link svg { color: var(--lime); }

.form-title { margin-bottom: 18px; }
.form .field { margin-bottom: 16px; }
.form .f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; line-height: 22px; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: 11px 13px;
  font: inherit; font-size: 15px; line-height: 22px;
  color: #444; background: #fff;
  border: 1px solid #dedede; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus {
  outline: none; border-color: #8a8a8a;
  box-shadow: 0 0 0 3px rgba(203, 213, 6, .5);
}
.form-actions { margin-top: 4px; }
.form-msg { margin: 0 0 16px; padding: 12px 16px; line-height: 22px; color: #962317; background: #fae9e8; }
.form-msg a { color: inherit; text-decoration: underline; }
.form-success { padding: 22px 24px; line-height: 24px; color: #2f6f49; background: #eaf8ef; outline: none; }
.form-success strong { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 479px) { .form .f-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .3px;
  color: var(--ink); background: var(--lime);
  border: 0; border-radius: 5px; cursor: pointer;
  transition: background-color .2s;
}
.button:hover { color: var(--ink); background: var(--lime-hover); }
.button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { color: var(--muted); border-top: 1px solid var(--hair); }
.footer-widgets {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: center;
  max-width: var(--content); margin: 0 auto; padding: 36px 10px 26px;
}
.footer-icons { display: flex; justify-content: center; gap: 12px; }
.footer-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  color: var(--lime); border: 2px solid currentColor; border-radius: 50%;
}
.footer-icons a:hover { color: var(--gold); }
.footer-badge img { width: 300px; }
.footer-copy { padding: 22px 20px 34px; text-align: center; border-top: 1px solid var(--hair); }
.copyright { margin: 0 0 6px; }
.social { display: flex; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--social); }
.social a:hover { color: var(--ink); }
@media (max-width: 767px) {
  .footer-widgets { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; padding: 32px 24px 22px; }
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  color: var(--social); background: #f7f7f7;
  border: 0; border-radius: 5px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility 0s .25s, background-color .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, background-color .2s, color .2s; }
.to-top:hover { color: var(--ink); background: var(--lime); }

/* ---------- Photo viewer ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px;
  background: rgba(0, 0, 0, .9);
}
.lightbox[hidden] { display: none; }
.lb-figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lb-img { width: auto; max-width: min(1024px, 100%); max-height: calc(100vh - 140px); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: #ccc; text-align: center; }
.lb-caption:empty { display: none; }
.lb-count { position: absolute; top: 20px; left: 22px; margin: 0; font-size: 13px; line-height: 20px; color: #aaa; }
.lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  color: #fff; background: rgba(255, 255, 255, .08);
  border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lb-btn:hover { color: var(--ink); background: var(--lime); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox :focus-visible { outline-color: #fff; }
body.lb-open { overflow: hidden; }
@media (max-width: 767px) {
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
}

/* ---------- 404 ---------- */
.notfound { padding: 30px 0 40px; text-align: center; }
.notfound p { max-width: 520px; margin: 0 auto 26px; }

/* ---------- Smaller screens: type scale ---------- */
@media (max-width: 959px) {
  .subheader h1 { font-size: 42px; line-height: 50px; }
  .fancy-title { font-size: 38px; line-height: 46px; }
}
@media (max-width: 767px) {
  .content { padding: 34px 0 34px; }
  .subheader { padding: 24px 20px; }
  .subheader h1 { font-size: 34px; line-height: 42px; }
  .fancy-title { font-size: 30px; line-height: 38px; margin-bottom: 22px; }
  h2, .h2 { font-size: 21px; line-height: 30px; }
  h3, .h3 { font-size: 19px; line-height: 27px; }
  .block, .row, .banner { margin-bottom: 28px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
