/* CSS RESET & NORMALIZATION */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #191919;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
  font-size: 1rem;
  /* fallback for variable font-weight */
  font-weight: 400;
  letter-spacing: 0.03em;
}
* {
  box-sizing: inherit;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
a {
  color: #0b2161;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff;
  background: #191919;
  outline: none;
}
ol, ul {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: #191919;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, blockquote, ul, ol, li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 16px;
}
blockquote {
  border-left: 4px solid #0b2161;
  background: #faf9f9;
  padding: 16px 24px;
  font-style: italic;
  color: #141414;
  margin-bottom: 10px;
}
cite {
  font-size: 0.95rem;
  color: #4d4d4d;
  font-style: normal;
  display: block;
  margin-top: 6px;
}

/* TYPOGRAPHY SCALE */
.text-section h1,
.hero h1 { font-size: 2.3rem; }
.text-section h2,
.hero h2, section h2 { font-size: 1.7rem; }
.text-section h3 { font-size: 1.2rem; }
@media (min-width: 768px) {
  .text-section h1, .hero h1 { font-size: 3rem; }
  .text-section h2, .hero h2, section h2 { font-size: 2.2rem; }
  .text-section h3 { font-size: 1.3rem; }
}

/* GENERAL CONTAINERS */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
}
.text-section {
  max-width: 680px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 24px -7px rgba(0,0,0,0.10);
}
@media (max-width: 768px){
  .section { padding: 28px 6px; margin-bottom: 36px; }
}

/* HEADER & NAVIGATION */
header {
  padding: 0 0 0 0;
  box-shadow: 0 2px 16px 0 rgba(15,15,30,0.05);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px 28px;
  padding: 20px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: transparent;
}
.main-nav > a {
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1.02rem;
  transition: color 0.2s, background 0.2s;
}
.main-nav > a:hover,
.main-nav > a:focus {
  background: #191919;
  color: #fff;
  text-decoration: none;
}
.main-nav img[alt="PrimeNest Realty"] {
  height: 38px;
  width: auto;
  margin-right: 18px;
  display: block;
}
.cta-primary {
  margin-left: 8px;
  background: #191919;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px -10px #0b216120;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #0b2161;
  color: #fff;
  box-shadow: 0 4px 24px 0 #0b216130;
  outline: none;
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #191919;
  font-size: 2rem;
  margin-right: 16px;
  cursor: pointer;
  z-index: 130;
  position: absolute;
  top: 20px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #111;
  color: #fff;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  box-shadow: 0 0 80px 0 rgba(10,10,10,0.20);
  transform: translateX(-105%);
  z-index: 2000;
  transition: transform 0.38s cubic-bezier(.65,0,.35,1);
  flex-direction: column;
  padding: 0;
  display: flex;
  opacity: 0.99;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #191919;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 24px;
  z-index: 2010;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #191919;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 90px 24px 40px 32px;
}
.mobile-nav a {
  color: #111;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #111;
  color: #fff;
  outline: none;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* HERO SECTION */
.hero {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 52px 0 30px 0;
  display: flex;
  align-items: center;
  min-height: 350px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  min-height: 240px;
}
.hero .text-section h1 {
  color: #0b2161;
  font-size: 2.5rem;
  margin-bottom: 18px;
}
.hero .text-section p {
  font-size: 1.15rem;
  color: #353535;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .hero {
    padding: 24px 0 14px 0;
    min-height: 180px;
  }
  .hero .container {
    padding: 0 6px;
    min-height: 120px;
  }
  .hero .text-section h1 {
    font-size: 1.7rem;
  }
}

