/* =====================================================
   A BRASSETT LTD — MASTER STYLE SHEET (FINAL CLEAN VERSION)
   ===================================================== */

/* ====== GLOBAL BASE ====== */
* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  line-height: 1.65;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}

/* ====== HEADER / LOGO / TOPBAR ====== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f9fafc; /* same as footer */
  border-bottom: 2px solid #0f7ae5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
  width: auto;
}

/* ====== NAVIGATION ====== */
nav {
  flex: 1;
  text-align: center;
  position: relative;
  background: #f9fafc;
  border-top: 1px solid #c8dcf4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 0;
  gap: 10px;
}

nav a {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid #0b4a8f;
  border-radius: 28px;
  color: #0b4a8f;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: all 0.25s ease-in-out;
}

nav a:hover {
  background: #0f7ae5;
  color: #fff;
  border-color: #0f7ae5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

nav a.book-online {
  background: #0f7ae5;
  color: #fff;
  border-color: #0f7ae5;
}

nav a.book-online:hover {
  background: #0b4a8f;
  border-color: #0b4a8f;
}

/* --- MENU TOGGLE BUTTON --- */
.menu-toggle {
  display: none !important;
  font-size: 1rem;
  font-weight: 600;
  color: #0b4a8f;
  background: #eaf0f8;
  border: 1px solid #0b4a8f;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.menu-toggle:hover {
  background: #0f7ae5;
  color: #fff;
}

/* --- SHOW TOGGLE ONLY ON MOBILE --- */
@media (max-width: 850px) {
  .menu-toggle {
    display: block !important;
    margin: 10px auto;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: #f9fafc;
    border-top: 2px solid #0f7ae5;
    display: none;
    padding: 15px 0;
  }

  nav ul.show { display: flex; }
  nav ul li a { width: 100%; padding: 12px 0; }
}

/* ====== HERO ====== */
.hero {
  background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
  padding: 45px 20px 25px;
  text-align: center;
}

.hero-inner { max-width: 700px; margin: 0 auto; }

.hero h1 {
  font-size: 2em;
  margin: 0;
  color: #0b4a8f;
  line-height: 1.35;
}

.hero p {
  font-size: 1.05em;
  line-height: 1.8;
  color: #444;
  font-weight: 400;
  margin-top: 20px;
}

/* ====== CONTENT SECTIONS ====== */
section {
  padding: 45px 20px;
  max-width: 1100px;
  margin: auto;
}

h2, h3 {
  color: #0b4a8f;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ====== INTRODUCTION SECTION ====== */
section:first-of-type {
  padding: 60px 20px 50px;
  max-width: 1100px;
  margin: 0 auto 40px;
  text-align: center;
}

section:first-of-type h2 {
  font-size: 2em;
  margin-bottom: 25px;
  color: #0b4a8f;
  font-weight: 700;
}

section:first-of-type p {
  max-width: 950px;
  margin: 0 auto 25px;
  line-height: 1.8;
  color: #444;
  font-size: 1.05em;
}

/* ====== GRID IMAGE LAYOUT ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 14px rgba(0,0,0,0.12);
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ====== WRAPPER (Problems + FAQ) ====== */
.wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ====== PROBLEMS + FAQ SECTIONS ====== */
section.problems,
section.faq {
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  border: 2px solid #c8dcf4;
  border-radius: 18px;
  padding: 45px 40px;
  margin: 70px auto;
  max-width: 950px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(11,74,143,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

section.problems::before,
section.faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #0b4a8f, #0f7ae5);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

section.problems:hover,
section.faq:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(11,74,143,0.12);
}

section.problems ul {
  list-style: disc;
  padding-left: 25px;
  margin-top: 15px;
}

section.faq dl { margin-top: 20px; }

section.faq dt {
  font-weight: 700;
  margin-top: 10px;
  color: #0b4a8f;
}

section.faq dd {
  margin: 5px 0 15px 0;
  padding-left: 10px;
  color: #333;
}

/* ====== A–Z DIRECTORY ====== */
section.az-directory {
  max-width: 1100px;
  margin: 0 auto;
  padding: 45px 20px;
  text-align: center;
}

#azNav {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

#azNav a {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid #0b4a8f;
  border-radius: 20px;
  color: #0b4a8f;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

#azNav a:hover {
  background: #0f7ae5;
  color: #fff;
}

#azContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 20px;
  text-align: left;
  margin-top: 20px;
}

#azContainer a {
  display: block;
  color: #0b4a8f;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed #c8dcf4;
  padding: 6px 0;
  transition: color 0.2s ease-in-out;
}

#azContainer a:hover { color: #0f7ae5; }

#azContainer h3 {
  grid-column: 1 / -1;
  color: #0b4a8f;
  margin-top: 30px;
  border-bottom: 2px solid #0f7ae5;
  padding-bottom: 6px;
}

/* ====== MAP STYLING ====== */
section.map-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 45px 20px;
  text-align: center;
}

#azMap {
  width: 100%;
  max-width: 1100px;
  height: 600px;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin: 0 auto;
  z-index: 1;
}

@media (max-width: 1024px) { #azMap { height: 500px; } }
@media (max-width: 850px) {
  #azMap { height: 70vh; min-height: 400px; max-width: 95%; }
}

.leaflet-container {
  touch-action: pan-x pan-y !important;
  cursor: grab;
  z-index: 1;
}

/* ====== FOOTER ====== */
footer {
  background: #f9fafc;
  border-top: 2px solid #0f7ae5;
  padding: 40px 20px;
  text-align: center;
  color: #333;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

footer a {
  color: #0b4a8f;
  text-decoration: none;
}

footer a:hover {
  color: #0f7ae5;
  text-decoration: underline;
}

/* ====== SCROLL TO TOP ====== */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: #0f7ae5;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 60px;
  height: 60px;
  font-size: 1.4em;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: all 0.25s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

#scrollTopBtn:hover {
  background: #0b4a8f;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .hero h1 { font-size: 1.8em; }
  .topbar { flex-direction: column; text-align: center; gap: 8px; }
  .logo img { height: 40px; }
}

@media (max-width: 600px) {
  footer { padding: 30px 15px; }
  footer p { font-size: 0.95rem; }
}
