:root {
  --navy: #082b51;
  --gold: #a87535;
  --bronze: #855724;
  --cream: #faf8f5;
  --beige: #f2e8dc;
  --text: #211d19;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--navy); background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1480px; margin: auto; padding: 0 4.2%; }

/* Top contact bar */
.topbar { background: linear-gradient(90deg, #f9f3e9, #fff); border-bottom: 1px solid #eee2d4; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.top-contacts { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.top-contacts > * + * { border-left: 1px solid #eadcca; padding-left: 22px; }

/* Original SVG social icons: one image per link, no colored placeholder tile */
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.socials a,
.socials a:nth-child(1),
.socials a:nth-child(2),
.socials a:nth-child(3),
.socials a:nth-child(4) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--navy);
  line-height: 1;
  overflow: hidden;
  transition: transform .2s ease, opacity .2s ease;
}
.socials a img {
  display: block;
  flex: none;
  width: 29px;
  height: 29px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.socials a:hover { transform: translateY(-2px); opacity: .9; }
.socials a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.top-socials { flex-wrap: nowrap; }

/* Global header */
.site-header { background: linear-gradient(100deg, #fff 72%, #f7eee1); box-shadow: 0 7px 22px #39240d13; position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 130px; }
.brand img { display: block; width: 275px; max-width: 100%; height: 118px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 27px; font-size: 16px; font-weight: 600; }
.main-nav > a { padding: 13px 3px; border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav > a:hover, .main-nav > a.active { color: var(--bronze); border-bottom-color: var(--gold); }
.contact-btn, .whatsapp-btn { border: 0; border-radius: 9px; background: linear-gradient(100deg, #996324, #b47c36); color: #fff !important; padding: 17px 24px; font-weight: 600; white-space: nowrap; display: inline-block; }
.contact-btn:hover, .whatsapp-btn:hover { filter: brightness(1.08); }
.search-btn { border: 0; background: #fff; color: var(--gold); width: 47px; height: 47px; flex: 0 0 47px; border-radius: 50%; box-shadow: 0 3px 12px #0002; font-size: 34px; line-height: 1; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 27px; height: 3px; background: var(--navy); margin: 5px 0; }

/* Global footer */
.site-footer { background: #fbf7ef; }
.footer-main { padding: 53px 0 42px; background: radial-gradient(ellipse at right, #f4e7d2, transparent 40%), linear-gradient(90deg, #fbf8f2, #f9f2e7); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 35px; }
.footer-grid > div { min-width: 0; }
.footer-grid > div + div { border-left: 1px solid #e6d7c2; padding-left: 34px; }
.footer-brand > a > img { display: block; width: 275px; max-width: 100%; height: 130px; object-fit: contain; object-position: left center; background: transparent; }
.footer-brand p { line-height: 1.65; font-size: 16px; margin: 6px 0 18px; }
.footer-socials a,
.footer-socials a:nth-child(1),
.footer-socials a:nth-child(2),
.footer-socials a:nth-child(3),
.footer-socials a:nth-child(4) { flex-basis: 38px; width: 38px; height: 38px; }
.footer-socials a img { width: 34px; height: 34px; }
.footer-col h2 { font-family: Georgia, serif; font-size: 23px; margin: 0 0 22px; }
.footer-col h2::after { content: ''; display: block; width: 37px; height: 2px; background: var(--gold); margin-top: 13px; }
.footer-col > a:not(.whatsapp-btn) { display: flex; justify-content: space-between; gap: 12px; align-items: center; line-height: 1.45; margin-bottom: 14px; }
.footer-col > a span { color: var(--gold); font-size: 25px; line-height: 14px; }
.footer-col p { line-height: 1.5; }
.contact-col > a:not(.whatsapp-btn) { justify-content: flex-start; overflow-wrap: anywhere; }
.whatsapp-btn { margin-top: 14px; border-radius: 35px; text-align: center; width: 100%; }
.footer-bottom { border-top: 1px solid #e6d7c2; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; font-size: 13px; }
.footer-bottom-inner > div { display: flex; gap: 20px; }
.footer-bottom-inner > div a + a { border-left: 1px solid var(--gold); padding-left: 20px; }

/* Existing placeholder pages */
.placeholder { min-height: 340px; padding: 65px 0; }
.placeholder h1 { font: 42px Georgia, serif; margin: 0 0 15px; }
.placeholder p { line-height: 1.6; }

/* Existing enquiry and search modals */
.modal { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; padding: 18px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: #081c33a8; }
.modal-panel { position: relative; background: #fff; border-radius: 14px; padding: 30px; max-width: 470px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 12px 40px #0004; }
.modal-panel h2 { font: 26px Georgia, serif; margin: 0 0 10px; }
.modal-panel p { color: #625c55; }
.modal-panel form { display: grid; gap: 14px; }
.modal-panel label { display: grid; gap: 5px; font-size: 14px; }
.modal-panel input, .modal-panel textarea { width: 100%; padding: 11px; border: 1px solid #d9c9b5; border-radius: 6px; }
.modal-close { position: absolute; right: 17px; top: 10px; border: 0; background: none; font-size: 30px; }
.trap { position: absolute !important; left: -9999px !important; }

@media (max-width: 1150px) {
  .header-inner { min-height: 105px; }
  .brand img { width: 220px; height: 100px; }
  .main-nav { gap: 14px; font-size: 14px; }
  .contact-btn { padding: 14px 17px; }
  .footer-grid { gap: 18px; }
  .footer-grid > div + div { padding-left: 18px; }
}
@media (max-width: 850px) {
  .shell { padding: 0 5%; }
  .topbar-inner { min-height: 38px; }
  .top-contacts { font-size: 11px; gap: 9px; }
  .top-contacts > * + * { padding-left: 9px; }
  .top-contacts span { display: none; }
  .top-socials { display: none; }
  .header-inner { min-height: 86px; }
  .brand img { width: 175px; height: 78px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 10px 20px #0002; padding: 15px 5% 25px; flex-direction: column; align-items: stretch; gap: 3px; }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 13px 6px; }
  .main-nav .contact-btn { width: 100%; }
  .search-btn { margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div + div { border: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .top-contacts { flex-wrap: wrap; gap: 4px; }
  .top-contacts a { font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-main { padding: 35px 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-bottom-inner > div { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .footer-bottom-inner > div a + a { padding-left: 8px; }
  .placeholder h1 { font-size: 31px; }
}

/* ==========================================
   SRII PROPERTIES
   MOBILE HEADER LOGO CORRECTION
   Does not change desktop layout
   ========================================== */

@media (max-width: 850px) {

  .site-header {
    position: relative;
    z-index: 10;
  }

  .header-inner {
    min-height: 90px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    min-width: 0;
    line-height: 0;
  }

  .brand img {
    display: block;
    width: 175px;
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    object-position: center;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
    padding: 10px;
    margin: 0;
    position: relative;
    z-index: 12;
  }

  .menu-toggle span {
    width: 27px;
    height: 3px;
    margin: 5px 0;
  }
}

@media (max-width: 520px) {

  .header-inner {
    min-height: 86px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand img {
    width: 160px;
    height: 70px;
    object-fit: contain;
  }

  .menu-toggle {
    padding: 8px;
  }
}
