:root{--brand-blue:#123A7A;--brand-blue-600:#0f2f63;--ink:#0f172a;--muted:#64748b;--bg:#fff;--radius:18px}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:#f8fafc;color:var(--ink);line-height:1.6}
.container{max-width:1200px;margin:0 auto;padding:24px 20px}
/* Header */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.9);backdrop-filter:blur(6px);border-bottom:1px solid #e5e7eb;transition:box-shadow .2s,background .2s}
.header-inner{max-width:1200px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;gap:20px}
.branding img{max-height:72px}
.primary-nav .menu{list-style:none;margin:0;padding:0;display:flex;gap:18px}
.primary-nav .menu li{position:relative}
.primary-nav .menu li a{color:#111;text-decoration:none;font-weight:700;padding:8px 10px;border-radius:10px}
.primary-nav .menu li .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 18px 48px rgba(2,6,23,.12);min-width:220px;padding:8px 6px;z-index:1000;list-style:none}
.primary-nav .menu li:hover>.sub-menu{display:block}
.primary-nav .menu li .sub-menu li{list-style:none}
.primary-nav .menu li .sub-menu li a{display:block;padding:10px 12px;border-radius:8px;color:#0f172a}
.primary-nav .menu li .sub-menu li a:hover{background:#f1f5f9}
.primary-nav .menu li::marker,.primary-nav .menu .sub-menu li::marker{content:''}
.header-cta{margin-left:auto;display:flex;align-items:center;gap:14px}
.header-cta .phone{font-weight:800;color:#0f172a;text-decoration:none}
.socials{display:flex;gap:10px}
.socials a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;background:#ffffff;border:1px solid #e5e7eb}
.socials a svg{width:18px;height:18px}
.site-header.scrolled{background:rgba(255,255,255,.86);box-shadow:0 4px 24px rgba(2,6,23,.08)}
.nav-toggle{display:none}
/* Hero */
.hero-video{position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.1))}
.hero-video .hero-bg{width:100%;height:58vw;max-height:640px;object-fit:cover;filter:saturate(1.05) contrast(1.05)}

/* Branding tile – desktop & base style
 * Smoked-glass look: darker tint, very transparent, almost no blur.
 * “UPPER DELAWARE” and “REAL ESTATE” are forced to single lines.
 */
.branding-tile{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  color:#fff;
  padding:16px 28px;
  border-radius:22px;
  background:rgba(8,16,32,0.32); /* dark but very see-through */
  backdrop-filter:blur(1.5px) saturate(1.2);
  -webkit-backdrop-filter:blur(1.5px) saturate(1.2);
  box-shadow:0 18px 60px rgba(0,0,0,.45);
}
.branding-tile img{
  max-height:72px;
  margin:0 auto 6px;
  display:block;
}
.branding-tile .brand-line{display:block}
.branding-tile .small{
  font-size:clamp(10px,1.4vw,13px);
  letter-spacing:.18em;
  margin-top:4px;
  text-transform:uppercase;
}
.branding-tile .big{
  font-size:clamp(32px,5.5vw,64px);
  letter-spacing:.16em;
  margin:4px 0 0;
  white-space:nowrap; /* keep “UPPER DELAWARE” on one line */
}
.branding-tile .mid{
  font-size:clamp(22px,4.2vw,40px);
  letter-spacing:.18em;
  margin-top:4px;
  white-space:nowrap; /* keep “REAL ESTATE” on one line */
}

/* Category cards */
.listing-categories{padding:32px 20px}
.grid.four{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.category-card{position:relative;display:flex;align-items:flex-end;justify-content:center;height:180px;border-radius:18px;overflow:hidden;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.12);box-shadow:0 20px 60px rgba(2,6,23,.12)}
.category-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.18));z-index:0}
.category-card::after{content:"";position:absolute;inset:0;z-index:-1;transform:scale(1.05);background-size:cover;background-position:center}
.category-card .label{position:relative;z-index:1;font-weight:900;text-shadow:0 6px 20px rgba(0,0,0,.55);font-size:clamp(16px,2.4vw,22px);padding:12px 16px;background:rgba(0,0,0,.2);border-radius:12px;backdrop-filter:blur(4px)}
.category-card:hover{transform:translateY(-3px);box-shadow:0 28px 80px rgba(2,6,23,.18)}
.category-card.homes-cabins::after{background-image:url('../images/categories/homes.jpg')}
.category-card.land::after{background-image:url('../images/categories/land.jpg')}
.category-card.commercial::after{background-image:url('../images/categories/commercial.jpg')}
.category-card.pennsylvania::after{background-image:url('../images/categories/pennsylvania.jpg')}
/* Sellers glass */
.seller-cta{padding:48px 0;background:linear-gradient(180deg,#f7fbff,#f1f5f9)}
/* Sellers glass
 * The home page includes a call-to-action section encouraging sellers to
 * contact the agency.  To align it with the footer styling, tint
 * the glass tile with the same blue tone used in the footer.  Text
 * inside the tile becomes white for contrast while the call-to-action
 * button flips to a white background with blue text.  Generic
 * buttons remain unchanged elsewhere.
 */
.seller-cta .glass-tile{
  max-width:980px;
  margin:0 auto;
  padding:32px 28px;
  border-radius:22px;
  /* Use the footer gradient colour for the sellers tile */
  background:var(--brand-blue);
  color:#fff;
  backdrop-filter:blur(10px) saturate(1.2);
  box-shadow:0 30px 80px rgba(2,6,23,.12);
  text-align:center;
  border:1px solid rgba(255,255,255,.3);
}

/* Ensure links within the sellers call-to-action appear in white. */
.seller-cta .glass-tile a {
  color: #fff;
  text-decoration: underline;
}
.seller-cta .glass-tile a:hover {
  color: #dbeafe;
}
.seller-cta h3{
  font-size:clamp(20px,3vw,36px);
  margin:0 0 10px;
  color:#fff;
}
.seller-cta p{
  font-size:clamp(14px,2vw,18px);
  color:#fff;
  margin:0 auto 16px;
  max-width:760px;
}
/* Restore the base button styles so other parts of the site retain their
 * original colouring.  Buttons default to the primary brand colour with
 * white text, and the `.is-primary` variant uses a slightly darker
 * shade.  Seller specific overrides are defined separately below. */
.btn{
  display:inline-block;
  background:var(--brand-blue);
  color:#fff;
  text-decoration:none;
  padding:10px 16px;
  border-radius:10px;
  font-weight:700;
}
.btn.is-primary{
  background:#0f2f63;
}
/* Seller CTA button overrides: white background with blue text */
.seller-cta .glass-tile .btn{
  background:#fff;
  color:var(--brand-blue);
  border:1px solid var(--brand-blue);
}
/* SEO */
.seo-text{padding:56px 20px;background:#fff}
.seo-text .container{max-width:900px;text-align:center}
.seo-text h3{font-size:clamp(18px,2.6vw,30px);margin:0 0 12px}
.seo-text p{color:#334155;margin:0 auto 10px;line-height:1.8}
/* Footer */
.site-footer{background:linear-gradient(180deg,var(--brand-blue),var(--brand-blue-600));color:#fff;margin-top:60px;position:relative;overflow:hidden}
.site-footer::before{content:"";position:absolute;inset:0;background:url('../images/udre-logo-white.png') center/380px no-repeat;opacity:.12;pointer-events:none;filter:grayscale(100%)}
.footer-inner{max-width:1240px;margin:0 auto;padding:40px 20px}
.offices{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-top:10px}
.offices .office{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:16px;padding:16px;text-align:center}
.footer-inner h4{margin:0 0 6px;font-size:20px}
.offices .office a{color:#fff;text-decoration:underline}
.offices .office a:hover{opacity:.9}
.footer-bottom{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px;font-size:14px}
.footer-bottom a{color:#fff}
/* Cards */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.listing-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.05)}
.listing-card .thumb{position:relative;display:block}
.listing-card .thumb img{display:block;width:100%;height:auto}
.udre-badge{display:inline-block;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:800;color:#fff;background:#123A7A;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.badge-active{background:#32cd32}.badge-pending{background:#f59e0b}.badge-sold{background:#ff0000;text-transform:uppercase}
.listing-card .status{position:absolute;top:10px;left:10px}
.listing-card .card-body{padding:14px}
.listing-card .title{margin:0 0 6px;font-size:18px}
.listing-card .title a{color:#000}
.listing-card .price{color:#111;font-weight:900;margin-bottom:8px;font-size:20px}
.listing-card .excerpt{color:#475569;margin-top:8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.9em}
.listing-card .meta .details,.listing-card .meta .lot{font-weight:800;color:#111}
/* Single */
.single-listing .listing-title{font-size:clamp(28px,3.6vw,44px);line-height:1.2}
.single-listing .listing-gallery{border-radius:20px;overflow:hidden;box-shadow:0 18px 48px rgba(2,6,23,.12);margin:16px 0 20px}
.single-listing .price{font-size:clamp(28px,4.4vw,56px);font-weight:900}
.single-listing .address{font-weight:700;color:#334155;margin-top:4px}
.key-specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:14px 0}
.key-spec{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:10px}
.key-spec img{width:26px;height:26px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.15))}
.key-spec strong{font-size:18px}
.key-spec span{color:#0f2f63;font-weight:700}
.single-listing .entry-content{background:rgba(255,255,255,.6);backdrop-filter:blur(10px);border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin:10px 0;color:#334155}
.single-listing .detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:14px 0}
.single-listing .detail .k{color:#64748b;display:block;font-size:12px;text-transform:uppercase;letter-spacing:.3px}
.single-listing .detail .v{font-weight:800}
.agent-contact{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  margin-top: 32px;
}
.agent-card{
  display:flex;
  gap:20px;
  align-items:flex-start;
}
.agent-card .agent-photo{
  width:120px;
  height:160px;
  object-fit:cover;
  border-radius:16px;
  flex-shrink:0;
}
.agent-contact .contact-form{background:#ffffff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;box-shadow:0 24px 60px rgba(2,6,23,.12)}
/* When used on single listing pages the contact form sits on its own
 * glass tile.  To visually integrate it with the site’s palette,
 * override the default background to use the same deep blue tone as
 * the footer and sellers call-out.  Text inside becomes white for
 * contrast.  Input fields retain their white backgrounds so that
 * visitors can easily see what they’re typing.
 */
.agent-contact .contact-form{
  background:var(--brand-blue);
  border:1px solid var(--brand-blue-600);
  color:#fff;
}
.agent-contact .contact-form label span{
  color:#e2e8f0;
}
.agent-contact .contact-form label input,
.agent-contact .contact-form label textarea{
  background:#fff;
  color:#0f172a;
}
.agent-contact .contact-form button.btn{
  background:#fff;
  color:var(--brand-blue);
  border:1px solid var(--brand-blue);
}
.contact-form .row{margin-bottom:12px}
.contact-form label{position:relative;display:block}
.contact-form label input,.contact-form label textarea{width:100%;border:1.2px solid #cbd5e1;border-radius:12px;padding:12px 14px;padding-top:18px;background:#fff;outline:0;transition:border .12s, box-shadow .12s}
.contact-form label span{position:absolute;left:14px;top:8px;font-size:12px;color:#64748b;transition:all .15s}
.contact-form label input:focus + span,.contact-form label textarea:focus + span{color:#0f2f63;transform:translateY(-6px);font-weight:700}
.contact-form label input:focus,.contact-form label textarea:focus{border-color:#0f2f63;box-shadow:0 0 0 4px rgba(15,47,99,.12)}
.contact-form button.btn{width:100%}
/* Swiper */
.swiper{position:relative}.swiper-slide img{display:block;width:100%;height:auto}.swiper-button-prev,.swiper-button-next{color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.6)}
@media (max-width:900px){.primary-nav .menu{display:none}.nav-toggle{display:block;margin-left:auto;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px}.agent-contact{grid-template-columns:1fr}.grid.four{grid-template-columns:repeat(2,1fr)}}

/* ================================ */
/* Custom refinements for UDRE Next */
/* ================================ */

/* Agents page heading spacing */
.agents-page .page-title {
  margin-left: 20px;
  margin-bottom: 24px;
}

/* Contact page layout
 * The contact page uses the shared agent-contact markup.  On large
 * screens the card and form sit side-by-side; on small screens they
 * stack vertically with ample spacing.  This rule set also
 * standardises colours, spacing and typography for a polished look.
 */
.contact-page .agent-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}
.contact-page .agent-contact .agent-card {
  flex: 0 0 320px;
  background: var(--brand-blue);
  color: #fff;
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-page .agent-contact .agent-card img.agent-photo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}
.contact-page .agent-contact .agent-card h4 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}
.contact-page .agent-contact .agent-card p {
  margin: 0 0 8px;
  color: #e2e8f0;
}
.contact-page .agent-contact .contact-form {
  flex: 1;
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue-600);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(2,6,23,.12);
}
.contact-page .agent-contact .contact-form .row {
  margin-bottom: 16px;
}
.contact-page .agent-contact .contact-form label span {
  color: #cbd5e1;
}
.contact-page .agent-contact .contact-form label input,
.contact-page .agent-contact .contact-form label textarea {
  background: #fff;
  color: #0f172a;
}
.contact-page .agent-contact .contact-form button.btn {
  background: #fff;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}
/* Stack contact elements vertically on small screens */
@media (max-width: 720px) {
  .contact-page .agent-contact {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-page .agent-contact .agent-card {
    flex: 1;
    width: auto;
  }
  .contact-page .agent-contact .contact-form {
    flex: 1;
    width: auto;
  }
}

/* Header reflow: position phone underneath social icons on small screens */
@media (max-width: 1024px) {
  .header-cta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .header-cta .socials {
    order: 1;
  }
  .header-cta .phone {
    order: 2;
  }
  /* Mobile nav overlay */
  body.nav-open .primary-nav .menu {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: #ffffff;
    padding: 60px 24px 24px;
    overflow-y: auto;
    box-shadow: -6px 0 24px rgba(0,0,0,.12);
    z-index: 999;
    transform: translateX(0);
  }
  body.nav-open .nav-toggle {
    position: relative;
    z-index: 1000;
  }
  .primary-nav .menu li {
    margin-bottom: 10px;
  }
  .primary-nav .menu li > a {
    display: block;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 0;
  }
  /* Disable hover activation for submenus on mobile */
  .primary-nav .menu li:hover > .sub-menu {
    display: none;
  }
  .primary-nav .menu li.open > .sub-menu {
    display: block;
    position: static;
    background: #f9fafb;
    padding-left: 12px;
    margin-top: 4px;
    border-left: 2px solid var(--brand-blue);
  }
}

/* Restore desktop alignment ordering for phone/socials */
@media (min-width: 901px) {
  .header-cta {
    flex-direction: row;
    align-items: center;
  }
  .header-cta .socials {
    order: 2;
  }
  .header-cta .phone {
    order: 1;
    margin-right: 14px;
  }
}

/* Hero branding tile adjustments for smaller screens
 * On mobile the tile shrinks a bit and shows more river, but keeps
 * each line on a single row.
 */
@media (max-width: 640px) {
  .branding-tile{
    display:inline-block;
    max-width:92vw;
    padding:8px 14px;
    border-radius:16px;
  }
  .branding-tile img{
    max-height:52px;
    margin:0 auto 4px;
  }
  .branding-tile .small{
    font-size:10px;
    letter-spacing:.18em;
    white-space:nowrap;
  }
  .branding-tile .big{
    font-size:22px;
  }
  .branding-tile .mid{
    font-size:18px;
    margin-top:2px;
  }
}

@media (min-width:641px) and (max-width:900px) {
  .branding-tile{
    display:inline-block;
    max-width:80vw;
    padding:10px 18px;
    border-radius:18px;
  }
  .branding-tile img{
    max-height:60px;
    margin:0 auto 6px;
  }
  .branding-tile .small{
    font-size:11px;
    letter-spacing:.18em;
  }
  .branding-tile .big{
    font-size:26px;
  }
  .branding-tile .mid{
    font-size:20px;
    margin-top:2px;
  }
}

/* Category card refinements */
.category-card {
  overflow: hidden;
}
.category-card::after {
  transform: none !important;
  background-size: cover !important;
  background-position: center !important;
}
.category-card .label {
  padding: 10px 14px;
  font-size: clamp(16px, 2.6vw, 22px);
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,.35);
  border-radius: 12px;
  text-align: left;
}
.category-card.homes-cabins::after {
  background-image: url('../images/categories/homes.jpg');
}
.category-card.land::after {
  background-image: url('../images/categories/land.jpg');
}
.category-card.commercial::after {
  background-image: url('../images/categories/commercial.jpg');
}
.category-card.pennsylvania::after {
  background-image: url('../images/categories/pennsylvania.jpg');
}

/* Agent directory layout */
/* Agent directory layout
 * Display each agent on its own row rather than as a grid of cards.  Cards
 * become horizontally oriented with the portrait on the left and the
 * agent details on the right.  On smaller screens the layout
 * gracefully stacks the content while preserving the portrait aspect
 * ratio.
 */
/* Agent directory layout */
/*
 * Lay each agent card horizontally on its own row across all screen sizes.
 * A fixed portrait photo sits on the left while the details fill the
 * remaining space on the right.  On small screens the layout remains
 * horizontal to avoid excessive stacking; long biographies are
 * truncated to prevent cards from growing too tall.  Actions wrap
 * gracefully as needed.
 */
.agent-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
  /* Limit the overall width of the agent directory and center it on
   * larger screens so individual cards don’t stretch across the
   * entire page.  Reduced from 900px to 760px to give each card
   * breathing room on desktop and align with typical text widths. */
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.agent-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(2,6,23,.1);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  backdrop-filter: blur(10px);
}
/* Portrait column */
.agent-card .agent-photo {
  flex: 0 0 160px;
  max-width: 160px;
  border-radius: 16px;
  overflow: hidden;
}
.agent-card .agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  /* Do not rotate agent photos.  Portrait images will display upright
   * and horizontal images will be cropped to fit the 3:4 aspect.
   */
  transform: none;
  transform-origin: center;
}
/* Info column */
.agent-card .agent-body,
.agent-card .agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.agent-card .agent-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #0f172a;
}
.agent-card .agent-meta {
  color: #475569;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 15px;
}
.agent-card .agent-desc {
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
  /* Do not truncate the bio on the Agents page; display the full
   * description so users can read about each agent in detail. */
  display: block;
  overflow: visible;
}
.agent-card .agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.agent-card .btn {
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.agent-card .btn.is-primary {
  background: var(--brand-blue);
  color: #fff;
}
/* Override secondary button styling on the Agents page.  All buttons
 * (Call, Email, Download Contact) should share the same primary
 * colour to avoid mismatched greys. */
.agent-card .btn.is-secondary {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue-600);
}

/* Adjust listing grid on small screens */
@media (max-width: 640px) {
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  /* Reduce category card height on very small screens so that
   * background images reveal more of the scene without being overly
   * zoomed.  Labels remain clearly legible.
   */
  .category-card {
    height: 160px;
  }
}

/*
 * Agents card layout on small screens.  By default the agent cards
 * arrange the photo and details horizontally which leaves unused
 * vertical space when the bio is long.  On screens up to 900px we
 * switch the layout to a responsive CSS grid so that the
 * biography fills the space beside the photo instead of wrapping
 * beneath it.
 */
@media (max-width: 900px) {
  .agent-grid .agent-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    align-items: flex-start;
  }
  .agent-grid .agent-card .agent-photo {
    grid-row: 1 / 4;
    grid-column: 1;
    width: 120px;
    height: auto;
    flex: none;
  }
  .agent-grid .agent-card .agent-body {
    grid-column: 2;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .agent-grid .agent-card .agent-desc {
    flex-grow: 1;
  }
}

/* ============================ */
/* Testimonials page formatting */
/* ============================ */
.testimonials-page {
  padding: 40px 20px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(2,6,23,.08);
}
.testimonial-name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}
.testimonial-meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}
.testimonial-content p {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #334155;
}

/* =========================== */
/* Contact page custom styles  */
/* =========================== */
/* Use the brand blue on the contact page and refine the layout.  The
 * left side card (contact-card) uses a deep blue background with
 * white text, while the form on the right also adopts the same
 * palette.  Inputs remain white for readability and the send
 * button flips to white text on a blue background for contrast. */
.contact-page .contact-card {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue-600);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(2,6,23,.12);
}
.contact-page .contact-card h4 {
  margin-top: 0;
  font-size: 24px;
  font-weight: 800;
}
.contact-page .contact-card a {
  color: #fff;
  text-decoration: underline;
}
.contact-page .contact-card a:hover {
  opacity: .88;
}
.contact-page .agent-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-page .agent-contact {
    grid-template-columns: 1fr;
  }
  .contact-page .contact-card,
  .contact-page .contact-form {
    margin-bottom: 20px;
  }
}
.contact-page .contact-form {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue-600);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(2,6,23,.12);
}
.contact-page .contact-form label span {
  color: #e2e8f0;
}
.contact-page .contact-form input,
.contact-page .contact-form textarea {
  background: #fff;
  color: #0f172a;
}
.contact-page .contact-form .btn {
  background: #fff;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}
