html {
  scroll-behavior: smooth;
}

:root {
  --main_color: #00349f;
  --secondary_color: #fcdb0b;
  --dark_secondary: #947d34;
  --plain: #fff;
  --red: #841c26;
  --dark_main: #333;
  --light_main: #1f5fbf;
  --light: #d6e5f5;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

html:not([data-theme]) body {
  color: var(--secondary_color);
}

html[data-theme="light"] body {
  color: var(--secondary_color);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body {
    background-color: #0f1420;
    color: var(--dark_secondary);
  }

  html:not([data-theme]) header,
  html:not([data-theme]) .hero,
  html:not([data-theme]) .services,
  html:not([data-theme]) .gallery,
  html:not([data-theme]) .reservation,
  html:not([data-theme]) .contact {
    background-color: transparent;
  }

  html:not([data-theme]) header .header-left h1,
  html:not([data-theme]) header .header-desc,
  html:not([data-theme]) nav a,
  html:not([data-theme]) h2,
  html:not([data-theme]) .service-desc,
  html:not([data-theme]) .reference-tile h3 {
    color: var(--dark_secondary);
  }

  html:not([data-theme]) .reference-tile,
  html:not([data-theme]) #thankyou-message {
    background: #1a2236;
    color: var(--light);
  }

  html:not([data-theme]) .contact-tile {
    background: transparent;
  }

  html:not([data-theme]) input,
  html:not([data-theme]) textarea,
  html:not([data-theme]) select {
    background: #131a2b;
    color: var(--light);
    border-color: #3a4f85;
  }

  html:not([data-theme]) nav,
  html:not([data-theme]) nav#mainNav,
  html:not([data-theme]) .lang-switch.mobile-lang.show,
  html:not([data-theme]) footer {
    background: transparent;
  }

  html:not([data-theme]) .cookie-banner {
    background: var(--main_color);
    border-top-color: var(--secondary_color);
  }

  html:not([data-theme]) .cookie-banner,
  html:not([data-theme]) .cookie-banner * {
    color: var(--secondary_color) !important;
  }

  html:not([data-theme]) .hamburger,
  html:not([data-theme]) .theme-toggle {
    background: #131f45;
  }

  html:not([data-theme]) .hamburger span {
    background: #fcdb0b;
  }
}

html[data-theme="dark"] body {
  background-color: #0f1420;
  color: var(--dark_secondary);
}

html[data-theme="dark"] header,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .services,
html[data-theme="dark"] .gallery,
html[data-theme="dark"] .reservation,
html[data-theme="dark"] .contact {
  background-color: transparent;
}

html[data-theme="dark"] header .header-left h1,
html[data-theme="dark"] header .header-desc,
html[data-theme="dark"] nav a,
html[data-theme="dark"] h2,
html[data-theme="dark"] .service-desc,
html[data-theme="dark"] .reference-tile h3 {
  color: var(--dark_secondary);
}

html[data-theme="dark"] .reference-tile,
html[data-theme="dark"] #thankyou-message {
  background: #1a2236;
  color: var(--light);
}

html[data-theme="dark"] .contact-tile {
  background: transparent;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #131a2b;
  color: var(--light);
  border-color: #3a4f85;
}

html[data-theme="dark"] nav,
html[data-theme="dark"] nav#mainNav,
html[data-theme="dark"] .lang-switch.mobile-lang.show,
html[data-theme="dark"] footer {
  background: transparent;
}

html[data-theme="dark"] .cookie-banner {
  background: var(--main_color);
  border-top-color: var(--secondary_color);
}

html[data-theme="dark"] .cookie-banner,
html[data-theme="dark"] .cookie-banner * {
  color: var(--secondary_color) !important;
}

html[data-theme="dark"] .hamburger,
html[data-theme="dark"] .theme-toggle {
  background: #131f45;
}

html[data-theme="dark"] .hamburger span {
  background: #fcdb0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0 auto;
  width: 100vw;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  line-height: 1.6;
  background-color: var(--plain);
  color: var(--secondary_color);
}

h2 {
  text-align: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 2rem;
  position: relative;
  color: var(--main_color);
  background: transparent;
}
header .logo,
header nav {
  position: relative;
  z-index: 1;
}
header .logo img {
  max-width: 300px;
  height: auto;
  border-radius: 50%;
}
header .header-left .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
header .header-left h1 {
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--main_color);
  margin: 0;
  white-space: nowrap; /* Prevents wrapping */
}
header .header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
header .header-desc {
  font-family: "Quicksand", sans-serif;
  font-size: 1.2rem;
  color: var(--main_color);
  text-align: right;
  position: absolute;
  top: 100%;
  right: 0;
  /*max-width: 15ch; /* Limit to 15 characters */
  white-space: normal; /* Allows wrapping */
  margin-top: 0.5rem;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 1.5rem;
  font-family: "Quicksand", sans-serif;
}

