html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

section {
    min-height: 100vh;
    width: 100%;

    background-color: var(--main-white);
    margin: 0;
    padding: 0;
}

:root {
    --main-yellow: #ffff10;
    --main-white: #faf8f8;
    --off-white: #f5f0f0;
    --header-main: #333;
    --text-main: #535353;

    --fs-h1: clamp(2.4rem, 6vw, 3.5rem);
    --fs-h2: clamp(2rem, 4vw, 2.4rem);
    --fs-h3: clamp(1.6rem, 4vw, 1.8rem);
    --fs-h4: clamp(1.3rem, 4vw, 1.6rem);
    --fs-p: clamp(1rem, 2vw, 1.2rem);

    --ff-header: 'fraunces', serif;
    --ff-body: 'inter', sans-serif;
}

section:nth-child(odd) {
    background-color: var(--main-white);
}
section:nth-child(even) {
    background-color: var(--off-white);
}

h2 {
    font-size: var(--fs-h2);
    font-family: var(--ff-header);
    font-weight: 700;
    color: var(--header-main);
    text-align: center;
    padding: 75px 0;
    margin: 0 auto !important;
}

h3 {
    font-size: var(--fs-h3);
    font-family: var(--ff-header);
    color: var(--header-main);
    margin: 0;
}

p {
    font-size: var(--fs-p);
    font-family: var(--ff-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

li {
    font-size: var(--ff-body);
    font-family: var(--ff-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

#tipsy .container, #broadway .container, .footer-container, .container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    margin: 0 auto;
}

#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

#hero p {
    max-width: none;
    text-align: left;
    margin-bottom: 50px;
}

#hero h1 {
    font-size: var(--fs-h1);
    font-family: var(--ff-header);
    font-weight: bold;
    color: var(--header-main);
    max-width: 90%;
    margin: 0;
}

#hero p {
    font-size: var(--fs-p);
    font-family: var(--ff-body);
    color: var(--text-main);
    max-width: 80%;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 50px;
    line-height: 1.4;
}

#hero .mobile-only {
    display: none;
}

#gallery {
    padding-bottom: 75px;
    background-color: var(--off-white);
}

#gallery h2 {
    padding-bottom: 0 !important;
}

#gallery p {
    text-align: center;
    padding: 0 !important;
    max-width: 950px;
    margin: 0 auto;
}

#gallery p.mobile-only {
    display: none;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    margin: 0 auto !important;
    gap: 25px;
}

.gallery-container .gallery-item {
    width: 100%;
    max-width: 550px;
    min-height: auto;
    aspect-ratio: 16 / 9;

    border-radius: 7px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;

    transition: all 0.3s ease;
    position: relative;

    display: block;
    line-height: 0;
}

.gallery-item img {
    display: block;

    width: 100%;
    max-width: 550px;
    height: 100%;

    border-radius: 7px;
    object-fit: cover;

    position: relative;
    z-index: 1;
}

.gallery-item:nth-child(odd):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(60% - 12.5px);
}

.gallery-item:nth-child(even):last-child {
    grid-column: auto;
    justify-self: start;
}

.gallery-item .soon {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    height: 100%;
    width: 100%;
    max-width: 550px;

    background-color: var(--main-white);
    font-size: 1.4rem;
    font-family: var(--ff-header);
    border-radius: 7px;
}

.overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(rgba(0, 0, 0, 0.8));
    border-radius: 7px;
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.gallery-item:hover .overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.overlay h3 {
    color: var(--main-white);
}

#tipsy, #broadway {
    padding-bottom: 75px !important;
}

.project-image {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.project-image img {
    max-width: 850px;
    height: auto;
    border-radius: 7px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#final {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#final .btn-primary {
    max-width: fit-content;
    margin: 0 auto;
}

.lead {
    text-align: center;
    margin: 0 auto;
    padding-top: 20px !important;
    padding-bottom: 75px;
}

#booking {
    padding-bottom: 75px;
}

#booking .container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.field-group {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

label {
    display: block;
    font-family: var(--ff-body);
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: var(--ff-body);
    resize: vertical;
    display: block;
}

select {
    width: 100%;
    margin: 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: var(--ff-body);
    font-size: 1rem;
    color: #333;

    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    border-color: var(--main-yellow);
    background-color: #fff;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    accent-color: var(--main-yellow);
    transform: scale(1.2);
}

#booking-final {
    margin: 0;
    padding: 0;
}

.form-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: left;
}

.secure-note {
    font-family: var(--ff-body);
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin: 30px auto 0 auto;
    padding-bottom: 75px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: var(--ff-body);
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #f1f10e;
    background-color: #fff;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    transition: opacity 0.4s ease, visibility 0.4s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    transform: translateY(20px) scale(0.95); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
}

.popup-content button {
    background-color: var(--main-yellow);
    box-shadow: 5px 10px 20px rgba(0,0,0,0.1);
    border-radius: 50px;
    border: none;
    font-size: 24px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.popup-content button:hover {
    transform: scale(1.15) rotate(-32deg);
    filter: brightness(90%);
}

.popup-content h3 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.popup-content p {
    font-size: 1rem;
    font-family: var(--ff-body);
}

footer {
    min-height: 400px;
    background-color: #1a1919;
    padding: 60px 0 10px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer .intro {
    display: flex;
    flex-direction: column;

    max-width: 550px;
    gap: 10px;
    margin-top: -75px;
}

footer .intro h2 {
    padding-bottom: 0;
    display: flex;
    margin-right: auto;
    width: 100%;
}

footer .intro h2 img {
    max-width: 260px;
    margin-left: -50px;
}

footer .intro p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-family: var(--ff-body);
    color: var(--main-white);
    margin: -50px 0 0 0;
    padding: 0;
}

footer .footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 90% !important;
}

.footer-container .footer-links {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.footer-links .footer-col {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.footer-col h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem) !important;
    font-family: var(--ff-header);
    color: var(--main-yellow);

    margin: 0 0 10px 0;
    padding: 0;
    text-align: center;
}

.footer-col ul {
    display: flex !important;
    flex-direction: column;

    gap: 12px !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    text-align: center;
}

.footer-col ul li a {
    font-family: var(--ff-body);
    color: #aeaeae;

    margin: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.footer-col ul li a:hover {
    color: var(--main-white);
}

footer .footer-bottom {
    margin: 0;
    padding: 30px 0;
    width: 80%;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;

    border-top: 1px solid #4e4e4e;
}

.footer-bottom p {
    font-size: 0.9rem;
    font-family: var(--ff-body);
    color: #676767;
}