/* =========================================================
   Project design tokens
   ========================================================= */
:root {
    /* colors */
    --brand: #3f5058;
    --brand-dark: #334149;
    --cta-btn-color: #ffc107;
    --cta-btn-hover-color: #FFCA2D;
    --cta-btn-text: #000000;

    --text: #646464;
    --muted: #999999;
    --text-white: #ffffff;
    --border: #dee2e6;
    --bg: #ffffff;
    --bg-soft: #f5f5f5;

    --link: #ffc107;
    --link-hover: #FFCA2D;

    /* fonts */
    --font-size-body: 1.125rem;
    --font-size-small: 0.95rem;
    --font-size-nav: 1.2rem;
    --font-size-h1: 3rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.125rem;

    /* heights, margins, paddings */
    --line-height-body: 1.7;
    --line-height-heading: 1.2;
    --navbar-height: 56px;


}

/* =========================================================
   Global base styles
   ========================================================= */
body {
    color: var(--text);
    font-family: "Source Sans Pro", sans-serif;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    background: var(--bg-soft);
    overflow-x: hidden;
}

body.sub {
    padding-top: var(--navbar-height);
}

body.sub h3{
    padding-top: 2rem;
}

body.sub h2{
    text-align: left;
}


h1,
h2,
h3,
h4 {
    line-height: var(--line-height-heading);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 300;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 300;
}

h4 {
    font-size: var(--font-size-h4);
}

img {
    max-width: 100%;
    height: auto;
}

main {
    display: block;
}

/* =========================================================
   Buttons
   ========================================================= */
.cta-primary-button {
    background-color: var(--cta-btn-color);
    color: var(--cta-btn-text);
    line-height: 2;
}

.cta-primary-button:hover {
    background-color: var(--cta-btn-hover-color);
    color: var(--cta-btn-text);
}

/* =========================================================
   Links
   ========================================================= */
a {
    color: var(--link);
}

a:hover,
a:focus {
    color: var(--link-hover);
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
    transition: all 0.5s;
}

.navbar-scrolled, body.sub .navbar{
    background-color: var(--brand);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.navbar .navbar-nav{
    font-size: var(--font-size-nav);
}

.navbar .navbar-brand {
    color: #ffffff;
    font-size: var(--font-size-nav);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.navbar .nav-link::after {
    content: "";
    opacity: 0;
    transition: all 0.2s;
    height: 2px;
    width: 100%;
    background-color: var(--cta-btn-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: #ffffff;
}

.navbar .nav-link:hover::after {
    opacity: 1;
}


/* =========================================================
   Hero
   =========================================================
*/

.hero{
    text-align: center;
    min-height: 40rem;
    position: relative;
    overflow: hidden;
}

.hero-image{
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop instead of stretch */
    filter:brightness(0.75);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 40rem;
    padding: 4rem 1.5rem;
    color: #ffffff;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: 2.25em;
    font-weight: 300;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-text {
    margin-bottom: 2rem;
    font-size: 1.7rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-trustline {
    margin: 1.25em 0 1.75em 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

/* =========================================================
   generic content elements
   =========================================================
*/
.page-content {
    padding-bottom: 3rem;
}

.page-content h2{
    text-align: center;
}

.content-card{
    padding: 3rem;
    background-color: var(--bg);
}

.lead-text {
    font-size: 1.25em;
    font-style: italic;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 300;
    text-align: center;
}

.gallery-item {
    display: flex;
    transition: transform 0.2s ease;
    margin-bottom: 1.2rem;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-image-wrap:hover .gallery-image {
    transform: scale(1.08);
}

.gallery-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.gallery-image-wrap:hover::after {
    background: rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}

/* =========================================================
   Home Intro  section
   =========================================================
*/
.intro{
    margin: -5rem auto 0;
}

/* =========================================================
   Home Living Section
   =========================================================
*/

.highlights, .features{
    margin-top: 1.9rem;
}

.highlights-item, .features-item{
   padding-bottom: 1.5rem;
}

.living-cta, .activities-cta, .location-cta, .booking-cta{
    text-align: center;
    margin-top: 2.5rem;
}

.booking, .booking .lead-text {
    color: var(--text-white);
}

.booking .content-card{
    background-color: var(--brand)
}

.booking-benefits{
    text-align: center;
}

.booking-benefits ul{
    display: inline-block;
    text-align: left;
}

.booking-questions{
    text-align: center;
    margin-top: 2rem;
}

/* =========================================================
   Single pages
   ========================================================= */
.subpage-title{
    text-align: center !important;
}

.sub-image-container{
    margin-bottom: 2rem;
}

/* ==========================================================================
   Split content section shortcode
   --------------------------------------------------------------------------
   Reusable text + image block for sub-pages.
   ========================================================================== */

.split-section {
    margin: 1.5em 0;
}

.split-section-content {
    text-align: left;
    padding: 0;
}

/* =========================================================
   Footer
   ========================================================= */
footer p,
footer li,
footer a {
    font-size: 0.95rem;
}
