/* ===========================
   Variables & Base Styles
   =========================== */
:root {
  --orange: #ff6b00;
  --blue-nav: #004a7f;
  --white: #ffffff;
  --font-base: 'Montserrat', sans-serif;
  --footer-height-offset: 140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  padding-bottom: calc(var(--footer-height-offset) + 12px);
}

/* ===========================
   Utility Classes
   =========================== */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-1 { margin-top: 1rem; }

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 80vh;
  height: auto;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero.fullscreen {
  height: calc(var(--vh, 1vh) * 80);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  z-index: 1;
}

.hero-bg-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-left: 2px solid var(--white);
}

.hero-bg-item:first-child {
  border-left: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 2;
}

.logo-circle {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 300px;
  height: 300px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

.logo-circle .logo {
  max-width: 70%;
  max-height: 70%;
}

nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 50;
}

/* Background only on home page - wraps all nav links */
body.home-page nav {
  background-color: var(--blue-nav);
  padding: 12px 20px;
  border-radius: 0 0 0 8px;
}

nav a {
  margin-left: 20px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:first-child {
  margin-left: 0;
}

nav a:hover {
  color: var(--orange);
}

.hero-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 60px;
  border: 4px solid var(--orange);
  border-radius: 15px;
  font-size: 60px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  text-shadow: 2px 4px 2px rgba(0, 0, 0, 0.8);
  z-index: 60;
  transition: opacity 0.4s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 90%;
  white-space: normal;
}

.hero-button:hover {
  background-color: var(--orange);
  border: 4px solid var(--white);
  transform: translate(-50%, -50%) scale(1.05);
}

body.hero-passed .hero-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -60%) scale(0.95);
}

/* ===========================
   About Section
   =========================== */
