/* =========================================================================
   Timlin Group — stylesheet
   Modern, minimal real-estate look built around the brand green.
   ========================================================================= */

:root {
    --brand:        #2f5e3f;   /* forest green (from the logo) */
    --brand-dark:   #1e3d29;
    --brand-deep:   #16301f;
    --brand-light:  #4a7c59;
    --accent:       #c19a3e;   /* warm gold */
    --ink:          #1b201c;
    --muted:        #5c665e;
    --paper:        #ffffff;
    --sand:         #f6f4ec;   /* warm off-white */
    --sand-2:       #efece0;
    --line:         #e3e0d5;
    --shadow:       0 1px 2px rgba(22,48,31,.06), 0 8px 24px rgba(22,48,31,.08);
    --shadow-lg:    0 12px 40px rgba(22,48,31,.16);
    --radius:       14px;
    --radius-sm:    9px;
    --maxw:         1160px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
    --font-display: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

/* ---- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 900px; }
.section { padding: 76px 0; }
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--brand-dark); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.section-head { margin-bottom: 40px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
    padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5em; padding: 13px 24px; border-radius: 999px; font-weight: 600;
    font-size: .98rem; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .12s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(47,94,63,.22); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: rgba(47,94,63,.35); }
.btn-ghost:hover { background: rgba(47,94,63,.07); color: var(--brand-dark); }
.btn-block { width: 100%; }
.btn-small { padding: 9px 16px; font-size: .9rem; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(22,48,31,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--brand-dark); }
.brand-tagline { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.primary-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
    display: inline-block; padding: 9px 16px; color: var(--ink); font-weight: 500;
    border-radius: 999px; font-size: .98rem;
}
.primary-nav a:hover { background: var(--sand); text-decoration: none; color: var(--brand-dark); }
.primary-nav a.nav-cta { background: var(--brand); color: #fff; }
.primary-nav a.nav-cta:hover { background: var(--brand-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-dark); border-radius: 2px; transition: .25s; }
.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 --------------------------------------------------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(1100px 500px at 78% -10%, rgba(74,124,89,.20), transparent 60%),
        linear-gradient(160deg, #22432d 0%, #16301f 60%, #12271a 100%);
    color: #eef3ee;
    padding: 92px 0 84px;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -80px; bottom: -120px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(193,154,62,.14), transparent 68%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: #b7d3bd; margin-bottom: 18px; font-weight: 600; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 5.2vw, 3.7rem); color: #fff; margin-bottom: 22px; letter-spacing: -0.02em; }
.hero .lede { font-size: 1.18rem; color: #cfe0d3; max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero .btn-ghost { color: #eef3ee; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.05; }
.hero-stats dd { margin: 4px 0 0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #a9c6b0; }

/* ---- About -------------------------------------------------------------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.about-copy p { color: #33403a; }
.about-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.about-points li { padding-left: 30px; position: relative; color: #33403a; }
.about-points li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 16px;
    border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--brand);
}
.about-card {
    background: linear-gradient(165deg, var(--sand), var(--sand-2));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
    box-shadow: var(--shadow); position: sticky; top: 96px;
}
.about-card h3 { font-family: var(--font-display); color: var(--brand-dark); font-size: 1.35rem; }
.about-card p { color: var(--muted); }
.about-contact { font-size: 1.1rem; line-height: 1.9; margin: 18px 0 22px; }
.about-contact a { font-weight: 600; }

/* ---- Property showcase -------------------------------------------------- */
.properties { background: var(--sand); }
.property-grid {
    display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.property-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-media { position: relative; aspect-ratio: 16 / 10.5; background: var(--sand-2); overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.property-card:hover .property-media img,
.property-card:focus-within .property-media img { transform: scale(1.07); }
.property-status {
    position: absolute; top: 14px; left: 14px; background: rgba(22,48,31,.86); color: #fff;
    font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px;
    backdrop-filter: blur(2px);
}
.property-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.property-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 8px; font-size: .8rem; }
.property-type { color: var(--brand); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.property-loc { color: var(--muted); }
.property-loc::before { content: "•"; margin-right: 10px; color: var(--line); }
.property-name { font-family: var(--font-display); font-size: 1.32rem; color: var(--brand-dark); margin: 0 0 10px; }
.property-desc { color: #46524b; font-size: .97rem; margin: 0 0 16px; }
.property-facts { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.property-facts span {
    font-size: .8rem; color: var(--muted); background: var(--sand); border: 1px solid var(--line);
    padding: 5px 11px; border-radius: 999px;
}

/* ---- Contact ------------------------------------------------------------ */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-intro p { color: #33403a; }
.contact-details { font-style: normal; margin-top: 24px; color: #33403a; line-height: 1.7; }
.contact-details p { margin-bottom: 14px; }
.contact-formwrap {
    background: linear-gradient(170deg, var(--sand), var(--sand-2));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}

/* ---- Forms -------------------------------------------------------------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 6px; }
.field em { color: #b0402e; font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(74,124,89,.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-sm { max-width: 100%; }
.form-fineprint { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; border: 1px solid; }
.flash-success { background: #eaf5ec; border-color: #b6dcbf; color: #245c34; }
.flash-error   { background: #fcecea; border-color: #f0c2bb; color: #963022; }
.flash-warn    { background: #fdf4e3; border-color: #ecd8a6; color: #7a5a12; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--brand-deep); color: #cddacf; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; display: block; }
.footer-brand .brand-tagline { color: #93b39c; display: block; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.footer-contact a { color: #eaf3ec; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-nav a { color: #cddacf; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: .85rem; color: #8ba894; }
.footer-bar p { margin: 0; }

/* ---- Admin -------------------------------------------------------------- */
.admin-section { background: var(--sand); min-height: 70vh; }
.admin-login { max-width: 420px; margin: 20px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.login-form { margin-top: 20px; }
.admin-back { margin-top: 18px; font-size: .9rem; text-align: center; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.admin-sub { color: var(--muted); margin: 0; }
.admin-row { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px 22px; margin: 0 0 18px; box-shadow: var(--shadow); }
.admin-row legend { font-family: var(--font-display); font-weight: 700; color: var(--brand-dark); padding: 0 8px; font-size: 1.08rem; }
.admin-row-new { border-style: dashed; background: #fbfaf5; }
.admin-row-grid { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start; }
.admin-thumb img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--sand-2); }
.file-label { display: block; margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--brand-dark); }
.file-label input { margin-top: 6px; font-size: .82rem; width: 100%; }
.thumb-note { font-size: .74rem; color: var(--muted); margin: 6px 0 0; }
.admin-fields .field { margin-bottom: 12px; }
.delete-check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: #963022; margin-top: 4px; cursor: pointer; }
.delete-check input { width: auto; }
.admin-actions { display: flex; gap: 14px; align-items: center; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--sand) 40%); padding: 18px 0 6px; }
.logout-form { margin: 0; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-row-grid { grid-template-columns: 1fr; }
    .admin-thumb { max-width: 260px; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; transition: max-height .28s ease;
    }
    .primary-nav.open { max-height: 320px; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px; }
    .primary-nav a { padding: 13px 16px; border-radius: 8px; }
    .section { padding: 56px 0; }
    .hero { padding: 64px 0 56px; }
    .hero-stats { gap: 26px; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
    .property-card:hover .property-media img,
    .property-card:focus-within .property-media img { transform: none; }
}
