/* ==================================================== */
/*                   GLOBAL STYLES                       */
/* ==================================================== */
/* html and body */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);

  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Cantarell, Noto Sans, Helvetica, Arial, sans-serif;


  font-size: 20px;
  line-height: 1.6;
  
}

/* Links */
a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Images globally */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ==================================================== */
/*                        FONT FACE                      */
/* ==================================================== */
/* Ubuntu Regular font */


/*
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
       url('../fonts/Roboto-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-stretch: 85%;
  
}
*/



/* ==================================================== */
/*                   CSS VARIABLES                       */
/* ==================================================== */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
  --brand-ghost: rgba(37,99,235,0.1);
  --card: #0b1020;
  --card-text: #e5e7eb;
  --alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px; /* Global corner roundness */
  --gallery-radius: var(--radius); /* Corner roundness for gallery tiles */
  --shadow: 0 10px 30px rgba(2,6,23,0.30);
}





/* ==================================================== */
/*                  LAYOUT CONTAINERS                    */
/* ==================================================== */
.container {
  max-width: 2600px;
  margin-left: 40px;
  margin-right: 40px;
  padding: 0 1rem;
}

.section {
  padding: 2rem 0;
  text-align: center;
  scroll-margin-top: 10px;
}
.section.alt {
  background: var(--alt);
  padding: 2rem 0;
  text-align: center;
  scroll-margin-top: 10px;
}

/* ==================================================== */
/*                TYPOGRAPHY HELPERS                     */
/* ==================================================== */
/* Text stretch helper for Logo text */
.stretch-text {
  display: inline-block; /* necessary for transform to work properly on text */
  transform: scaleX(0.75);
  transform-origin: left; /* controls pivot */
}

/* ==================================================== */
/*                   ACCESSIBILITY                        */
/* ==================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  border: 2px solid var(--brand);
  padding: 0.5rem 1rem;
  z-index: 10000;
}

/* Focus outlines */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ==================================================== */
/*                  HEADER AND NAVIGATION                */
/* ==================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  white-space: nowrap;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 3rem;
  font-stretch: 75%;
}
.logo span {
  color: red;
}
.logo,
.logo:hover {
  text-decoration: none;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  margin-left: 2rem;
}
.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

/* Hidden checkbox toggle */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--text);
  height: 2px;
  width: 22px;
  position: relative;
  border-radius: 2px;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-label span::before {
  top: -7px;
}
.nav-toggle-label span::after {
  top: 7px;
}

/* Mobile menu */
@media (max-width: 1120px) {
  .nav-toggle-label {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    inset: 64px 0 auto auto;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.5rem;
  }
  .nav a {
    display: block;
    width: 100%;
  }
  .nav-toggle:checked ~ .nav {
    display: block;
  }
}

/* ==================================================== */
/*                    GRIDS AND LAYOUTS                  */
/* ==================================================== */
/* Responsive 2-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ==================================================== */
/*                    CONTENT ELEMENTS                    */
/* ==================================================== */
/* Card */
.card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 0;
}

/* Card images */
.card-img,
.card-img2 {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto 1rem;
  object-fit: cover;
}
.card-img2 {
  width: 75%;
}

/* Checks list */

.checks {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
  max-width: 900px;
}
.checks li {
  font-size: 1.5rem;
  padding-left: 3rem;
  position: relative;
  margin: 0 1rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--brand-ghost);
  outline: 2px solid var(--brand);
}
.checks-wrapper {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  max-width: 900px;
}


/* ==================================================== */
/*                   BUTTONS                             */
/* ==================================================== */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}
.btn.ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn.small {
  padding: 0.45rem 0.8rem;
}

/* ==================================================== */
/*                  FOOTER                               */
/* ==================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column; /* stacked vertically */
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li {}
.footer-links a {
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  font-size: 1.2rem;
}
.footer-links a:hover {
  text-decoration: underline;
}
.note {
  color: var(--muted);
  font-size: 1.1rem;
  text-align: center;
  margin: 0 auto;
  display: block;
}

/* ==================================================== */
/*                  COMFORT MAP                          */
/* ==================================================== */
.comfort-map-wrapper {
  display: inline-block;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .comfort-map-wrapper {
    font-size: 1.1rem; /* Adjust this to match your desired mobile font size */
  }
}


.comfort-map-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

/* ==================================================== */
/*                  CATCHMENT AREA                       */
/* ==================================================== */
.catchment-wrapper {
  display: block; /* change from inline-block to block */
  text-align: left;
  margin: 0 auto;
  max-width: 800px;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .catchment-wrapper {
    font-size: 1.1rem; /* match the checks li for consistency */
  }
}


.map-img {
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 0.2rem;
  object-fit: cover;
}



/* ==================================================== */
/*                      MISC                              */
/* ==================================================== */
/* Spacer */
.spacer-small {
  height: 8px;
}

/* Image banner */
.image-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
  text-align: center;
  padding-top: 45px; /* prevents cropping under sticky header */
}
.image-banner img {
  width: 100%;
  max-width: 1600px;
  max-height: 500px;
  height: auto;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Table styling */
table {
  width: 100%;
  max-width: 300px;
  border-collapse: collapse;
  margin: 1rem auto;
}
th,
td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: center;
}
th {
  background: var(--alt);
}
td > * {
  display: inline-block;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.gallery-item {
  width: 70%;
  height: auto;
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--gallery-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
#contact-form input,
#contact-form textarea,
#contact-form button {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--alt);
  appearance: none;
}
#contact-form label {
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-ghost);
  background: #fff;
}
#contact-form .btn {
  width: auto;
  align-self: flex-start;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
}

/* List container */
.list-container {
  max-width: 600px;
  margin: 0 auto;
}
.list-container ul {
  list-style-position: outside;
  padding-left: 1.5rem;
  margin-left: 0;
  text-align: left;
}

/* ==================================================== */
/*                      RESPONSIVE                       */
/* ==================================================== */
@media (max-width: 768px) {
  .checks-wrapper {
    display: block;
    margin: 0 auto;
    padding: 0;
  }
  .checks {
    display: block !important;
    margin: 0 !important;
    padding: 0;
    gap: 0.6 !important;
  }
  .checks li {
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 1.1rem;
    line-height: 1.4;
  }
  .section h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

@media (max-width: 720px) {
  .container {
    margin-left: 10px !important;
    margin-right: 10px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ==================================================== */
/*                 MOTION REDUCTION                      */
/* ==================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==================================================== */
/*                  QUARANTINED UNUSED                   */
/* (kept commented out to preserve functionality)        */
/* ==================================================== */
/*
*, *::before, *::after {
  box-sizing: border-box;
}

.list {
  display: grid;
  gap: 1rem;
}

.list-item {
  border-left: 4px solid var(--brand);
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.card-img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.card-img2 {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.map-img {
  aspect-ratio: 1/1;
  object-fit: cover;
}
*/
