
/* =========================
   ROYAL HAVEN HOTEL
   LUXURY WEBSITE STYLING
========================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* GENERAL SETTINGS */

:root {
    --gold: #c9a45c;
    --light-gold: #e8d2a0;
    --black: #10100e;
    --dark: #191915;
    --cream: #f7f3eb;
    --white: #ffffff;
    --text: #55534c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--black);
    line-height: 1.7;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* MEDIA: images and embeds never exceed their container */

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

iframe,
embed,
object {
    max-width: 100%;
}

/* Video embeds keep their shape while scaling */
.responsive-embed,
iframe[src*="youtube.com"],
iframe[src*="youtube-nocookie.com"],
iframe[src*="player.vimeo.com"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.responsive-embed iframe,
.responsive-embed video {
    width: 100%;
    height: 100%;
    border: 0;
}

.section {
    padding: 100px 8%;
}

/* NAVIGATION */

.header {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 20px rgba(0,0,0,0.15);
}

.navbar {
    min-height: 85px;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    white-space: nowrap;
}

.logo span {
    color: var(--gold);
}

/* On desktop the menu wrapper is invisible to layout,
   so the links and button sit directly in the navbar. */
.nav-menu {
    display: contents;
}

.nav-toggle {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: #eee;
    font-size: 13px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-button {
    color: var(--black);
    background: var(--gold);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    transition: 0.3s;
}

.nav-button:hover {
    background: var(--light-gold);
    transform: translateY(-3px);
}

/* HERO SECTION */

.hero {
    min-height: 650px;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(201,164,92,0.22), transparent 45%),
        linear-gradient(120deg, #10100e, #252117 65%, #17140f);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 10% 120px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(201,164,92,0.3);
    border-radius: 50%;
    right: 8%;
    top: 15%;
    box-shadow:
        0 0 0 35px rgba(201,164,92,0.04),
        0 0 0 75px rgba(201,164,92,0.03);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    animation: appear 1.2s ease;
}

.subtitle {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 7vw, 85px);
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--gold);
}

.hero-text {
    color: #d4d0c5;
    max-width: 520px;
    font-size: 14px;
    margin-bottom: 35px;
}

.primary-button {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 15px 30px;
    border: 1px solid var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: 0.3s ease;
}

.primary-button:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-4px);
}

.hero-bottom {
    position: absolute;
    bottom: 25px;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #c7bfae;
    font-size: 11px;
    letter-spacing: 1px;
}

/* SECTION HEADINGS */

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 53px);
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-heading > p:not(.subtitle) {
    color: var(--text);
    font-size: 14px;
}

/* ABOUT SECTION */

.about {
    background: var(--cream);
}

.about-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.about-content p {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 22px;
}

.text-link {
    display: inline-block;
    color: #9a763a;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.3s;
}

.text-link:hover {
    letter-spacing: 1px;
}

/* ROOMS SECTION */

.rooms {
    background: #eee8dc;
}

.room-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: auto;
}

.room-card {
    background: var(--white);
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: 0.4s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.13);
}

.room-art {
    height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--light-gold);
    border-bottom: 3px solid var(--gold);
    overflow: hidden;
}

.room-art::before,
.room-art::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(232,210,160,0.3);
    border-radius: 50%;
}

.room-art::before {
    width: 220px;
    height: 220px;
}

.room-art::after {
    width: 160px;
    height: 160px;
}

.room-art span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 65px;
    z-index: 1;
}

.room-art p {
    z-index: 1;
    font-size: 9px;
    letter-spacing: 3px;
}

.standard-art {
    background: linear-gradient(135deg, #39352a, #756346);
}

.deluxe-art {
    background: linear-gradient(135deg, #172a28, #637b68);
}

.suite-art {
    background: linear-gradient(135deg, #29212a, #765c70);
}

.room-info {
    padding: 28px;
}

.room-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 29px;
    margin-bottom: 10px;
}

.room-info p {
    font-size: 12px;
    color: var(--text);
    min-height: 55px;
}

.room-info h4 {
    color: #a17c3d;
    font-size: 21px;
    margin: 20px 0;
}

.room-info small {
    color: #777;
    font-size: 11px;
    font-weight: 400;
}

.book-button {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--black);
    font-size: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.book-button:hover {
    background: var(--gold);
    color: var(--black);
}

/* SERVICES SECTION */

.services {
    background: var(--black);
    color: var(--white);
}

.services .section-heading h2 {
    color: var(--white);
}

.service-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    border: 1px solid rgba(201,164,92,0.3);
    padding: 30px 22px;
    transition: 0.3s;
}

.service-card:hover {
    background: #252117;
    border-color: var(--gold);
    transform: translateY(-7px);
}

.service-card span {
    color: var(--gold);
    font-size: 13px;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    margin: 15px 0;
}

.service-card p {
    color: #c2bfb6;
    font-size: 12px;
}

/* BOOKING SECTION */

.booking {
    background: var(--cream);
}

.booking-form {
    background: var(--white);
    max-width: 750px;
    margin: auto;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd7ca;
    outline: none;
    background: #fcfaf6;
    font-family: inherit;
    font-size: 12px;
    border-radius: 3px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,164,92,0.12);
}