nav a {
  color: var(--main_color);
  margin-left: 1rem;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: 1rem;
  position: relative;
}

.lang-switch.mobile-lang {
  display: none;
  position: relative;
  margin: 0;
}

.lang-switch.mobile-lang.show {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--main_color);
  flex-direction: column;
  width: auto;
  min-width: 120px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 199;
  margin-top: 0.5rem;
}

@media (max-width: 1200px) {
  .lang-switch:not(.mobile-lang) {
    display: none;
  }

  .lang-switch.mobile-lang {
    display: inline-flex !important;
    margin: 0;
    position: relative;
    gap: 0;
    min-width: 0;
  }

  .lang-switch.mobile-lang .lang-btn {
    margin: 0;
    padding: 0;
    width: 40px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .lang-switch.mobile-lang .lang-btn:not(.active) {
    display: none;
  }

  .lang-switch.mobile-lang .lang-btn.active {
    margin: 0;
  }

  .lang-switch.mobile-lang.show .lang-btn:not(.active) {
    display: flex !important;
  }

  .lang-switch.mobile-lang.show .lang-btn {
    width: 40px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    text-align: center;
    border-bottom: none;
  }

  .lang-switch.mobile-lang.show .lang-btn.active {
    background: var(--secondary_color);
    box-shadow: none;
  }

  .lang-switch.mobile-lang.show .lang-btn:last-child {
    border-bottom: none;
  }

  .lang-btn .flag-icon {
    width: 50%;
    height: 50%;
    max-width: 50%;
    max-height: 50%;
  }
}

.lang-btn {
  width: 36px;
  height: 28px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--main_color);
  border-radius: 6px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  cursor: pointer;
}

.lang-btn .flag-icon {
  width: 70%;
  height: 70%;
  max-width: 70%;
  max-height: 70%;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--main_color);
  box-shadow: 0 0 0 1px var(--main_color);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--main_color);
  color: var(--secondary_color);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--light_main);
}

.theme-toggle .theme-icon {
  font-size: 1rem;
}

/* Hamburger button styles */
.hamburger {
  background: var(--main_color);
  display: none;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  z-index: 200;
  gap: 6px;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--dark_secondary);
  border-radius: 2px;
  transition: 0.3s;
}

.hero {
  padding: 4rem 1rem;
  background: var(--main_color);
}

.hero-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.hero-box {
  background-color: var(--plain);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex: 1 1 300px;
  max-width: 500px;
  transition: transform 0.3s ease;
}

.hero-box:hover {
  transform: translateY(-5px);
}

.hero-box h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--main_color);
}

.hero-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}
.hero h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--dark_main);
}

.hero-box h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--dark_main);
}

.services {
  padding: 2rem 1rem;
  text-align: center;
}

.services h2 {
  color: var(--dark_secondary);
  margin-bottom: 2rem;
}

.service-boxes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.service {
  position: relative;
  background-color: var(--main_color);
  color: var(--secondary_color);
  flex: 1 1 200px;
  max-width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.service::after {
  content: attr(data-desc);
  position: absolute;
  top: -5%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light_main);
  color: var(--secondary_color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  border-radius: 8px;
  font-size: 0.8rem;
  opacity: 0; /* Hidden by default */
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: pre-line;
  z-index: 2;
  text-align: center;
  max-width: 90%;
}

.service:hover::after {
  opacity: 1;
}

.service .service-icon {
  width: 50%;
  height: 50%;
  max-width: 50%;
  max-height: 50%;
  flex: 0 0 auto;
  display: block;
  margin-bottom: 1rem;
  object-fit: contain;
}

.service:hover {
  transform: scale(1.05);
  background-color: var(--light_main);
}

.service-desc {
  font-size: 1.1rem;
  color: var(--secondary_color);
  margin-top: 1rem;
}

.gallery,
.contact,
.reservation {
  margin-left: auto;
  margin-right: auto;
}

.gallery,
.contact {
  padding: 2rem 1rem;
}

.form-contact-wrapper {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  justify-content: center;
}

.form-contact-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
  min-height: 100%;
  align-self: stretch;
  padding: 2rem 0;
}

.form-contact-divider::before,
.form-contact-divider::after {
  content: "";
  width: 1px;
  flex: 1;
  background: rgba(0, 52, 159, 0.35);
}

