/* ============================================================
   HBR COMMON STYLES — Huntington Beach Realty
   Shared across all public-facing pages
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #f5f5f5;
}

/* ── SKIP LINK (Accessibility) ─────────────────────────────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: #fff;
    padding: 8px 16px;
    z-index: 100000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ── HEADER ─────────────────────────────────────────────────── */
header {
    background: linear-gradient(135deg, #005fea 0%, #008ef3 100%);
    color: white;
    padding-top: 10px;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
    gap: 6px;
	margin-left: 10px;
}

/* ── LOGO ────────────────────────────────────────────────────── */
.logo {
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 1em;
    font-weight: bold;
}

.logo-byline {
    font-size: 0.56em;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.logo img {
    height: 60px;
    width: auto;
}

/* ── NAV LINKS ──────────────────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 40px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    opacity: 1;
}

/* ── MOBILE MENU SPACING CONTROL ─────────────────────────────
   Change --menu-item-padding to adjust top & bottom space
   on every menu link. One number controls everything.
────────────────────────────────────────────────────────── */
:root {
    --menu-item-padding: 0.7em;
}

/* ── HAMBURGER ──────────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ── MOBILE MENU OVERLAY ────────────────────────────────────── */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

/* ── MOBILE MENU SLIDE-IN PANEL ─────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -320px;
    width: fit-content;
    min-width: 180px;
    max-height: calc(100vh - 70px);
    height: auto;
    background: linear-gradient(160deg, rgba(102, 126, 234, 0.70) 0%, rgba(118, 75, 162, 0.70) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 0 8px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 999;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 500;
    padding: var(--menu-item-padding) 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, padding-left 0.2s ease;
    white-space: normal;
    display: block;
}

.mobile-menu a:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    padding-left: 36px;
}

/* ── PAGE WRAPPER (2-col layout) ─────────────────────────────── */
.page-wrapper {
	grid-template-columns: 1fr 280px;
	gap: 30px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 20px;
}

.main-content {
    width: 100%;
}

/* ── PAGE TITLE ─────────────────────────────────────────────── */
.page-title {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 50px;
    font-weight: 700;
}

/* ── CONTENT SECTIONS ───────────────────────────────────────── */
.content-section {
	background: white;
	padding: 35px;
	border-radius: 12px;
	margin-bottom: 30px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	margin-left: auto;
	margin-right: auto;
}

.content-section h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.content-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1em;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-form h3 {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* ── FORM GROUPS ────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: inherit;
    transition: border-color 0.3s ease;
    word-wrap: break-word;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    max-width: 100%;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.sidebar-form button,
button.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-family: inherit;
}

.sidebar-form button:hover,
button.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    padding: 12px 30px;
    font-size: 0.95em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    padding: 12px 30px;
    font-size: 0.95em;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

/* ── SUCCESS / ERROR MESSAGES ───────────────────────────────── */
.success-message,
.sidebar-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
    font-size: 0.9em;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

/* ── STATS GRID ─────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95em;
    font-weight: 500;
}

/* ── VALUES / FEATURE CARDS ─────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.value-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 12px;
}

.value-title {
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.value-description {
    color: #666;
    line-height: 1.5;
    font-size: 0.9em;
}

/* ── LISTING CARDS ───────────────────────────────────────────── */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.listing-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    position: relative;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.listing-info {
    padding: 20px;
}

.listing-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.listing-address {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.listing-details {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.detail-item i {
    color: #667eea;
    font-size: 1.1em;
}

.listing-description {
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
}

.listing-actions {
    display: flex;
    gap: 10px;
}

.listing-actions button {
    flex: 1;
    padding: 10px;
    font-size: 0.9em;
}

/* ── MAP SECTION ────────────────────────────────────────────── */
.map-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-section h2 {
    margin-bottom: 20px;
    color: #667eea;
}

#map {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

/* ── LOADING SPINNER ─────────────────────────────────────────── */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.loading i {
    font-size: 3em;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    color: #666;
}

/* ── IDX BROKER ACCESSIBILITY PATCH ─────────────────────────── */
[id^="idx"] *:focus, [class*="IDX"] *:focus, #idxStart *:focus,
.idx-omnibar-inner *:focus, .idx-search-form *:focus {
    outline: 3px solid #667eea !important;
    outline-offset: 2px !important;
}

[id^="idx"] *, [class*="IDX"] *, #idxStart * {
    font-size: max(14px, 0.875em) !important;
}

[id^="idx"] a, [id^="idx"] button, [id^="idx"] input, [id^="idx"] select,
[class*="IDX"] a, [class*="IDX"] button, [class*="IDX"] input, [class*="IDX"] select,
#idxStart a, #idxStart button, #idxStart input, #idxStart select {
    min-height: 44px !important;
    min-width: 44px !important;
}

[id^="idx"] p, [id^="idx"] span, [id^="idx"] label, [id^="idx"] td,
[class*="IDX"] p, [class*="IDX"] span, [class*="IDX"] label,
#idxStart p, #idxStart span, #idxStart label {
    color: #333 !important;
}

[id^="idx"] img, [class*="IDX"] img, #idxStart img {
    background: #e8ecf0 !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

[id^="idx"] a, [class*="IDX"] a, #idxStart a {
    text-decoration: underline !important;
}

