/* ============================================
   Fernrock Apartments — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #FAFAF7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- Typography --- */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    src: local('Playfair Display'), local('PlayfairDisplay'), url('https://fonts.gstatic.com/s/playfairdisplay/v30/nwpUtRegdPZeAOTT0YC5.woff2') format('woff2');
    font-display: swap;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    color: #0F2B1A;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #1B4332;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 4px;
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1B4332;
    margin-bottom: 16px;
}

.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: #1B4332;
}

/* --- Section Title --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    color: #0F2B1A;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 640px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: #1B4332;
    color: #fff;
    border-color: #1B4332;
}

.btn--primary:hover,
.btn--primary:focus {
    background: #2D6A4F;
    border-color: #2D6A4F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover,
.btn--ghost:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn--outline {
    background: transparent;
    color: #1B4332;
    border-color: #1B4332;
}

.btn--outline:hover,
.btn--outline:focus {
    background: #1B4332;
    color: #fff;
}

.btn--full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0F2B1A;
}

.navbar__logo-icon {
    color: #1B4332;
}

.navbar__logo-text {
    letter-spacing: -0.01em;
}

.navbar__nav {
    display: flex;
    align-items: center;
}

.navbar__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar__link {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.navbar__link:hover,
.navbar__link:focus {
    color: #1B4332;
    background: rgba(27, 67, 50, 0.06);
}

.navbar__link--cta {
    background: #1B4332;
    color: #fff !important;
    margin-left: 8px;
}

.navbar__link--cta:hover,
.navbar__link--cta:focus {
    background: #2D6A4F;
}

.navbar__menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #0F2B1A;
    border-radius: 6px;
    transition: background 0.2s;
}

.navbar__menu-btn:hover {
    background: rgba(27, 67, 50, 0.06);
}

/* --- Hero --- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: #FAFAF7;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    padding: 48px 0;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1B4332;
    margin-bottom: 24px;
}

.hero__eyebrow-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: #1B4332;
}

.hero__headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.1;
    color: #0F2B1A;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.hero__headline-accent {
    color: #1B4332;
    font-style: italic;
}

.hero__subheadline {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F2B1A;
}

.hero__stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #777;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: #d4d4cf;
}

.hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__image-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-accent {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    margin-left: -40px;
}

.hero__image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__badge {
    position: absolute;
    bottom: 40px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: #0F2B1A;
}

.hero__badge svg {
    color: #D4A843;
}

/* --- Value Props --- */
.value-props {
    padding: 96px 0;
    background: #fff;
}

.value-props__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.value-prop {
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #ecece6;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.value-prop:hover {
    border-color: #1B4332;
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.06);
}

.value-prop__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F7F0;
    border-radius: 10px;
    color: #1B4332;
    margin-bottom: 20px;
}

.value-prop__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0F2B1A;
}

.value-prop__text {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* --- Living --- */
.living {
    padding: 96px 0;
    background: #FAFAF7;
}

.living__header {
    margin-bottom: 56px;
}

.living__header .section-subtitle {
    margin-bottom: 0;
}

.living__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.living-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ecece6;
    transition: box-shadow 0.2s, transform 0.2s;
}

.living-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.living-card--featured {
    border-color: #1B4332;
}

.living-card__image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.living-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.living-card:hover .living-card__image img {
    transform: scale(1.03);
}

.living-card__featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1B4332;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
}

.living-card__image {
    position: relative;
}

.living-card__body {
    padding: 24px;
}

.living-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1B4332;
    background: #F0F7F0;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.living-card__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0F2B1A;
}

.living-card__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* --- Amenities --- */
.amenities {
    padding: 96px 0;
    background: #0F2B1A;
}

.amenities__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.amenities__title {
    color: #fff;
}

.amenities .section-eyebrow {
    color: #7FBFBF;
}

.amenities .section-eyebrow::before {
    background: #7FBFBF;
}

.amenities .section-subtitle {
    color: #a8c4b8;
    margin-bottom: 40px;
}

.amenities__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #d4e8d8;
}

.amenity-item svg {
    color: #7FBFBF;
    flex-shrink: 0;
}

.amenities__image-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.amenities__image-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: 4/3;
}

.amenities__image-stack img:first-child {
    grid-column: 1 / -1;
}