.form-contact-divider span {
  margin: 1rem 0;
  padding: 0;
  background: transparent;
  font-size: 2rem;
  font-weight: 700;
  line-height: 0.9;
}

#emailer {
  flex: 1 1 0;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#emailer form {
  text-align: left;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#contact {
  flex: 1 1 0;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.services h2,
.gallery h2,
.contact h2 {
  margin-bottom: 1rem;
}

.services ul {
  list-style: inside disc;
}
.services li {
  margin-bottom: 0.5rem;
}

.gallery {
  max-width: 50vw;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.gallery .grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.gallery img {
  width: calc(33% - 0.67rem);
  border-radius: 4px;
}

.references-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, 250px);
  gap: 2rem;
  justify-content: center;
  max-width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
}

.reference-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--plain);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.reference-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.reference-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.reference-tile h3 {
  padding: 1rem;
  color: var(--main_color);
  font-size: 1.1rem;
  margin: 0;
}

/* Tablet breakpoint (768px and below) */
@media (max-width: 768px) {
  .references-tiles {
    grid-template-columns: repeat(auto-fit, minmax(220px, 250px));
    gap: 1.5rem;
    padding: 0 0.75rem;
  }

  .reference-tile img {
    height: 180px;
  }

  .reference-tile h3 {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

/* Mobile breakpoint (576px and below) */
@media (max-width: 576px) {
  .references-tiles {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .reference-tile img {
    height: 200px;
  }

  .reference-tile h3 {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
}

.carousel {
  position: relative;
  overflow: hidden;
  max-width: 50%; /* Limit carousel width to 50% of its parent */
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  width: 100%; /* Each image takes full width of carousel */
  flex: 0 0 100%; /* Only one image visible at a time */
  border-radius: 5px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--plain);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 2rem;
  z-index: 1;
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

.reservation {
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  width: 100vw; /* Use full viewport width for centering */
  margin: 0 auto;
}

form {
  display: grid;
  gap: 0.5rem;
  max-width: 400px; /* Set a fixed max width for the form */
  width: 100%; /* Let the form fill available space up to max-width */
  margin: 0 auto;
}
input,
textarea,
select {
  padding: 0.5rem;
  border: 1px solid var(--light_main);
  border-radius: 3px;
}
button {
  padding: 0.75rem;
  background: var(--main_color);
  color: var(--secondary_color);
  border: none;
  cursor: pointer;
}
button:hover {
  background: var(--light_main);
  color: var(--secondary_color);
}

/* Thank you message styling */
#thankyou-message {
  display: none;
  color: var(--secondary_color);
  text-align: center;
  margin: 1em 0;
  font-size: 1.2em;
  background: var(--main_color);
  opacity: 0.25;
  border-radius: 8px;
  padding: 1em;
  font-family: "Quicksand", sans-serif;
}
#thankyou-message.show {
  display: block;
}

footer {
  background: var(--main_color);
  color: var(--dark_secondary);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer p a {
  color: var(--dark_secondary);
  text-decoration: none;
}

.contact h2 {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 2rem 0;
  width: 100%;
}
.contact-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  align-items: stretch;
  margin: 0 auto;
}

.contact-tiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-tile {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.5rem;
  font-size: 1rem;
  color: var(--dark_secondary);
  text-align: center;
  min-height: 80px;
  width: 100%;
}

.contact-tile .contact-icon {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  display: block;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

/* Defensive sizing in case another generic img rule overrides class styles. */
.contact-tiles .contact-tile img,
.contact-tiles .contact-tile img.contact-icon {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  flex: 0 0 32px;
}
.contact-tile a {
  color: var(--dark_secondary);
  text-decoration: none;
}

.contact-tile a:hover {
  color: var(--plain);
}

.contact-tile .spacer {
  color: var(--main_color);
}

.contact-tile .fi {
  font-size: 1.5em;
  margin-top: 1rem;
}

/* Telephone icons styles */
#telephone-contact {
  font-size: 0.8em;
  vertical-align: text-top; /* Optional: aligns icon with text */
  margin-left: 0.5em; /* Space between text and icon */
  margin-top: 0.2rem; /* Adjust vertical alignment */
}

#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  background: var(--main_color);
  color: var(--secondary_color);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
  transition: background 0.2s;
}
#backToTop:hover {
  background: var(--dark_secondary);
}

#backToTop .back-to-top-icon {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
  object-fit: contain;
}