.about {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-photo img,
.owner-photo img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-info h2 {
  font-size: 44px;
  margin-bottom: 20px;
  color: var(--blue-nav);
}

.about-info p {
  font-size: 22px;
  line-height: 29px;
}

/* ===========================
   Contact Section
   =========================== */
.contact-container {
  padding: 50px 40px;
  max-width: 600px;
  margin: 100px auto 50px;
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

input,
textarea {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  width: 100%;
}

input[type="submit"] {
  margin-top: 25px;
  padding: 15px;
  border: 2px solid var(--orange);
  border-radius: 15px;
  background-color: var(--white);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-nav);
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="submit"]:hover {
  background-color: var(--orange);
  color: var(--white);
}

/* ===========================
   Gallery
   =========================== */
.gallery-item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.gallery-item img {
  flex: 1 1 45%;
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
/* Last image keeps original ratio */
.gallery-item:last-child img {
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

/* Mobile responsive for last image */
@media (max-width: 900px) {
  .gallery-item:last-child img {
    height: auto;
    max-height: 60vh;
  }
}
/* ===========================
   Footer
   =========================== */
.footer-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: auto;
}

.contact-footer {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: calc(-1 * var(--footer-height-offset));
  height: var(--footer-height-offset);
  background-color: var(--orange);
  padding: 8px 12px;
  box-sizing: border-box;
  transition: bottom 0.32s ease, box-shadow 0.32s ease;
  overflow: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-wrapper:hover .contact-footer,
.footer-wrapper:focus-within .contact-footer {
  bottom: 0;
  overflow: visible;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
}

.footer-tab {
  position: absolute;
  left: 12px;
  bottom: 0;
  background-color: var(--orange);
  padding: 8px 12px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--white);
  z-index: 999;
  text-align: center;
  user-select: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  font-size: 14px;
}

.footer-content {
  display: flex;
  flex-direction: column !important;  /* Stack vertically */
  align-items: center !important;     /* Center horizontally */
  justify-content: center !important;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.footer-content * {
  font-size: 14px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  
}

.footer-content img {
  width: 105px;
  height: auto;
  object-fit: cover;
  flex: 0 0 36px;
}

.footer-right {
  text-align: right;
  max-width: 50%;
  word-break: break-word;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablets / Large Phones (768px - 1024px) */
@media (max-width: 1024px) {
  .hero {
    height: 60vh;
  }

  .logo-circle {
    width: 220px;
    height: 220px;
    top: 16px;
    left: 16px;
  }

  nav a {
    font-size: 0.95rem;
    margin-left: 16px;
  }

  .hero-button {
    font-size: 40px;
    padding: 16px 48px;
    border-width: 3px;
  }

  .about-photo img {
    width: 240px;
  }

  .about-info h2 {
    font-size: 30px;
  }

  .gallery-item img {
    height: 320px;
    flex: 1 1 48%;
  }
}

/* Mobile Tablets (768px and below) - AGGRESSIVE FIX FOR CHROME */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
  }

  .hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: hidden !important;
    margin-bottom: 0;
    width: 100%;
    max-width: 100vw;
  }

  .hero-background {
    display: block;
    width: 100%;
    max-width: 100vw;
  }

  .hero-bg-item {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    border-left: none;
    border-top: 2px solid var(--white);
  }

  .hero-bg-item:first-child {
    border-top: none;
  }

  /* MUCH SMALLER LOGO FOR CHROME */
  .logo-circle {
    width: 100px !important;
    height: 100px !important;
    top: 8px !important;
    left: 8px !important;
    position: fixed;
    z-index: 100;
  }

  nav {
    position: fixed;
    z-index: 100;
    right: 0;
    top: 0;
  }

  body.home-page nav {
    padding: 8px 12px;
  }

  nav a {
    font-size: 0.75rem;
    margin-left: 8px;
  }

  /* MUCH SMALLER BUTTON FOR CHROME */
  .hero-button {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    font-size: 27px !important;
    padding: 10px 20px !important;
    max-width: 70% !important;
    width: auto !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    border-width: 2px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  /* Hide button after user scrolls past hero */
  body.hero-passed .hero-button {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
  }

  /* Ensure about section starts below hero */
  .about {
    position: relative;
    z-index: 10;
    background-color: var(--white);
    padding-top: 60px;
    width: 100%;
    max-width: 100vw;
  }

  .about-photo img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
  }

  .about-info h2 {
    font-size: 26px;
  }
  .about-info p {
      font-size: 25px;
  }

  .gallery-item {
    flex-direction: column;
    gap: 12px;
  }

  .gallery-item img {
    height: 280px;
    flex: 1 1 100%;
  }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
  :root {
    --footer-height-offset: 160px;
  }

  .hero-bg-item {
    height: 90vh;
  }

  /* EVEN SMALLER FOR TINY SCREENS */
  .hero-button {
    font-size: 16px !important;
    padding: 8px 16px !important;
    max-width: 65% !important;
  }

  .logo-circle {
    width: 160px !important;
    height: 160px !important;
    top: 6px !important;
    left: 6px !important;
  }

  nav a {
    font-size: 0.7rem;
    margin-left: 6px;
  }

  body.home-page nav {
    padding: 6px 10px;
  }

  .about-info h2 {
    font-size: 20px;
  }
  .about-info p {
      font-size: 19px;
  }

  .gallery-item img {
    height: 200px;
    width: 100%;
    flex: 1 1 100%;
  }

  .contact-footer {
    bottom: calc(-1 * var(--footer-height-offset));
  }

  .footer-tab {
    left: 8px;
    bottom: 0;
    padding: 10px 14px;
    font-size: 13px;
  }

/* container stacked vertically: image above text */
.footer-content {
  display: flex;
  flex-direction: column;    /* stack items */
  align-items: center;       /* center horizontally */
  justify-content: center;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* logo sizing and spacing */
.footer-logo {
  width: 48px;       /* adjust smaller/larger as needed */
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

/* contact line: centered, tight spacing */
.contact-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  color: #ffffff; /* or whatever color your footer uses */
}

/* small separator spacing; aria-hidden keeps it out of screen reader flow */
.contact-line .sep {
  display: inline-block;
  margin: 0 6px;
  color: rgba(255,255,255,0.9);
}

/* make sure links inherit visible color and remain tappable */
.contact-line a {
  color: inherit;
  text-decoration: underline;
  word-break: break-word;
}

/* responsive tweak if you want the logo smaller on tiny screens */
@media (max-width: 480px) {
  .footer-logo { width: 40px; }
  .contact-line { font-size: 12px; }
}
/* Force stacked footer layout (logo above text) */
footer.contact-footer .footer-content {
  display: flex !important;
  flex-direction: column !important; /* stack vertically */
  align-items: center !important;    /* center horizontally */
  justify-content: center !important;
  gap: 8px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Make sure each direct child is a block so nothing sits inline */
footer.contact-footer .footer-content > * {
  display: block !important;
  width: 100%;
  text-align: center;
}

/* Logo sizing and spacing */
.footer-logo {
  width: 48px;
  height: auto;
  display: block;
  margin: 0 auto 6px;
  border-radius: 6px;
  object-fit: contain;
}

/* Contact line — single centered row */
.contact-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  color: #ffffff;
  display: inline-block;
}

/* Keep the separator small and inline */
.contact-line .sep {
  display: inline-block;
  margin: 0 6px;
  color: rgba(255,255,255,0.9);
}

/* Make links inherit and be fully tappable */
.contact-line a {
  color: inherit;
  text-decoration: underline;
  word-break: break-word;
}

/* Defensive: override any previous rules that forced small widths */
footer.contact-footer .footer-text,
footer.contact-footer .footer-logo {
  max-width: none !important;
}

/* If you want side-by-side on larger screens, add a media query:
   Uncomment and adjust the breakpoint if desired */
/*
@media (min-width: 800px) {
  footer.contact-footer .footer-content {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
  }
  .footer-logo { margin-right: 12px; width: 48px; }
  .contact-line { display: inline-block; }
}
*/

/* Small screen tweak */
@media (max-width: 480px) {
  .footer-logo { width: 100px; }
  .contact-line { font-size: 12px; }
}
/* ---------- FORCE STACK: logo above text (highest specificity) ---------- */

/* Ensure footer container itself is block-level and not a flex item forcing row layout */
html body footer.contact-footer {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
}

/* Target the .footer-content inside that footer and force vertical stacking */
html body footer.contact-footer .footer-content {
  display: flex !important;
  flex-direction: column !important;   /* stack items vertically */
  align-items: center !important;      /* center horizontally */
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Make sure each direct child becomes a full-width block so nothing sits inline */
html body footer.contact-footer .footer-content > * {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Ensure logo is at top and sized correctly */
html body footer.contact-footer .footer-logo {
  display: block !important;
  width: 200px !important;
  height: auto !important;
  margin: 0 auto 8px !important;
  object-fit: contain !important;
  order: 0 !important;
}

/* Force footer text below the logo */
html body footer.contact-footer .footer-text {
  display: block !important;
  width: 100% !important;
  order: 1 !important;
}

/* Contact line inline but centered */
html body footer.contact-footer .contact-line {
  display: inline-block !important;
  margin: 0 auto !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: inherit !important;
}

/* Defensive: remove floats, flex, inline-block from nested anchors/spans */
html body footer.contact-footer .contact-line a,
html body footer.contact-footer .contact-line .sep {
  display: inline !important;
  float: none !important;
  width: auto !important;
}

/* Small screens */
@media (max-width: 480px) {
  html body footer.contact-footer .footer-logo { width: 44px !important; }
  html body footer.contact-footer .contact-line { font-size: 12px !important; }
}
/* ===== Normalize and vertically center checkbox & radio rows ===== */

/* consistent size & baseline for inputs */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto; /* keep native look but normalize browser differences */
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 0;                /* remove browser default margin */
  vertical-align: middle;  /* baseline fallback */
  box-sizing: border-box;
  flex: 0 0 auto;
}

/* preferred row layout for each option */
.radio-group,
.checkbox-group,
.checkbox-row,
.radio-row {
  display: flex;
  flex-direction: column; /* keep group stacked if multiple rows; each label is a row */
  gap: 8px;
}

/* make each label a row that centers its checkbox/radio with the text */
.radio-group label,
.checkbox-group label,
label.option,
.label-row {
  display: inline-flex;    /* inline so they wrap nicely, but behave like flex rows */
  align-items: center;     /* vertical center input + text */
  gap: 10px;               /* space between input and text */
  cursor: pointer;
  line-height: 1.2;        /* avoid extra height pushing control */
  margin: 0;               /* remove extra margins interfering with alignment */
  font-size: 15px;         /* explicit font-size stabilizes alignment */
}

/* If you put input and label as siblings (input + label),
   this ensures the input still lines up with the label text */
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  margin-right: 0;
}

/* Variant: if label wraps to multiple lines but you want the checkbox at the top-left */
.radio-group .wrap-top label,
.checkbox-group .wrap-top label {
  align-items: flex-start;
  gap: 8px;
}

/* Accessibility focus */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 3px solid rgba(0,122,255,0.15);
  outline-offset: 2px;
}

/* Defensive: override any library styles that set transform/scale on inputs */
input[type="checkbox"],
input[type="radio"] {
  transform: none !important;
}
