/* Blue Planet Properties - same structure as innatthefalls.ca (nav, hero,
   card grid, alternating sections, footer), with a blue palette instead of
   the Inn's green. */

:root {
    /* Straight from the logo artwork: navy and cyan. */
    --color-primary: #2d2f93;
    --color-primary-dark: #212262;
    --color-secondary: #00adef;
    --color-accent: #00adef;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-alt: #f4f7f9;
    --color-border: #dde5ea;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .12);
    --radius: 8px;
    --transition: .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary); }
a:hover { color: var(--color-secondary); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p + p { margin-top: 1rem; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.btn-secondary:hover { background: #fff; color: var(--color-primary); }

/* ---------------------------------------------------------------- nav */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: saturate(180%) blur(6px);
}
.nav-container {
    display: flex; align-items: center; gap: 24px;
    width: min(1140px, 100% - 40px); margin-inline: auto; padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-primary); line-height: 1.15; }
.logo img { height: 38px; width: auto; }
.logo .logo-text { display: block; }
.logo .logo-text span { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-light); }
.nav-menu { margin-left: auto; display: flex; gap: 22px; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-menu a { font-size: .92rem; font-weight: 600; color: var(--color-text); }
.nav-menu a:hover, .nav-menu a.active { color: var(--color-primary); }
.nav-menu a.btn { color: #fff; padding: 9px 18px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--color-primary); cursor: pointer; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 62vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 27, 80, .58), rgba(26, 27, 80, .76)); }
.hero-content { position: relative; z-index: 1; padding: 80px 20px; max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); padding: 56px 0; }
.page-hero p { color: var(--color-text-light); max-width: 760px; margin-top: 10px; }

/* ---------------------------------------------------------------- sections */
section { padding: 64px 0; }
section.alt { background: var(--color-bg-alt); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--color-text-light); margin-top: 10px; }

.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-light); font-size: .95rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr 1fr; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split.reverse > :first-child { order: 2; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 14px 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose .lead { font-size: 1.1rem; color: var(--color-text-light); }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; object-fit: cover; }

.facts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 36px; }
.fact { text-align: center; padding: 22px 14px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); }
.fact strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary); }
.fact span { font-size: .9rem; color: var(--color-text-light); }

.faq-item { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }

.contact-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card { background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card a { font-weight: 600; word-break: break-word; }

.cta-band { background: var(--color-primary); color: #fff; text-align: center; }
.cta-band h2, .cta-band a.btn-secondary { color: #fff; }
.cta-band p { margin: 12px auto 26px; max-width: 620px; }

/* ---------------------------------------------------------------- footer */
.footer { background: #1b1c55; color: #c9d6dd; padding: 48px 0 26px; font-size: .92rem; }
.footer a { color: #c9d6dd; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 7px; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
    .split, .split.reverse > :first-child { grid-template-columns: 1fr; order: 0; }
    .nav-toggle { display: block; margin-left: auto; }
    .nav-menu {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: flex-start; gap: 0;
        background: #fff; border-bottom: 1px solid var(--color-border); padding: 10px 20px 18px;
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; padding: 9px 0; }
    section { padding: 48px 0; }
}

/* ---------------------------------------------------------------- units */
.unit-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.unit { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.unit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.unit img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.unit-nophoto { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--color-bg-alt); color: var(--color-text-light); font-size: .9rem; }
.unit-body { padding: 18px 20px 22px; }
.unit-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.unit-meta { color: var(--color-text-light); font-size: .9rem; }
.unit-rent { font-family: var(--font-heading); font-size: 1.35rem; color: var(--color-primary); margin-top: 10px; }
.unit-rent span { font-family: var(--font-body); font-size: .85rem; color: var(--color-text-light); }
.unit-rent.big { font-size: 2rem; }
.unit-avail { font-size: .85rem; font-weight: 600; color: #0f766e; margin-top: 4px; }
.unit-hero { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* forms shared by the waitlist and the admin */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; font-size: .95rem; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.field .hint { font-size: .8rem; color: var(--color-text-light); margin-top: 4px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
form.inline { display: inline; }
.btn.secondary { background: #fff; color: var(--color-primary); border-color: var(--color-border); }
.btn.secondary:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-bg-alt); }
.btn.danger { background: #b91c1c; color: #fff; }
.btn.small { padding: 7px 14px; font-size: .85rem; }
.waitlist-form { max-width: 820px; }

.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; font-size: .95rem; }
.flash.ok { background: #d1fae5; color: #065f46; }
.flash.error { background: #fee2e2; color: #991b1b; }
.warn { color: #b45309; }
.muted { color: var(--color-text-light); }
.small { font-size: .85rem; }

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--color-text-light); background: var(--color-bg-alt); }
.tabs a.active { background: var(--color-primary); color: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-light); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e5e7eb; color: #374151; }
.badge.available { background: #d1fae5; color: #065f46; }
.badge.occupied { background: #fef3c7; color: #92400e; }
.badge.off_market { background: #f3f4f6; color: #6b7280; }
dl.props { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0; }
dl.props dt { font-weight: 600; color: var(--color-text-light); font-size: .9rem; }
