/* Global layout and overflow safety */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* prevent horizontal scrolling */
}
img, video {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    padding: 0;
}


.header {
    height: 130px;
    width: 100%;
    background-color: #5d5446;
    color: rgb(255, 247, 233);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 20px;
    padding-left: 20px;
    position: relative;
}
.header span {
    font-family: 'Tinos', serif;
    font-size: 40px;
}

/* Brand row container to hold icon + title side-by-side */
.header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-nav {
    position: absolute;
    right: 20px;
    bottom: 0;
    margin: 0;
    padding-right: 20px;
    padding-bottom: 10px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav li {
    position: relative;
    margin-left: 20px;
}

.header-nav a {
    color: inherit;
    text-decoration: none;
    padding: 8px 5px;
    display: block;
}

.header-nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
}

.header-nav .dropdown-content li {
    width: 100%;
}

.header-nav .dropdown:hover .dropdown-content {
    display: block;
}

.header img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    margin-right: 15px;
}

.introduction {
    height: 500px;
    width: 100%;
    background-color: #ff0000;
    background-image: url("/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgb(255, 247, 233);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 20px;
    padding-left: 20px;
    position: relative;
}
.intro-text {
    font-family: 'Tinos', serif;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

.intro-title {
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.intro-description {
    font-size: 20px;
    text-align: center;
    max-width: 600px;
}

.service-description {
    font-family: 'Tinos', serif;
    color: rgb(255, 247, 233);
    background-color: #ba966e;
    min-height: 400px; /* allow at least the original height */
    padding: 20px 0 40px; /* breathing room so extra rows are inside */
    box-sizing: border-box;
}
.service-icons img {
    background-color: rgb(101, 169, 175);
    padding: 10px;
    width: 90px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
    display: block;
    /* position: center; removed invalid */
    transition: background-color 0.3s ease;
    filter: brightness(1) invert(1);
}
.service-icons img:hover {
    background-color: rgb(157, 176, 180);
}

.book-now {
    color: rgb(255, 247, 233);
    background-color: #5d5446;
    height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.oval-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #c6863c;
    border: 1px solid rgb(255, 247, 233);
    border-radius: 50px;
    color: rgb(255, 247, 233);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.oval-button:hover {
    background-color: #CC8400;
}

.gallery {
    color: rgb(255, 247, 233);
    background-color: #7d5e3e;
    height: 700px;
    box-sizing: border-box;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
}

span {
    font-family: 'Tinos', serif;
    font-size: large;
}

.gallery img {
    width: 100%;           /* fill available width on narrow screens */
    max-width: 280px;      /* but never exceed intended card width */
    height: auto;          /* maintain aspect ratio */
    object-fit: cover;
    border-radius: 6px;
    display: block;
    flex: 0 0 auto; /* do not shrink */
}
/* Responsive adjustments to prevent header title overlap with nav */
@media (max-width: 1024px) {
  .header span { font-size: 34px; }
}
@media (max-width: 860px) {
  .header span { font-size: 28px; }
}
@media (max-width: 720px) {
  .header span { font-size: 26px; } /* larger title on mobile */
}
@media (max-width: 560px) {
  .header span { font-size: 24px; } /* larger than before */
}
@media (max-width: 420px) {
  .header span { font-size: 22px; } /* larger than before */
}

/* Mobile/tablet header layout: brand row on first line (icon + title), nav full width below */
@media (max-width: 1024px) {
  .header {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding: 12px 12px;
    row-gap: 6px;
  }
  .header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 100%;
  }
  .header .brand img {
    max-height: 32px;
    width: auto;
    flex: 0 0 auto;
  }
  .header .brand span {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(18px, 4.2vw, 28px);
  }
  .header-nav {
    order: 2;
    position: static !important;
    width: 100%;
    padding: 6px 0 0 0;
  }
  .header-nav ul {
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: flex-start;
  }
}