/* FEATURE, SERVICE & CTA GRIDS (MANDATORY FLEX) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fafafa;
  border-radius: 14px;
  box-shadow: 0 2px 16px -8px rgba(0,0,0,0.06);
  padding: 32px 22px 22px 22px;
  min-width: 230px;
  flex: 1 1 250px;
  max-width: 340px;
  transition: box-shadow 0.24s, transform 0.22s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.feature-item h3 {
  color: #191919;
  margin-bottom: 6px;
  font-size: 1.19rem;
}
.feature-item p {
  color: #444;
  font-size: 1rem;
}
.feature-item:hover {
  box-shadow: 0 12px 38px -12px #0b216175;
  transform: translateY(-8px) scale(1.02);
  background: #f6f6f8;
}
@media (max-width: 880px) {
  .feature-grid { flex-direction: column; gap: 16px; }
  .feature-item { max-width: 100%; }
}

.services ul,
.content-wrapper ul { 
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
}
.services ul li, .content-wrapper ul li {
  color: #232323;
  background: #fcfcfc;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 8px 0 rgba(0,0,0,0.05);
}
.services ul li h3, .content-wrapper ul li h3 { margin-bottom: 5px; }

/* TEAM LISTS */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}
.team-member {
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 2px 10px -8px rgba(0,0,0,0.08);
  padding: 22px 18px;
  flex: 1 1 210px;
  min-width: 185px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.18s;
}
.team-member h3 {
  color: #0b2161;
}
.team-member a {
  color: #0b2161;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.team-member a:hover, .team-member a:focus {
  background: #191919;
  color: #fff;
}
.team-member:hover {
  box-shadow: 0 8px 32px -10px #0b216170;
  transform: translateY(-4px);
  background: #f0f1f4;
}
@media (max-width: 900px) { .team-list { flex-direction: column; gap: 15px; } }

/* CARD CONTAINER (MANDATORY FLEXBOX) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fcfcfc;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
  padding: 18px 16px;
  flex: 1 1 240px;
  min-width: 185px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}
@media (max-width: 768px){
  .feature-grid, .content-grid, .text-image-section, .team-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* CONTACT INFO */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0 0;
}
.contact-info li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  color: #212121;
  font-size: 1rem;
}
.contact-info img {
  height: 20px;
  width: 20px;
  margin-right: 4px;
}

/* MAP SECTION/OFFICE HOURS */
.map-section, .office-hours {
  margin: 25px 0 0 0;
  background: #fafbfc;
  padding: 15px 16px;
  border-radius: 8px;
}
.office-hours ul { gap: 6px; margin: 8px 0 0 0; }

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fafdff;
  border-radius: 12px;
  box-shadow: 0 2px 16px -6px #0b216108;
  margin: 18px 0;
  flex-direction: column;
}
.testimonial-card blockquote {
  font-size: 1.09rem;
  color: #070707;
  margin-bottom: 2px;
}
.testimonial-card cite {
  color: #4a4a4a;
  font-size: 1rem;
}
.star-rating {
  color: #191919;
  letter-spacing: 2px;
  font-size: 1.16rem;
  padding-top: 3px;
}
@media (min-width: 768px) {
  .testimonial-card { flex-direction: row; }
}

/* FOOTER */
footer {
  background: #191919;
  color: #cfcfcf;
  padding: 50px 0 24px 0;
  font-size: 1rem;
  box-shadow: 0 -3px 36px -15px #00000018;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #c9c9c9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #0b2161;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.97rem;
}
.footer-branding img {
  height: 30px;
}
.footer-branding span {
  color: #cecece;
  font-size: 0.97rem;
}

@media (max-width: 700px){
  footer .container, .footer-branding, .footer-nav {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }
  .footer-branding img {
    margin-bottom: 4px;
  }
}

/* LEGAL SECTIONS */
.legal {
  margin-top: 40px;
  background: #fafbfc;
  border-radius: 12px;
  padding: 38px 18px;
}
.legal h1 {
  font-size: 2.2rem;
  color: #181818;
  margin-bottom: 20px;
}
.legal h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

/* THANK YOU PAGE */
.thank-you {
  margin: 60px 0;
  background: #fafbfc;
  padding: 50px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 16px -10px #0b216107;
}
.thank-you h1 {
  color: #0b2161;
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.thank-you ol {
  padding-left: 22px;
}

/* BUTTONS & FORMS */
button,
input[type="submit"],
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  outline: none;
  cursor: pointer;
  font-size: 1.06rem;
  border-radius: 7px;
  padding: 11px 28px;
  background: #191919;
  color: #fff;
  border: none;
  font-weight: 700;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, outline 0.12s;
  box-shadow: 0 3px 12px -9px #0b216155;
  margin-top: 8px;
}
button:hover, .cta-primary:hover, .cta-primary:focus, 
input[type="submit"]:hover {
  background: #0b2161;
}
button:active, .cta-primary:active, input[type="submit"]:active {
  background: #444;
}

