/* =============================================================================
   Site Footer — 4-Column Navy Design
   ============================================================================= */

.site-footer {
    position: relative;
    background: #0a1f3d;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Social Buttons (Top Left Floating)
   -------------------------------------------------------------------------- */

.site-footer__social {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: auto;
}

.site-footer__heading--contact {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.site-footer__social-link svg {
    width: 100%;
    height: 100%;
    display: block;
}

.site-footer__social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.site-footer__social-link--whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.site-footer__social-link--phone:hover {
    background: #4fb8f7;
    border-color: #4fb8f7;
}

.site-footer__social-link--facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

/* --------------------------------------------------------------------------
   Main Content Container
   -------------------------------------------------------------------------- */

.site-footer__main {
    position: relative;
    z-index: 1;
    padding: 60px 3% 48px;
    overflow-x: hidden;
}

.site-footer__container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 80px;
    row-gap: 0;
    width: 100%;
    margin: 0;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Columns
   -------------------------------------------------------------------------- */

.site-footer__column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* --------------------------------------------------------------------------
   Headings
   -------------------------------------------------------------------------- */

.site-footer__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: 0.04em;
}

.site-footer__heading svg {
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Column 1: About
   -------------------------------------------------------------------------- */

.site-footer__logo {
    margin: 0 0 16px;
    display: block;
    text-align: right;
    width: 100%;
}

.site-footer__wordmark {
    font-size: 32px !important;
    color: #ffffff !important;
    transform: none !important;
    position: static !important;
    margin: 0 !important;
    display: inline-block;
    line-height: 1.1;
}

.site-footer__wordmark-img {
    height: 80px;
    width: auto;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.site-footer__logo .brand-wordmark {
    display: inline-block;
    width: auto;
    height: 90px;
    color: #fff;
}

.site-footer__about {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    color: #fff;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Column 2: Opening Hours
   -------------------------------------------------------------------------- */

.site-footer__hours-block {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 8px;
}

.site-footer__hours-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.site-footer__hours-time {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-teal, #2fc7b6);
    margin: 0;
    direction: ltr;
    text-align: right;
}

.site-footer__hours-note {
    flex-basis: 100%;
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   Column 3: Contact & Form
   -------------------------------------------------------------------------- */

.site-footer__address {
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

.site-footer__address p {
    margin: 0;
}

.site-footer__contact-info {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.8;
}

.site-footer__contact-info p {
    margin: 0;
}

.site-footer__contact-info a {
    color: #4fb8f7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__contact-info a:hover {
    color: #7fcdff;
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */

.site-footer__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.site-footer__form-field {
    position: relative;
}

.site-footer__form-field--inline {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.site-footer__form-field--inline .site-footer__textarea {
    flex: 1;
    resize: none;
    min-height: unset;
    height: auto;
}

.site-footer__input,
.site-footer__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease;
    resize: none;
    box-sizing: border-box;
}

.site-footer__input::placeholder,
.site-footer__textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__input:focus,
.site-footer__textarea:focus {
    border-color: #f36827;
}

.site-footer__submit {
    align-self: flex-end;
    margin-bottom: -8px;
    padding: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer__submit-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.site-footer__submit:hover {
    transform: translateY(-2px);
    opacity: 0.8;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

.site-footer__column--map {
    gap: 16px;
}

.site-footer__map-note {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.site-footer__map {
    margin-top: 4px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(5, 10, 30, 0.4);
}

.site-footer__map iframe {
    display: block;
    width: 100%;
    height: 220px;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

.site-footer__map-nav {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    direction: rtl;
}

.site-footer__map-link {
    font-size: 0.95rem;
    color: #4fb8f7;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-footer__map-link::before {
    content: '\2190';
    font-size: 1.1rem;
}

.site-footer__map-link:hover {
    color: #7fcdff;
}

/* --------------------------------------------------------------------------
   Dividers
   -------------------------------------------------------------------------- */

.site-footer__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    margin: 8px 0;
}

/* --------------------------------------------------------------------------
   ECG Waveform Decoration
   -------------------------------------------------------------------------- */

.site-footer__ecg {
    position: relative;
    height: 40px;
    overflow: hidden;
    opacity: 0.6;
}

.site-footer__ecg-svg {
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   Navigation Links Row
   -------------------------------------------------------------------------- */

.site-footer__nav {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.site-footer__nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) and (min-width: 481px) {
  .site-footer__nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
    text-align: right;
  }
}

.site-footer__nav-link {
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__nav-link:hover {
    color: #fff;
}

.site-footer__nav-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.site-footer__nav-arrow {
    color: #f36827;
    font-size: 1.25rem;
    margin-left: 2px;
}

/* --------------------------------------------------------------------------
   Bottom Bar / Copyright
   -------------------------------------------------------------------------- */

.site-footer__bottom {
    background: #051226;
    padding: 16px 20px;
    text-align: center;
}

.site-footer__copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.site-footer__copyright a {
    color: #4fb8f7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__copyright a:hover {
    color: #7fcdff;
}

/* --------------------------------------------------------------------------
    Responsive - Comprehensive Breakpoints
    -------------------------------------------------------------------------- */

/* Large Desktop (1441px+) */
@media (min-width: 1441px) {
  .site-footer__main {
    padding: 80px 4% 60px;
  }

  .site-footer__heading {
    font-size: 2.4rem;
  }

  .site-footer__logo .brand-wordmark {
    height: 100px;
  }

  .site-footer__map iframe {
    height: 260px;
  }
}

/* Desktop (1201px - 1440px) */
@media (max-width: 1440px) and (min-width: 1201px) {
  .site-footer__main {
    padding: 60px 3% 50px;
  }
}

/* Tablet Large (1025px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
  .site-footer__container {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 40px;
  }

  .site-footer__heading {
    font-size: 1.9rem;
  }

  .site-footer__map iframe {
    height: 200px;
  }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-footer__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: 40px;
  }

  .site-footer__main {
    padding: 50px 3% 40px;
  }

  .site-footer__heading {
    font-size: 1.8rem;
  }

  .site-footer__map iframe {
    height: 180px;
  }
}

/* Mobile Tablet (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  .site-footer__container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer__main {
    padding: 40px 4% 36px;
  }

  .site-footer__heading {
    font-size: 1.6rem;
  }

  .site-footer__column {
    align-items: flex-end;
    text-align: right;
  }

  .site-footer__hours-block {
    display: grid;
    grid-template-columns: 1fr;
    text-align: right;
    gap: 6px;
    width: 100%;
    max-width: 300px;
  }

  .site-footer__map iframe {
    height: 160px;
  }

  .site-footer__nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
    text-align: center;
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .site-footer__main {
    padding: 30px 4% 24px;
  }

  .site-footer__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer__heading {
    font-size: 1.4rem;
    gap: 6px;
  }

  .site-footer__heading svg {
    width: 24px;
    height: 24px;
  }

  .site-footer__logo .brand-wordmark {
    height: 70px;
  }

  .site-footer__about {
    font-size: 1.05rem;
  }

  .site-footer__hours-title {
    font-size: 1rem;
  }

  .site-footer__hours-time {
    font-size: 1.1rem;
  }

  .site-footer__hours-note {
    font-size: 0.95rem;
  }

  .site-footer__address {
    font-size: 1rem;
  }

  .site-footer__contact-info {
    font-size: 1rem;
  }

  .site-footer__input,
  .site-footer__textarea {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .site-footer__submit {
    font-size: 0.85rem;
    padding: 6px 18px;
  }

  .site-footer__map-note {
    font-size: 0.95rem;
  }

  .site-footer__map iframe {
    height: 140px;
  }

  .site-footer__map-link {
    font-size: 0.9rem;
  }

  .site-footer__social-link {
    width: 44px;
    height: 44px;
    padding: 8px;
  }

  .site-footer__nav {
    padding: 16px 10px;
  }

  .site-footer__nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
    text-align: center;
  }

  .site-footer__nav-link {
    font-size: 1rem;
    display: inline-block;
  }

  .site-footer__copyright {
    font-size: 0.75rem;
  }
}

/* Original responsive media queries for reference */
@media (max-width: 1100px) {
  .site-footer__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .site-footer__column--contact {
    grid-column: span 1;
  }

  .site-footer__column--map {
    grid-column: span 1;
  }

  .site-footer__main {
    padding-top: 30px;
  }
}

@media (max-width: 600px) {
  .site-footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer__column {
    align-items: center;
    text-align: center;
  }

  .site-footer__column--contact {
    grid-column: auto;
  }

  .site-footer__hours-block {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 6px;
    width: 100%;
    max-width: 300px;
  }

  .site-footer__hours-time {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-teal);
  }

  .site-footer__hours-note {
    font-size: 1.05rem;
  }

  .site-footer__nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    text-align: center;
  }

  .site-footer__nav-link {
    display: inline-block;
  }

  .site-footer__nav-list li:has(> .site-footer__nav-sep) {
    display: none;
  }

  .site-footer__nav-sep {
    display: none;
  }

  .site-footer__social {
    justify-content: center;
  }
}

/* -----------------------------------------------------------------------
   Hours column: 3 blocks side-by-side in one row on all mobile screens
   (overrides the stacked / centered rules above for ≤768px)
   ----------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-footer__column--hours {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    text-align: center;
    justify-content: center;
  }

  /* Heading spans full width, sits above the row */
  .site-footer__column--hours .site-footer__heading {
    flex: 0 0 100%;
    margin-bottom: 14px;
    justify-content: center;
  }

  /* Center the SVG and text within the heading */
  .site-footer__column--hours .site-footer__heading svg {
    margin: 0;
  }

  /* Each hours block takes an equal share of the row */
  .site-footer__column--hours .site-footer__hours-block {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    text-align: center;
    max-width: none;
  }

  /* Vertical separator between blocks (replaces the <hr> dividers) */
  .site-footer__column--hours .site-footer__hours-block:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Hide the <hr> dividers — visual separation is now via border-left */
  .site-footer__column--hours .site-footer__divider {
    display: none;
  }

  /* Slightly smaller text so 3 columns fit comfortably */
  .site-footer__column--hours .site-footer__hours-title {
    font-size: 0.88rem;
    text-align: center;
    margin: 0;
  }

  .site-footer__column--hours .site-footer__hours-time {
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
  }

  .site-footer__column--hours .site-footer__hours-note {
    font-size: 0.82rem;
    text-align: center;
    margin: 0;
  }

  /* Ensure all paragraph content inside hours blocks is centered */
  .site-footer__column--hours .site-footer__hours-block p {
    text-align: center;
    margin: 0;
  }
}

/* -----------------------------------------------------------------------
   Footer contact form: full-width on mobile
   (column uses align-items: center which would otherwise shrink the form)
   ----------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-footer__column--contact .site-footer__form {
    width: 100%;
  }

  .site-footer__column--contact .site-footer__submit {
    align-self: flex-end;
    padding: 14px 40px;
    font-size: 1.1rem;
  }

  .site-footer__form-field--inline {
    gap: 12px;
    align-items: flex-end;
  }

  .site-footer__form-field--inline .site-footer__textarea {
    flex: 1;
    min-width: 0;
  }

  .site-footer__form-field--inline .site-footer__submit {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    min-width: unset;
  }
}

/* -----------------------------------------------------------------------
   Comprehensive mobile polish — all ≤768px
   Placed last so it wins over the earlier per-breakpoint rules above.
   ----------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* --- Column baseline ------------------------------------------------- */
  .site-footer__column {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* --- Headings --------------------------------------------------------- */
  .site-footer__heading {
    justify-content: center;
    font-size: 1.5rem;
  }

  /* --- About column ----------------------------------------------------- */
  .site-footer__logo {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-left: 0;
    width: 100%;
  }

  .site-footer__about {
    font-size: 1.05rem;
    text-align: center;
    max-width: 40ch;
  }

  /* --- Social icons ----------------------------------------------------- */
  .site-footer__social {
    justify-content: center;
    margin-right: 0;
  }

  .site-footer__social-link {
    width: 48px;
    height: 48px;
    padding: 10px;
  }

  /* --- Address & contact info ------------------------------------------- */
  .site-footer__address,
  .site-footer__contact-info {
    font-size: 1rem;
    text-align: center;
    line-height: 1.8;
  }

  /* --- Form inputs ------------------------------------------------------- */
  .site-footer__input,
  .site-footer__textarea {
    font-size: 1rem;
    padding: 12px 14px;
  }

  /* Icon-only submit button on mobile */
  .site-footer__submit {
    flex-shrink: 0 !important;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    font-size: 0 !important;
    align-self: center;
    background: none !important;
    border: none !important;
  }

  /* --- Map --------------------------------------------------------------- */
  .site-footer__map iframe {
    height: 180px;
  }

  .site-footer__map-note,
  .site-footer__map-link {
    text-align: center;
    font-size: 1rem;
  }

  /* --- Nav links --------------------------------------------------------- */
  .site-footer__nav {
    padding: 18px 16px;
  }

  .site-footer__nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    text-align: center;
    width: 100%;
  }

  .site-footer__nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;        /* touch-friendly tap target */
    padding: 6px 10px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  .site-footer__nav-link:hover,
  .site-footer__nav-link:active {
    background: rgba(255, 255, 255, 0.08);
  }

  /* Hide decorative separators — they don't work in a grid */
  .site-footer__nav-sep {
    display: none;
  }
}
