* {
    scroll-behavior: smooth;
}

:root {
    --cs-primary: #9A7753;
    --cs-primary-light: #B79A79;
    --cs-dark: #111111;
    --cs-text: #5D5D5D;
    --cs-off-white: #FAF8F5;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--cs-text);
    line-height: 1.65;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
.font-josefin,
.font-playfair {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.01em;
}

.font-poppins {
    font-family: 'Lato', sans-serif;
}

p {
    line-height: 1.75;
}

/* Ensure legibility on dark image/color sections */
.hero-bg h1,
.hero-bg h2,
.hero-bg h3,
.hero-bg p,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark p,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p,
.testimonial-bg h1,
.testimonial-bg h2,
.testimonial-bg h3,
.testimonial-bg p {
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, #9A7753 0%, #B79A79 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: #111111;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    border: 1px solid #111111;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.24);
}

.btn-outline {
    border: 2px solid #9A7753;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    background: #9A7753;
    color: white;
    transform: translateY(-2px);
}

.nav-link {
    position: relative;
    letter-spacing: 0.16em;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #9A7753;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu {
    width: min(20rem, 100vw);
    max-width: 100vw;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    background-color: #ffffff;
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
    isolation: isolate;
}

.mobile-menu.active {
    transform: translateX(0);
    box-shadow: -9999px 0 0 9999px rgba(0, 0, 0, 0.45);
}

#mobile-menu > div {
    height: 100%;
    background: #ffffff;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

.input-field {
    transition: all 0.3s ease;
    border: 2px solid #E5E7EB;
}

.input-field:focus {
    border-color: #9A7753;
    box-shadow: 0 0 0 3px rgba(154, 119, 83, 0.15);
    outline: none;
}

/* Section rhythm closer to the original site */
.py-24 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}

.pt-32 {
    padding-top: 7.5rem !important;
}

.pb-16 {
    padding-bottom: 4.5rem !important;
}