/* MICRO-INTERACTIONS */
.card, .feature-item, .team-member, .cta-primary, .mobile-menu, .mobile-menu-toggle {
  transition: box-shadow 0.18s, transform 0.14s, background 0.18s, color 0.14s;
}
.card:hover, .feature-item:hover, .team-member:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px -14px #0b216140;
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  z-index: 4000;
  background: rgba(25,25,25,0.97);
  color: #fafafa;
  padding: 26px 14px 20px 14px;
  box-shadow: 0 -1px 32px 0 #19191935;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  animation: cookieBannerIn 0.68s cubic-bezier(.62,0,.38,1);
}
@keyframes cookieBannerIn {
  0% { opacity: 0; transform: translateY(45px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
  max-width: 700px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-size: 1.06rem;
  border-radius: 5px;
  font-weight: 600;
  padding: 9px 20px;
  background: #fff;
  color: #191919;
  border: none;
  margin: 0 4px;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #0b2161;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #ececec;
  color: #0b2161;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #0b2161;
  color: #fff;
}

/* COOKIE MODAL (for settings) */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 4100;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 100px -32px #0b216140;
  width: 95%;
  max-width: 430px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px 22px 26px 22px;
  animation: cookieModalIn 0.5s cubic-bezier(.68,0,.32,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: scale(1.05) translate(-50%, -46%); }
  100% { opacity: 1; transform: scale(1) translate(-50%, -50%); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #0b2161;
  margin-bottom: 6px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #111;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 5px;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #ececec;
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
}
.cookie-modal .cookie-category label {
  font-size: 1.05rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #0b2161;
}
.cookie-modal .cookie-category.cookie-essential label {
  color: #777;
  font-style: italic;
}
.cookie-modal .modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal button[type="submit"] {
  background: #0b2161;
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  border: none;
}
.cookie-modal button.cancel {
  background: #ececec;
  color: #191919;
}
.cookie-modal button.cancel:hover {
  background: #0b2161;
  color: #fff;
}

/* UTILITY CLASSES */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.m-t-22 { margin-top: 22px; }

/* RESPONSIVENESS */
@media (max-width: 650px){
  .footer-nav { gap: 10px; margin-bottom: 4px; }
  .content-wrapper, .features .content-wrapper, .services .content-wrapper {
    padding-left: 2px;
    padding-right: 2px;
  }
  .feature-grid, .team-list { gap: 9px; }
  .section { padding: 18px 0; }
  .testimonial-card { padding: 12px; gap: 10px; }
}

/* SELECTION COLOR */
::selection {
  background: #111;
  color: #fff;
}

/* FORM ELEMENTS (for contact, future proof) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 1.7px solid #d9d9de;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fafbfc;
  color: #101010;
  width: 100%;
  box-shadow: none;
  outline: none;
  margin-bottom: 14px;
  transition: border 0.19s;
}
input:focus, textarea:focus, select:focus {
  border: 1.7px solid #0b2161;
}
/* Hide extra indicators for forms if any */
input[type='checkbox'], input[type='radio'] {
  accent-color: #0b2161;
}

/* OVERRIDES FOR ACCESSIBILITY: TESTIMONIALS/REVIEW CONTRAST */
.testimonial-card, .testimonial-card blockquote, .testimonial-card cite {
  color: #0b2161 !important;
  background: #fcfcfc !important;
}

/* ACCESSIBILITY: High contrast for important actions */
.cookie-banner button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #0b2161;
  outline-offset: 2px;
}

/* Hide scrollbars for mobile menu but allow scrolling */
.mobile-menu {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #f2f2f2 #1a1a1a;
}
.mobile-menu::-webkit-scrollbar {
  width: 6px;
  background: #fff;
}
.mobile-menu::-webkit-scrollbar-thumb {
  background: #ececec;
}

/* --- END OF STYLE --- */
