
:root{
  --forest:#073d2b;
  --forest-2:#0d5338;
  --cream:#f8f3e7;
  --cream-dark:#e8dfcc;
  --gold:#c4a15a;
  --ink:#183427;
  --muted:#59675e;
  --white:#fffdf7;
  --serif:"Cormorant Garamond",Georgia,serif;
  --body:"Libre Baskerville",Georgia,serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--body);line-height:1.55}
a{color:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.site-header{
  height:96px;
  position:relative;
  z-index:20;
  display:grid;
  grid-template-columns:220px 1fr 110px;
  align-items:center;
  padding:0 42px;
  background:rgba(250,247,238,.98);
  border-top:7px solid var(--forest);
  box-shadow:0 2px 16px rgba(0,0,0,.07);
}
.brand{position:absolute;left:46px;top:13px;width:142px;text-decoration:none}
.brand-frame{
  width:142px;height:142px;
  display:grid;place-items:center;
  overflow:hidden;
  border-radius:50%;
  background:var(--cream);
  border:1px solid #c9b98e;
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.brand img{width:136px;height:136px;object-fit:contain;display:block}
.primary-nav{grid-column:2;justify-self:center;display:flex;gap:45px;align-items:center}
.primary-nav a{
  padding:13px 18px;
  border-radius:7px;
  font:600 1.36rem var(--serif);
  text-decoration:none;
}
.primary-nav a:hover,.primary-nav a:focus-visible{background:#ecebdc}
.primary-nav a.active{background:var(--forest);color:var(--white)}
.header-leaf{
  grid-column:3;justify-self:end;
  width:48px;height:48px;
  fill:none;stroke:var(--forest);stroke-width:3;
  stroke-linecap:round;stroke-linejoin:round;
}
.menu-toggle{display:none;border:0;background:transparent;width:44px;padding:6px}
.menu-toggle>span:not(.sr-only){display:block;height:2px;background:var(--forest);margin:6px 0}

.hero{
  position:relative;
  min-height:590px;
  display:grid;
  place-items:end center;
  overflow:hidden;
  background:
    linear-gradient(to bottom,rgba(2,30,20,.02),rgba(3,55,36,.1)),
    url("assets/entrance-hero.png") center center/cover no-repeat;
}
.hero::after{
  content:"";
  position:absolute;left:-3%;right:-3%;bottom:-36px;height:76px;
  background:var(--cream);
  border-radius:50% 50% 0 0/60% 60% 0 0;
  z-index:3;
}
.hero-shade{
  position:absolute;inset:auto 0 0;height:31%;
  background:linear-gradient(to bottom,transparent,rgba(2,54,35,.92));
}
.hero-content{position:relative;z-index:2;width:min(1100px,92%);padding:0 20px 62px;color:white;text-align:center}
.tagline{display:flex;align-items:center;justify-content:center;gap:22px}
.tagline span{width:120px;height:1px;background:rgba(255,255,255,.72)}
.tagline p{margin:0;font:italic 500 clamp(1.7rem,2.6vw,2.8rem) var(--serif);text-shadow:0 2px 8px rgba(0,0,0,.45)}
.hero-ornament{margin-top:10px;color:#d7b969;font-size:1.25rem}

.welcome-section{
  padding:88px 24px 64px;
  background:
    radial-gradient(circle at 14% 18%,rgba(101,124,76,.06),transparent 30%),
    radial-gradient(circle at 88% 85%,rgba(196,161,90,.08),transparent 30%),
    var(--cream);
}
.section-inner{width:min(1320px,100%);margin:auto}
.section-heading{display:grid;grid-template-columns:1fr auto 1fr;gap:24px;align-items:center;text-align:center}
.section-heading .line{height:1px;background:linear-gradient(to right,transparent,var(--gold))}
.section-heading .line:last-child{background:linear-gradient(to left,transparent,var(--gold))}
.kicker{margin:0 0 5px;color:var(--gold);letter-spacing:.25em;text-transform:uppercase;font-size:.76rem}
.section-heading h1{margin:0;font:600 clamp(2.6rem,4.2vw,4.5rem)/1 var(--serif)}
.welcome-copy{width:min(1000px,100%);margin:28px auto 42px;text-align:center;font-size:.98rem;color:#263c30}

.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:25px}
.feature-card{
  min-height:200px;
  display:grid;
  grid-template-columns:82px 1fr;
  gap:20px;align-items:start;
  padding:27px 26px;
  border:1px solid #ded5c2;border-radius:12px;
  background:rgba(255,253,247,.66);
  box-shadow:0 10px 26px rgba(29,48,33,.08);
  text-decoration:none;
  transition:.22s ease;
}
.feature-card:hover,.feature-card:focus-visible{transform:translateY(-6px);box-shadow:0 17px 36px rgba(29,48,33,.16)}
.icon-circle{
  width:72px;height:72px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--forest-2),var(--forest));
}
.icon-circle svg{width:43px;height:43px;fill:none;stroke:white;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.card-copy{display:flex;flex-direction:column;align-items:flex-start;height:100%}
.card-copy strong{font:600 1.55rem/1 var(--serif);padding-bottom:7px;border-bottom:2px solid var(--gold)}
.card-copy small{display:block;margin:14px 0 18px;color:#273a30;font-size:.76rem;line-height:1.55}
.card-copy b{
  margin-top:auto;padding:8px 15px;border-radius:4px;background:var(--forest);
  color:white;font-weight:400;font-size:.78rem;
}

.site-footer{
  padding:25px 5% 20px;text-align:center;
  background:linear-gradient(110deg,#063925,#075036,#063925);color:white;
}
.footer-links{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;font-size:.82rem}
.footer-links a{text-decoration:none}.footer-links a:hover{text-decoration:underline}
.site-footer p{margin:18px 0 0;font-size:.77rem}

.inside-page{min-height:100vh;background:var(--cream)}
.inside-header{height:100px;padding:12px 6%;display:flex;align-items:center;justify-content:space-between;background:var(--forest);color:white}
.inside-header img{width:78px;height:78px;object-fit:contain}
.inside-header nav{display:flex;gap:25px}.inside-header a{text-decoration:none}
.inside-content{width:min(900px,90%);margin:75px auto}
.inside-content h1{font:600 4rem/1 var(--serif);margin:0 0 20px}
.return-button{display:inline-block;margin-top:25px;padding:10px 18px;border-radius:5px;background:var(--forest);color:white;text-decoration:none}

@media(max-width:1050px){
  .feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .site-header{height:78px;grid-template-columns:1fr auto;padding:0 18px}
  .brand{left:16px;top:8px;width:104px}
  .brand-frame{width:104px;height:104px}
  .brand img{width:100px;height:100px}
  .header-leaf{display:none}
  .menu-toggle{display:block;grid-column:2;justify-self:end}
  .primary-nav{
    display:none;position:absolute;top:70px;left:0;right:0;
    padding:18px;background:var(--cream);flex-direction:column;gap:5px;
    box-shadow:0 12px 22px rgba(0,0,0,.14)
  }
  .primary-nav.open{display:flex}
  .primary-nav a{width:100%;text-align:center}
  .hero{min-height:460px;background-position:center center}
  .tagline span{display:none}
  .tagline p{font-size:1.8rem}
  .section-heading{grid-template-columns:1fr}.section-heading .line{display:none}
  .feature-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .hero{min-height:390px}
  .feature-card{grid-template-columns:70px 1fr;padding:22px 18px}
  .icon-circle{width:62px;height:62px}
}

/* =========================
   RESIDENT PORTAL
   ========================= */

.portal-header {
    background: #073d2b;
    color: #fffdf7;
    padding: 30px 50px;
    text-align: center;
}

.portal-header h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 3rem;
    margin: 10px 0 0;
}

.portal-header a {
    color: #fffdf7;
    text-decoration: none;
}

.portal-main {
    min-height: calc(100vh - 150px);
    padding: 60px 20px;
    text-align: center;
    background: #f8f3e7;
}

.portal-welcome {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    color: #173427;
    margin-bottom: 35px;
}

.portal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.portal-button {
    background: #073d2b;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.portal-button.secondary {
    background: #c4a15a;
    color: #173427;
}
/* =========================
   RESIDENT LOGIN
   ========================= */

.login-page {
    min-height: 100vh;
    background: #f8f3e7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
}

.login-page h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 3rem;
    color: #173427;
    margin-bottom: 10px;
}

.login-page > p {
    color: #59675e;
    margin-bottom: 30px;
}

.login-form {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form label {
    text-align: left;
    color: #173427;
}

.login-form input {
    padding: 13px 14px;
    border: 1px solid #cfc7b5;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
}

.login-form button {
    margin-top: 10px;
    background: #073d2b;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
/* Login / account page links */

.login-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.login-links a {
    color: #073d2b;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-links a:hover {
    text-decoration: underline;
}
/* =========================
   RESIDENT DASHBOARD
   ========================= */

.dashboard-main {
    min-height: calc(100vh - 150px);
    padding: 55px 25px 75px;
    background: #f8f3e7;
}

.dashboard-grid {
    width: min(1100px, 100%);
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.dashboard-card {
    display: block;
    min-height: 170px;
    padding: 26px;
    border-radius: 10px;
    background: #fffdf7;
    border: 1px solid #d8cfbc;
    box-shadow: 0 10px 24px rgba(20, 45, 30, 0.08);
    text-decoration: none;
    color: #173427;
    transition: 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(20, 45, 30, 0.15);
}

.dashboard-card h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
}

.dashboard-card p {
    margin: 0;
    color: #59675e;
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 850px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   NEWS & NOTICES
   ========================= */

.news-list {
    width: min(900px, 100%);
    margin: 35px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #fffdf7;
    border: 1px solid #d8cfbc;
    border-left: 5px solid #073d2b;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 8px 20px rgba(20, 45, 30, 0.08);
}

.news-item h2 {
    margin: 0 0 5px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
    color: #173427;
}

.news-date {
    color: #c4a15a;
    font-size: 0.8rem;
    margin: 0 0 12px;
}
/* =========================
   SIGN OUT BUTTON
   ========================= */

.logout-button {
    margin-top: 18px;
    padding: 10px 24px;

    background: transparent;
    color: #fffdf7;

    border: 1px solid #c4a15a;
    border-radius: 6px;

    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.85rem;

    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background: #c4a15a;
    color: #073d2b;
    transform: translateY(-2px);
}

.google-login-button {
    margin-top: 8px !important;
    background: #ffffff !important;
    color: #3c4043 !important;
    border: 1px solid #dadce0 !important;
    border-radius: 6px !important;
    padding: 13px 20px !important;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

.google-login-button::before {
    content: "G";
    font-weight: bold;
    font-size: 1.15rem;
    margin-right: 12px;
}

.google-login-button:hover {
    background: #f8f9fa !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
/* =========================
   ADMINISTRATION BUTTON
   ========================= */

.admin-area {
    text-align: center;
    margin: 35px auto 10px;
}

.admin-button {
    display: inline-block;
    padding: 14px 30px;
    background: #c4a15a;
    color: #173427;
    border-radius: 7px;
    text-decoration: none;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(20, 45, 30, 0.12);
    transition: all 0.2s ease;
}

.admin-button:hover {
    background: #073d2b;
    color: #fffdf7;
    transform: translateY(-2px);
}
/* =========================
   ADMINISTRATION
   ========================= */

.admin-section {
    width: min(1000px, 100%);
    margin: 35px auto 0;
}

.admin-section h2 {
    text-align: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.2rem;
    color: #173427;
    margin-bottom: 25px;
}

#pending-residents {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-resident-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 25px 30px;
    background: #fffdf7;
    border: 1px solid #d8cfbc;
    border-left: 5px solid #c4a15a;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(20, 45, 30, 0.08);
}

.admin-resident-info h3 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.7rem;
    color: #173427;
}

.admin-resident-info p {
    margin: 5px 0;
    color: #59675e;
}

.admin-resident-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.approve-button,
.deny-button {
    border: none;
    border-radius: 6px;
    padding: 11px 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

.approve-button {
    background: #073d2b;
    color: #fffdf7;
}

.deny-button {
    background: #eee7d8;
    color: #7a2929;
}

.approve-button:hover,
.deny-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 650px) {

    .admin-resident-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-resident-actions {
        width: 100%;
    }

    .approve-button,
    .deny-button {
        flex: 1;
    }
}
/* ========================================
   SECURE DOCUMENT / NEWSLETTER BUTTONS
   ======================================== */

.secure-document-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 24px;

    border: none;
    border-radius: 999px;

    background: #0f4a37;
    color: #ffffff;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(15, 74, 55, 0.22);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.secure-document-link::before {
    content: "📄";
    font-size: 1.05rem;
}

.secure-document-link:hover {
    background: #176047;

    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(15, 74, 55, 0.28);
}

.secure-document-link:active {
    transform: translateY(0);
}

.secure-document-link:focus-visible {
    outline: 3px solid #d7bd65;
    outline-offset: 3px;
}