/* OysterBayLI.com — Main Stylesheet v1.0.0 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    /* Brand Colors */
    --harbor-blue:    #1c3f6e;
    --harbor-dark:    #122b4d;
    --harbor-mid:     #2a5298;
    --gold:           #b8953a;
    --gold-light:     #d4b05a;
    --cream:          #faf7f2;
    --cream-dark:     #f0ebe1;
    --charcoal:       #2d2d2d;
    --text:           #3a3630;
    --text-light:     #6b6560;
    --white:          #ffffff;
    --border:         #ddd8cf;

    /* Typography */
    --font-display:  'Cormorant Garamond', Georgia, serif;
    --font-body:     'Inter', system-ui, sans-serif;

    /* Spacing */
    --container:     1200px;
    --radius:        4px;
    --radius-lg:     8px;

    /* Transitions */
    --transition:    0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--harbor-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--harbor-blue);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--harbor-blue);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-branding {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.01em;
}

.site-logo:hover { color: var(--gold-light); }
.logo-dot { color: var(--gold); }
.logo-com { color: var(--gold-light); font-weight: 300; }

.site-since {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    padding: 2px 6px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
}

.site-nav ul {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.site-nav a {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.8);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.site-nav a.active {
    color: var(--gold-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — HOME PAGE
   ============================================================ */
.hero-home {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--harbor-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/hero.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.45;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.hero-home:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(18, 43, 77, 0.85) 0%,
        rgba(18, 43, 77, 0.6) 50%,
        rgba(28, 63, 110, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.hero-since {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 149, 58, 0.15);
    border: 1px solid rgba(184, 149, 58, 0.5);
    border-radius: 2px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.hero-since::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero-description {
    max-width: 520px;
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(184,149,58,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-blue {
    background: var(--harbor-blue);
    color: var(--white);
    border-color: var(--harbor-blue);
}

.btn-blue:hover {
    background: var(--harbor-dark);
    border-color: var(--harbor-dark);
    color: var(--white);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--cream-dark);
}

.section-blue {
    background: var(--harbor-blue);
    color: var(--white);
}

.section-blue h2,
.section-blue h3 { color: var(--white); }

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.section-blue .section-header p { color: rgba(255,255,255,0.7); }

/* ============================================================
   QUICK-NAV (home feature grid)
   ============================================================ */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: -3rem 0 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.75rem 1rem;
    background: var(--white);
    text-align: center;
    transition: all var(--transition);
    color: var(--text);
    text-decoration: none;
}

.quick-nav-item:hover {
    background: var(--harbor-blue);
    color: var(--white);
}

.quick-nav-item:hover .qn-icon { color: var(--gold-light); }
.quick-nav-item:hover .qn-label { color: var(--white); }

.qn-icon {
    font-size: 1.75rem;
    color: var(--harbor-blue);
    transition: color var(--transition);
}

.qn-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    transition: color var(--transition);
}

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cards-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(28,63,110,0.12);
    transform: translateY(-2px);
}

.card-image {
    aspect-ratio: 16/9;
    background: var(--cream-dark);
    overflow: hidden;
}

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

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

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
    background: var(--cream-dark);
}

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--harbor-blue);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--gold); }

.card-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-light);
}

.card-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* Price range badge */
.price-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(184,149,58,0.1);
    padding: 2px 6px;
    border-radius: 2px;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
    background: var(--harbor-blue);
    padding: 3.5rem 0 3rem;
    border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.gold-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem 0;
    border-radius: 2px;
}

.gold-divider.centered { margin: 1rem auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--harbor-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 4rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    display: block;
    margin-bottom: 0.75rem;
}

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

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================================
   ADMIN — BASE STYLES
   ============================================================ */
.admin-body {
    background: #f4f6f9;
    font-family: var(--font-body);
}

.admin-header {
    background: var(--harbor-blue);
    border-bottom: 3px solid var(--gold);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header .admin-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 500;
}

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

.admin-header nav a {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 500;
    margin-left: 1.25rem;
    transition: color var(--transition);
}

.admin-header nav a:hover { color: var(--white); }

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}

.admin-sidebar h5 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0 1.25rem;
    margin: 1.25rem 0 0.5rem;
}

.admin-sidebar h5:first-child { margin-top: 0; }

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text);
    transition: all var(--transition);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(28, 63, 110, 0.07);
    color: var(--harbor-blue);
}

.admin-sidebar a.active { font-weight: 600; }

.admin-main {
    padding: 2rem;
    max-width: 1100px;
}

.admin-page-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--harbor-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/* Admin Cards/Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--harbor-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 0.35rem;
}

/* Admin Table */
.admin-table {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-collapse: collapse;
    overflow: hidden;
}

.admin-table th {
    background: var(--cream-dark);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }

/* Admin Forms */
.admin-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    max-width: 760px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--harbor-blue);
    box-shadow: 0 0 0 3px rgba(28,63,110,0.08);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Alert messages */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

.alert-success { background: #f0faf4; border-color: #27ae60; color: #1a6b3c; }
.alert-error   { background: #fff5f5; border-color: #e74c3c; color: #922b21; }
.alert-info    { background: #ebf3fb; border-color: var(--harbor-blue); color: var(--harbor-dark); }

/* Action links */
.action-links { display: flex; gap: 0.5rem; }
.action-links a { font-size: 0.8rem; font-weight: 500; padding: 3px 8px; border-radius: var(--radius); }
.action-edit  { color: var(--harbor-blue); background: rgba(28,63,110,0.08); }
.action-delete { color: #c0392b; background: rgba(192,57,43,0.08); }
.action-edit:hover  { background: var(--harbor-blue); color: var(--white); }
.action-delete:hover { background: #c0392b; color: var(--white); }

/* Status badge */
.badge { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 0.72rem; font-weight: 600; }
.badge-active   { background: #eafaf1; color: #1e8449; }
.badge-inactive { background: #fdfefe; color: #95a5a6; border: 1px solid #ddd; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-nav   { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--harbor-dark);
        border-bottom: 2px solid var(--gold);
        padding: 0.75rem 0;
    }

    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav a { padding: 0.75rem 1.5rem; border-radius: 0; display: block; }

    .site-header { position: relative; }

    .quick-nav { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
    .cards-grid { grid-template-columns: 1fr; }
    .form-row   { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .quick-nav { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}