/* Cookie banner styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--main_color);
  color: var(--secondary_color);
  padding: 16px 20px;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-top: 2px solid var(--secondary_color);
  transform: translateY(110%);
  opacity: 0;
}

.cookie-banner:not(.hidden) {
  animation: cookie-slide-up 0.45s ease-out forwards;
}

@keyframes cookie-slide-up {
  from {
    transform: translateY(110%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content h2 {
  font-size: 1.2rem;
  text-align: left;
}

.cookie-content p {
  font-size: 0.95rem;
  margin-top: 0.35rem;
}
.cookie-content {
  flex: 1;
}

.cookie-content a {
  color: var(--secondary_color);
  text-decoration: underline;
  font-weight: 700;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-accept,
.btn-reject {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  min-width: 190px;
  font-weight: 700;
}

.cookie-banner .btn-accept {
  background: var(--secondary_color);
  color: var(--main_color) !important;
}

html[data-theme="dark"] .cookie-banner .btn-accept,
html:not([data-theme]) .cookie-banner .btn-accept {
  color: var(--main_color) !important;
}

.btn-reject {
  background: transparent;
  color: var(--secondary_color);
  border-color: var(--secondary_color);
}

.btn-reject:hover {
  background: rgba(252, 219, 11, 0.18);
}

.btn-accept:hover {
  background: var(--secondary_color);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons {
    justify-content: flex-start;
  }

  .btn-accept,
  .btn-reject {
    width: 100%;
  }
}

.hidden {
  display: none !important;
}

/* Responsive nav */
@media (max-width: 1200px) {
  header {
    padding: 0.75rem 1rem;
    align-items: center;
  }

  header .logo img {
    max-width: 120px;
  }

  header .header-right {
    margin-left: auto;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  nav#mainNav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #131f45;
    flex-direction: column;
    width: 25vw; /* Max 25% of the viewport */
    min-width: 160px;
    max-width: 350px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    font-size: 1.1rem; /* Slightly smaller text */
    border-radius: 8px;
    overflow: hidden;
  }
  nav#mainNav.open {
    display: flex;
    background: #131f45 !important;
    opacity: 1;
  }
  html[data-theme="dark"] nav#mainNav.open,
  html:not([data-theme]) nav#mainNav.open {
    background: #131f45 !important;
  }
  .hamburger {
    display: flex;
  }
  nav#mainNav a {
    display: block;
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--dark_secondary);
    text-align: center;
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
    font-size: 1em; /* Ensure text scales with nav */
    word-break: break-word;
  }

  nav#mainNav .lang-switch {
    display: none;
  }
}

/* Tablet: stack sections vertically and use more width */
@media (max-width: 1200px) {
  h1 {
    display: none;
  }
  .gallery {
    max-width: 80vw;
  }
  .form-contact-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .form-contact-divider {
    flex-direction: row;
    flex: 0 0 auto;
    width: min(100%, 760px);
    min-height: 0;
    align-self: center;
    padding: 1.5rem 1rem;
  }
  .form-contact-divider::before,
  .form-contact-divider::after {
    width: auto;
    height: 1px;
  }
  .form-contact-divider span {
    margin: 0 1rem;
  }
  #emailer {
    flex: 1 1 100%;
  }
  #contact {
    flex: 1 1 100%;
  }
  .contact-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    align-items: stretch;
  }
  .contact-tiles {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-tile {
    width: auto !important;
    text-align: center;
  }
  .contact-tile:nth-child(1) {
    grid-column: auto;
    width: auto !important;
  }
  .contact h2 {
    text-align: center;
  }
  header .header-desc {
    display: none;
  }
}

/* Mobile: full width, smaller padding, stacked tiles */
@media (max-width: 768px) {
  header .logo img {
    max-width: 96px;
  }

  .gallery {
    max-width: 98vw;
    padding: 1rem 0.5rem;
  }
  .contact-flex {
    max-width: 100%;
    gap: 0.5rem;
  }
  .contact-tile {
    font-size: 0.95rem;
    padding: 0.8rem 0.3rem;
  }
  header .header-desc {
    display: none;
  }
}

/* Extra small: reduce font and padding further */
@media (max-width: 375px) {
  .gallery {
    max-width: 100vw;
    padding: 0.5rem 0.1rem;
  }
  .contact-flex {
    max-width: 100%;
    gap: 0.3rem;
  }
  .contact-tile {
    font-size: 0.9rem;
    padding: 0.5rem 0.1rem;
    min-height: 60px;
  }
  header .header-desc {
    display: none;
  }
  .hamburger {
    display: flex !important;
    width: 32px;
    height: 32px;
    background: var(--main_color);
    border: none;
  }
  .hamburger span {
    background: var(--dark_secondary) !important;
    height: 3px;
    min-height: 3px;
    width: 100%;
    border-radius: 2px;
  }
  header .logo img {
    max-width: 80px;
    height: auto;
  }
}