.price-display {
    grid-column: 1 / -1;
    padding: 20px;
    background: #f4efe5;
    border-left: 4px solid var(--gold);
}

.price-display p {
    font-size: 12px;
    color: var(--text);
}

.price-display h3 {
    color: #9a763a;
    font-size: 27px;
}

.submit-button {
    grid-column: 1 / -1;
    width: 100%;
    border: none;
}

#booking-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 13px;
    color: #477447;
}

/* CONTACT SECTION */

.contact {
    background: #eae3d6;
}

.contact-content {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-content > div {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.contact-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-content p {
    font-size: 12px;
    color: var(--text);
    overflow-wrap: anywhere;
}

/* FOOTER */

.footer {
    background: var(--black);
    color: #ccc;
    text-align: center;
    padding: 50px 20px;
}

.footer .logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer p {
    font-size: 12px;
    margin: 8px 0;
}

.copyright {
    color: #888;
    margin-top: 25px !important;
}

.back-to-top {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    margin-top: 20px;
}

/* ANIMATION */

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET + PHONE (everything at 950px and below)
   Desktop styles above this point are untouched. */

@media (max-width: 950px) {

    /* Safety net against sideways scrolling */
    html {
        overflow-x: hidden;
    }

    body {
        font-size: 16px;
        overflow-wrap: break-word;
    }

    /* Keep section headings visible below the sticky header */
    section[id] {
        scroll-margin-top: 72px;
    }

    /* ---------- Navigation ---------- */

    .navbar {
        position: relative;
        min-height: 72px;
        padding: 12px 6%;
    }

    .logo {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* Without JavaScript, links stay visible and wrap */
    html:not(.js) .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    html:not(.js) .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px 18px;
    }

    html:not(.js) .nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 6px;
        font-size: 16px;
    }

    html:not(.js) .nav-button {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 15px;
    }

    /* Menu button */
    .js .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 1px solid rgba(201,164,92,0.5);
        border-radius: 3px;
    }

    .nav-toggle:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 3px;
    }

    .nav-toggle-bar {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--gold);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Collapsible menu panel */
    .js .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 18px;
        padding: 8px 6% 24px;
        background: var(--black);
        border-top: 1px solid rgba(201,164,92,0.25);
        box-shadow: 0 12px 24px rgba(0,0,0,0.3);
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
    }

    .js .nav-menu.is-open {
        display: flex;
    }

    .js .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .js .nav-links a {
        display: flex;
        align-items: center;
        min-height: 48px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .js .nav-button {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 48px;
        font-size: 15px;
    }

    .js .nav-button:hover {
        transform: none;
    }

    /* ---------- Readable text ---------- */

    .subtitle {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .hero-text,
    .section-heading > p:not(.subtitle),
    .about-content p,
    .room-info p,
    .room-info small,
    .service-card p,
    .form-group label,
    .price-display p,
    #booking-message,
    .contact-content p,
    .footer p {
        font-size: 16px;
    }

    .hero-bottom {
        font-size: 13px;
    }

    .room-art p {
        font-size: 12px;
    }

    .service-card span,
    .copyright {
        font-size: 14px;
    }

    /* ---------- Tap targets (44px minimum) ---------- */

    .primary-button,
    .book-button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 48px;
        font-size: 16px;
    }

    .book-button {
        display: flex;
    }

    .text-link,
    .back-to-top {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 16px;
    }

    .back-to-top {
        padding: 0 12px;
    }

    .footer .logo {
        display: inline-flex;
    }

    /* ---------- Layout ---------- */

    .room-container,
    .service-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* ---------- Booking form ---------- */

    .booking-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-group {
        min-width: 0;
    }

    .form-group input,
    .form-group select {
        display: block;
        min-width: 0;
        max-width: 100%;
        min-height: 48px;
        /* 16px stops iOS from zooming in on focus */
        font-size: 16px;
    }
}

/* PHONE RESPONSIVENESS */

@media (max-width: 600px) {

    .section {
        padding: 70px 6%;
    }

    .navbar {
        padding: 12px 5%;
    }

    .logo {
        font-size: 24px;
        letter-spacing: 1.5px;
    }

    .js .nav-menu {
        padding: 8px 5% 24px;
    }

    .hero {
        min-height: 600px;
        padding: 80px 7% 140px;
    }

    .hero::before {
        width: 230px;
        height: 230px;
        right: -100px;
        top: 30%;
    }

    .hero h1 {
        font-size: clamp(40px, 13vw, 49px);
    }

    .hero-bottom {
        left: 7%;
        right: 7%;
        flex-direction: column;
        gap: 4px;
    }

    .room-container,
    .service-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .room-art {
        height: 200px;
    }

    .room-info {
        padding: 24px 20px;
    }

    .room-info p {
        min-height: 0;
    }

    .booking-form {
        padding: 25px 18px;
        grid-template-columns: minmax(0, 1fr);
    }

    .price-display,
    .submit-button,
    #booking-message {
        grid-column: 1;
    }

    .contact-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-heading h2 {
        font-size: clamp(32px, 10vw, 37px);
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