[id^="idx"] *:hover, [class*="IDX"] *:hover, #idxStart *:hover {
    opacity: 1 !important;
}

[id^="idx"] .error, [id^="idx"] .alert, [id^="idx"] [role="alert"],
[class*="IDX"] .error, [class*="IDX"] [role="alert"] {
    font-weight: 600 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
}

/* ── INFO BOX ───────────────────────────────────────────────── */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 30px;
    color: #004085;
}

/* ── BROKER / TEAM PROFILE LAYOUT ───────────────────────────── */
.broker-section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.broker-container {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 30px;
	align-items: start;
	padding-top: 0px;
}

.broker-image {
    width: 220px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.broker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broker-content h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 8px;
}

.broker-title {
    color: #764ba2;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.broker-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.95em;
}

/* ── FORM SECTIONS (sell/manage forms) ──────────────────────── */
.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label .required {
    color: #ff6b6b;
}

.form-group.checkbox-group {
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.page-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 15px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.pagination button.active {
    background: #667eea;
    color: white;
}

/* ── TEAM CARDS ─────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.team-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
}

.team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-info {
    padding: 18px;
}

.team-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.team-title {
    font-size: 0.95em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-bio {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.85em;
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
}

.contact-item i {
    color: #667eea;
    font-size: 1em;
    width: 16px;
    text-align: center;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ── TESTIMONIAL CARDS ──────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 4em;
    color: #667eea;
    opacity: 0.15;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #f5a623;
    font-size: 1em;
}

.testimonial-text {
    color: #555;
    line-height: 1.7;
    font-size: 0.95em;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name {
    font-weight: 700;
    color: #333;
    font-size: 0.95em;
}

.testimonial-detail {
    font-size: 0.8em;
    color: #999;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════════════ */

/* ── TABLET / MOBILE (≤ 900px) ──────────────────────────────── */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    nav {
        display: none;
    }

    .logo img {
        height: 45px;
    }

    .logo {
        font-size: 1.4em;
        gap: 10px;
    }

    .logo-main {
        font-size: 1em;
    }

    .logo-byline {
        font-size: 0.56em;
    }

    .page-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .page-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .sidebar {
        position: static;
    }

    .broker-container {
        grid-template-columns: 1fr;
    }

    .broker-image {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    #map {
        height: 300px;
    }

    .team-grid {
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .form-container {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }
}

/* ── PHONE (≤ 480px) ────────────────────────────────────────── */
@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }

    .logo {
        font-size: 1.1em;
        gap: 8px;
    }

    .page-title {
        font-size: 1.5em;
    }

    .content-section {
        padding: 20px;
    }

    .content-section h2 {
        font-size: 1.3em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-form {
        padding: 15px;
    }

    .listing-image {
        height: 200px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        width: 100%;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .page-subtitle {
        font-size: 1em;
    }

    .form-section-title {
        font-size: 1.1em;
    }

    .checkbox-group {
        flex-direction: column;
    }

    input, select, textarea {
        font-size: 16px !important; /* prevents iOS zoom-on-focus */
    }
}

/* ── EXTRA SMALL (≤ 360px) ──────────────────────────────────── */
@media (max-width: 360px) {
    .logo img {
        height: 30px;
    }

    .logo {
        font-size: 0.95em;
        gap: 6px;
    }

    .logo-byline {
        display: none;
    }
}