/* --- Neighborhood --- */
.neighborhood {
    padding: 96px 0;
    background: #FAFAF7;
}

.neighborhood__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.neighborhood__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.nh-highlight {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ecece6;
}

.nh-highlight__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1B4332;
    margin-bottom: 6px;
}

.nh-highlight__value {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.neighborhood__map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.neighborhood__map iframe {
    width: 100%;
    height: 520px;
    display: block;
}

/* --- Floor Plans --- */
.floorplans {
    padding: 96px 0;
    background: #fff;
}

.floorplans__header {
    text-align: center;
    margin-bottom: 56px;
}

.floorplans__header .section-subtitle {
    margin: 0 auto;
}

.floorplans__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.floorplan-card {
    border-radius: 12px;
    overflow: hidden;
    background: #FAFAF7;
    border: 1px solid #ecece6;
    transition: box-shadow 0.2s, transform 0.2s;
}

.floorplan-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.floorplan-card--featured {
    border-color: #1B4332;
    position: relative;
}

.floorplan-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1B4332;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 1;
}

.floorplan-card__visual {
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
}

.floorplan-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.floorplan-card:hover .floorplan-card__visual img {
    transform: scale(1.04);
}

.floorplan-card__info {
    padding: 20px;
}

.floorplan-card__name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0F2B1A;
}

.floorplan-card__details {
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
    line-height: 1.5;
}

.floorplan-card .btn--outline {
    font-size: 13px;
    padding: 10px 20px;
}

/* --- Contact --- */
.contact {
    padding: 96px 0;
    background: #F0F7F0;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__title {
    color: #0F2B1A;
}

.contact__desc {
    margin-bottom: 40px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-item svg {
    color: #1B4332;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1B4332;
    margin-bottom: 4px;
}

.contact-info-item__value {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.contact-info-item__value a {
    color: #1B4332;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-info-item__value a:hover {
    color: #2D6A4F;
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.contact-form__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: #0F2B1A;
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.contact-form__input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0d8;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    background: #FAFAF7;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.contact-form__input:focus {
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.contact-form__input::placeholder {
    color: #aaa;
}

.contact-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form__success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: #F0F7F0;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1B4332;
}

.contact-form__success svg {
    flex-shrink: 0;
    color: #1B4332;
}

/* --- Footer --- */
.footer {
    background: #0F2B1A;
    color: #a8c4b8;
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer__logo-icon {
    color: #7FBFBF;
}

.footer__tagline {
    font-size: 14px;
    line-height: 1.7;
    color: #8aaa9a;
    max-width: 300px;
}

.footer__heading {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7FBFBF;
    margin-bottom: 20px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 14px;
    color: #a8c4b8;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: #fff;
}

.footer__address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: #a8c4b8;
    margin-bottom: 12px;
}

.footer__phone {
    font-size: 15px;
    font-weight: 600;
    color: #7FBFBF;
    transition: color 0.2s;
}

.footer__phone:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.footer__bottom p {
    font-size: 13px;
    color: #6a8a7a;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Navigation --- */
@media (max-width: 1023px) {
    .navbar__menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar__list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(27, 67, 50, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .navbar__list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar__link {
        width: 100%;
        padding: 12px 16px;
    }

    .navbar__link--cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
        padding: 40px 0;
    }

    .hero__visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero__image-accent {
        margin-left: 0;
    }

    .hero__badge {
        left: 16px;
        bottom: 24px;
    }

    .hero__stats {
        gap: 24px;
    }

    .value-props__grid {
        grid-template-columns: 1fr 1fr;
    }

    .living__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .amenities__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .amenities__image-stack {
        max-width: 480px;
    }

    .neighborhood__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .neighborhood__map iframe {
        height: 360px;
    }

    .floorplans__grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 639px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding-top: 72px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero__stat-divider {
        display: none;
    }

    .value-props {
        padding: 64px 0;
    }

    .value-props__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .value-prop {
        padding: 20px;
    }

    .living,
    .amenities,
    .neighborhood,
    .floorplans,
    .contact {
        padding: 64px 0;
    }

    .amenities__list {
        grid-template-columns: 1fr;
    }

    .amenities__image-stack {
        grid-template-columns: 1fr;
    }

    .neighborhood__highlights {
        grid-template-columns: 1fr;
    }

    .floorplans__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-form {
        padding: 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
