/* The Pointe at Kirby Gate — main stylesheet */
:root {
  --navy: #1f4d2b;        /* deep forest green — headings, footer */
  --blue: #35703a;        /* secondary green */
  --blue-deep: #27592d;   /* secondary green, hover */
  --green: #4e9a51;
  --green-light: #8ebf5e;
  --ice: #e9f3e6;         /* soft mint tint */
  --paper: #f6f9f5;
  --ink: #2d3a2f;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(31, 77, 43, 0.10);
  --radius: 12px;
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  font-size: 1.0625rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
body { font-size: 1.0625rem; letter-spacing: -0.005em; }
.eyebrow { letter-spacing: 0.1em; }
.btn { letter-spacing: -0.005em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 0.5rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: all 0.2s ease;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  font-family: var(--font-body);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #3d7f41; color: #fff; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-deep); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ice); color: var(--navy); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 2px 10px rgba(31,77,43,0.08);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0.6rem 1.25rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.brand img { width: 150px; height: auto; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; list-style: none; gap: 0.85rem; justify-content: center; flex-wrap: nowrap; }
.main-nav a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.92rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.header-cta { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.phone-link { font-weight: 700; color: var(--navy); text-decoration: none; }
.phone-link:hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: none; }

/* Hero */
.hero {
  position: relative; min-height: 480px; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,48,28,0.82) 0%, rgba(20,48,28,0.45) 60%, rgba(20,48,28,0.15) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { color: #fff; max-width: 720px; }
.hero .tagline { color: var(--ice); font-size: 1.3rem; margin: 1rem 0 1.75rem; max-width: 600px; font-weight: 400; }
.hero-page { min-height: 320px; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--paper); }
.section-ice { background: var(--ice); }
.eyebrow {
  color: var(--green); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.85rem; margin-bottom: 0.5rem;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
.section p + p { margin-top: 1rem; }
.section .btn { margin-top: 1.5rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body p { flex: 1; }
.card-body .btn { margin-top: 1.25rem; align-self: flex-start; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial {
  background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--green-light);
}
.testimonial blockquote { font-style: italic; color: var(--ink); }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--blue); font-size: 0.9rem; }
.stars { color: #f5b301; letter-spacing: 0.15em; margin-bottom: 0.75rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Floor plans */
.floorplan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.floorplan { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; text-align: center; }
.floorplan img { margin: 0 auto 1rem; max-height: 300px; object-fit: contain; }
.floorplan .size { color: var(--blue); font-weight: 700; }

/* Icon grid */
.icon-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem 2rem; margin-top: 2.25rem; }
.icon-grid li { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; text-align: left; }
.icon-grid .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--ice); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.5rem;
}
.icon-grid strong { color: var(--navy); font-size: 1.05rem; }
.icon-grid li > span:last-child { color: #4f5c50; font-size: 0.97rem; line-height: 1.5; }

.social-list li { display: inline-block; margin-right: 0.9rem; }

/* Shop */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.product { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease; }
.product:hover { transform: translateY(-3px); color: inherit; }
.product img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product h3 { font-size: 1.05rem; margin: 0.9rem 1rem 0.2rem; }
.product p { margin: 0 1rem 1rem; font-size: 0.92rem; color: #4f5c50; }

/* Amenity columns */
.amenity-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem 2.5rem; margin-top: 2.5rem; }
.amenity-columns h3 { margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--green-light); }
.amenity-columns .check-list { margin-top: 0.5rem; }
.amenity-columns .check-list li { font-size: 0.97rem; margin-bottom: 0.45rem; }

/* Checklist */
.check-list { list-style: none; margin-top: 1rem; }
.check-list li { padding-left: 1.9rem; position: relative; margin-bottom: 0.6rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #35703a, var(--green)); color: #fff;
  text-align: center; padding: 4rem 1.25rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ice); margin: 0.75rem 0 1.75rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Forms */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.contact-form {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem;
}
.form-row { margin-bottom: 1.15rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #cfd8cf; border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--green-light); border-color: var(--green);
}
.form-note { font-size: 0.85rem; color: #5f6b60; margin-top: 1rem; }
.contact-info-card { background: var(--paper); border-radius: var(--radius); padding: 2rem; }
.contact-info-card h3 { margin-top: 1.25rem; }
.contact-info-card h3:first-child { margin-top: 0; }
.map-embed { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Footer */
.site-footer { background: #1b3f24; color: #d5e3d6; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { margin-bottom: 1.25rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)) brightness(1.55) saturate(0.9); }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #d5e3d6; text-decoration: none; }
.site-footer a:hover { color: var(--green-light); }
.site-footer address { font-style: normal; margin-bottom: 0.75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding: 1.25rem; text-align: center;
  font-size: 0.9rem;
}

/* Footer legal strip */
.footer-legal { border-top: 1px solid rgba(255,255,255,0.15); padding: 1.75rem 0 0.5rem; font-size: 0.82rem; line-height: 1.55; color: #b9cbbb; }
.footer-legal p { margin-bottom: 0.75rem; }
.legal-badges { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; color: #e4eee5; font-weight: 600; font-size: 0.85rem; }
.badge-icon { display: inline-flex; width: 34px; height: 34px; border: 1.5px solid #e4eee5; border-radius: 6px; align-items: center; justify-content: center; }
.badge-icon svg { width: 22px; height: 22px; }
.footer-bottom a { color: #d5e3d6; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.consent input { margin-top: 0.3rem; width: auto; }

/* Utility */
.center { text-align: center; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.legal-content h2 { margin-top: 2rem; }
.legal-content p { margin-top: 1rem; }

/* Responsive */
@media (max-width: 1160px) {
  .header-inner { flex-wrap: wrap; gap: 0.75rem; }
  .brand { order: 1; }
  .header-cta { order: 2; margin-left: auto; }
  .main-nav { display: contents; }
  .nav-toggle {
    display: block; order: 3; cursor: pointer; padding: 0.5rem;
  }
  .nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
  .main-nav ul { display: none; order: 4; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 1rem; }
  .main-nav.open ul { display: flex; }
  .main-nav li { text-align: center; }
  .main-nav a { display: block; padding: 0.65rem 0; border-bottom: none; font-size: 1rem; }
  .phone-link { display: inline; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .phone-link { display: none; }
}
@media (max-width: 520px) {
  .brand img { width: 118px; }
  .header-inner { gap: 0.5rem; padding: 0.5rem 0.75rem; }
  .header-cta .btn { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
  .nav-toggle { padding: 0.35rem; }
  .section { padding: 2.75rem 0; }
}
