/*
Theme Name: Coast Home Link
Theme URI: https://coastrs.com/
Author: Coast Realty Solutions
Author URI: https://coastrs.com/
Description: WordPress conversion of the Base44 Coast Realty Solutions website. Includes the landing page, MLS listings iframe page, animated service tabs, testimonials, mobile navigation, and WordPress-powered contact form.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coast-home-link
Tags: custom-background, custom-logo, one-column, responsive-layout, real-estate
*/

:root {
  --coast-bg: #141410;
  --coast-bg-alt: #181818;
  --coast-bg-deep: #0e0d0a;
  --coast-card: #1e1c18;
  --coast-card-soft: #212118;
  --coast-gold: #c9a96e;
  --coast-gold-light: #e8cc8c;
  --coast-gold-bright: #d4a96a;
  --coast-ink: #1a1208;
  --coast-text: #ede8e0;
  --coast-heading: #f1e4d1;
  --coast-muted: rgba(237, 232, 224, 0.58);
  --coast-muted-strong: rgba(237, 232, 224, 0.75);
  --coast-border: rgba(255, 255, 255, 0.08);
  --coast-border-gold: rgba(201, 169, 110, 0.22);
  --coast-font-heading: 'Playfair Display', Georgia, serif;
  --coast-font-body: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --coast-container: 72rem;
  --coast-nav-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--coast-bg);
  color: var(--coast-text);
  font-family: var(--coast-font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-nav {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  background: rgba(201, 169, 110, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #070f1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.35);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 169, 110, 0.65);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--coast-gold);
  color: var(--coast-ink);
  border-radius: 3px;
}

.coast-site {
  min-height: 100vh;
  background: var(--coast-bg);
}

.coast-container {
  width: min(100%, var(--coast-container));
  margin: 0 auto;
  padding: 0 2rem;
}

.site-main {
  min-height: 60vh;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(201, 169, 110, 0.72);
  font-family: var(--coast-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--coast-text);
  font-family: var(--coast-font-heading);
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-rule {
  width: 48px;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--coast-gold);
}

.section-copy {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: rgba(237, 232, 224, 0.52);
  font-size: 0.9rem;
  line-height: 1.75;
}

.coast-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.85rem 1.85rem;
  border: 0;
  border-radius: 3px;
  background: var(--coast-gold);
  color: var(--coast-ink);
  font-family: var(--coast-font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease, gap 180ms ease;
}

.coast-button:hover,
.coast-button:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.coast-button:active {
  transform: scale(0.98);
}

.coast-button.is-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.coast-button.is-outline:hover,
.coast-button.is-outline:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

/* Header */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 14px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 350ms ease, background 350ms ease, border-color 350ms ease, backdrop-filter 350ms ease;
}

.site-nav.is-scrolled,
body:not(.home) .site-nav {
  padding: 8px 0;
  background: rgba(22, 17, 12, 0.95);
  border-bottom-color: rgba(201, 169, 110, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-nav__brand img {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.site-nav__brand-text {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--coast-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--coast-border-gold);
  border-radius: 50%;
  color: var(--coast-gold);
  font-family: var(--coast-font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav__links a,
.site-nav__links button {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--coast-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav__links a:hover,
.site-nav__links button:hover,
.site-nav__links a:focus-visible,
.site-nav__links button:focus-visible {
  color: #fff;
  outline: none;
}

.site-nav__links .is-gold {
  color: var(--coast-gold);
}

.site-nav__links .nav-cta {
  margin-left: 0.25rem;
  padding: 0.62rem 1.25rem;
  border-radius: 2px;
  background: var(--coast-gold);
  color: var(--coast-ink);
  letter-spacing: 0.05em;
}

.site-nav__links .nav-cta:hover,
.site-nav__links .nav-cta:focus-visible {
  color: var(--coast-ink);
  opacity: 0.86;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

.site-nav__toggle svg {
  transition: transform 180ms ease;
}

.site-nav__toggle.is-open svg {
  transform: rotate(90deg);
}

.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 490;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1.1rem 2rem;
  background: rgba(22, 17, 12, 0.98);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body.admin-bar .mobile-drawer {
  top: 118px;
}

.mobile-drawer.is-open {
  display: flex;
  animation: drawerIn 220ms ease both;
}

.mobile-drawer a {
  padding: 0.9rem 0;
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-drawer a:hover,
.mobile-drawer a:focus-visible {
  color: #fff;
}

.mobile-drawer .is-gold {
  color: var(--coast-gold);
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero-section {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-section__bg,
.hero-section__overlay {
  position: absolute;
  inset: 0;
}

.hero-section__bg {
  background-position: center;
  background-size: cover;
  filter: brightness(0.38);
  transform: scale(1.05);
}

.hero-section__overlay {
  background: linear-gradient(to bottom, rgba(20, 15, 10, 0.55) 0%, rgba(20, 15, 10, 0.15) 40%, rgba(20, 15, 10, 0.8) 100%);
}

.hero-section__content {
  position: relative;
  z-index: 2;
  width: min(100%, 58rem);
  padding: 8rem 2rem 6rem;
}

.hero-section__headline {
  margin: 0 0 1.45rem;
  color: #fff;
  font-family: var(--coast-font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-section__headline em {
  display: block;
  color: var(--coast-gold-bright);
  font-style: italic;
}

.hero-section__lead {
  max-width: 44rem;
  margin: 0 auto 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.hero-section__sublead {
  max-width: 36rem;
  margin: 0 auto 2.35rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
  line-height: 1.75;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-section__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-section__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, rgba(201, 169, 110, 0.65), transparent);
}

[data-animate] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.is-visible[data-animate],
.hero-section [data-animate] {
  opacity: 1;
  transform: translateY(0);
}

/* Search CTA */
.search-cta {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  background: var(--coast-bg-deep);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  text-align: center;
}

.search-cta .section-title {
  font-size: clamp(1.55rem, 2.3vw, 1.95rem);
}

.search-cta p {
  max-width: 28rem;
  margin: 1rem auto 1.8rem;
  color: rgba(237, 232, 224, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Services */
.services-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: var(--coast-bg-alt);
}

.services-tabs {
  display: inline-flex;
  max-width: 100%;
  margin: 2.5rem 0 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.services-tabs button {
  min-width: 8.5rem;
  padding: 0.88rem 1.75rem;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.services-tabs button:last-child {
  border-right: 0;
}

.services-tabs button.is-active,
.services-tabs button[aria-selected='true'] {
  background: var(--coast-gold);
  color: var(--coast-ink);
}

.service-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--coast-border);
  border-radius: 6px;
  background: var(--coast-card-soft);
}

.service-panel.is-active {
  display: grid;
  animation: fadeUp 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.service-panel__image {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: #111;
}

.service-panel__image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.85);
  transition: transform 700ms ease;
}

.service-panel:hover .service-panel__image img {
  transform: scale(1.05);
}

.service-panel__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 45%, rgba(24, 20, 14, 0.72));
}

.service-panel__tagline {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 2;
  display: inline-flex;
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 3px;
  background: rgba(201, 169, 110, 0.18);
  color: var(--coast-gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.service-icon,
.contact-icon,
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--coast-border-gold);
  border-radius: 4px;
  background: rgba(201, 169, 110, 0.1);
  color: var(--coast-gold);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.45rem;
}

.service-panel h3 {
  margin: 0 0 1rem;
  color: var(--coast-text);
  font-family: var(--coast-font-heading);
  font-size: clamp(1.65rem, 3vw, 2rem);
  line-height: 1.15;
}

.service-panel p {
  margin: 0 0 1.65rem;
  color: rgba(237, 232, 224, 0.58);
  font-size: 0.9rem;
  line-height: 1.78;
}

.service-panel ul {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.service-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(237, 232, 224, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.service-panel li svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--coast-gold);
}

.service-panel .coast-button {
  align-self: flex-start;
}

.service-panel .coast-button:hover {
  gap: 0.8rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About */
.about-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: var(--coast-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  margin: 3.5rem 0 5rem;
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo {
  position: relative;
  width: min(100%, 320px);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
  background: #19130f;
}

.about-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
}

.about-photo::before,
.about-photo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(to left, var(--coast-gold), transparent);
}

.about-photo::before {
  width: 4rem;
  height: 2px;
}

.about-photo::after {
  width: 2px;
  height: 4rem;
  background: linear-gradient(to bottom, var(--coast-gold), transparent);
}

.broker-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 4px;
  background: rgba(20, 16, 10, 0.92);
}

.broker-badge span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--coast-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.broker-badge strong {
  color: var(--coast-text);
  font-family: var(--coast-font-heading);
  font-size: 1.15rem;
}

.about-bio h3 {
  margin: 0 0 0.1rem;
  color: var(--coast-text);
  font-family: var(--coast-font-heading);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.about-role {
  margin: 0 0 1.45rem;
  color: var(--coast-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-bio p:not(.about-role) {
  margin: 0 0 1rem;
  color: rgba(237, 232, 224, 0.62);
  font-size: 0.9rem;
  line-height: 1.78;
}

.about-bio a {
  color: var(--coast-gold);
}

.about-bio a:hover,
.about-bio a:focus-visible {
  opacity: 0.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.about-tags span {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--coast-border-gold);
  border-radius: 3px;
  background: rgba(201, 169, 110, 0.1);
  color: var(--coast-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pillar-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  background: var(--coast-card);
  transition: transform 220ms ease, border-color 220ms ease;
}

.pillar-card:hover,
.pillar-card:focus-within {
  transform: scale(1.02);
  border-color: rgba(201, 169, 110, 0.24);
}

.pillar-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.2rem;
  transition: transform 220ms ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1);
}

.pillar-card h4 {
  margin: 0 0 0.55rem;
  color: var(--coast-text);
  font-family: var(--coast-font-heading);
  font-size: 1.2rem;
}

.pillar-card p {
  margin: 0;
  color: rgba(237, 232, 224, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Stats */
.stats-section {
  padding: 5rem 0;
  background: var(--coast-gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--coast-ink);
  font-family: var(--coast-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin: 0 0 0.25rem;
  color: rgba(26, 18, 8, 0.85);
  font-size: 0.9rem;
  font-weight: 800;
}

.stat-desc {
  margin: 0;
  color: rgba(26, 18, 8, 0.55);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* Testimonials */
.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: var(--coast-bg-alt);
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.testimonials-carousel::before,
.testimonials-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 6rem;
  pointer-events: none;
}

.testimonials-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--coast-bg-alt), transparent);
}

.testimonials-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--coast-bg-alt), transparent);
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: infiniteDrift 45s linear infinite;
}

.carousel-track:hover,
.carousel-track:focus-within {
  animation-play-state: paused;
}

.testimonial-card {
  flex: 0 0 20rem;
  width: 20rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  background: var(--coast-card);
}

.quote-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(201, 169, 110, 0.36);
}

.stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.8rem;
  color: var(--coast-gold);
  letter-spacing: 0.04em;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  color: rgba(237, 232, 224, 0.72);
  font-size: 0.9rem;
  line-height: 1.7;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-meta strong {
  color: var(--coast-text);
  font-size: 0.9rem;
}

.testimonial-source {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--coast-border-gold);
  border-radius: 3px;
  background: rgba(201, 169, 110, 0.12);
  color: var(--coast-gold);
  font-size: 0.73rem;
  font-weight: 700;
}

@keyframes infiniteDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Contact */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: var(--coast-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 3rem;
  margin-top: 3rem;
}

.contact-list {
  display: grid;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.1rem;
}

.contact-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--coast-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-value {
  margin: 0;
  color: rgba(237, 232, 224, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-line;
}

.contact-value a:hover,
.contact-value a:focus-visible {
  color: #fff;
}

.contact-card {
  padding: clamp(2rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  background: var(--coast-card);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(237, 232, 224, 0.44);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.property-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--coast-text);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.form-field input,
.form-field textarea {
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.property-search input::placeholder {
  color: rgba(237, 232, 224, 0.38);
}

.form-field input:focus,
.form-field textarea:focus,
.property-search input:focus {
  border-color: rgba(201, 169, 110, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-success {
  border: 1px solid rgba(201, 169, 110, 0.32);
  background: rgba(201, 169, 110, 0.12);
  color: var(--coast-text);
}

.form-message.is-error {
  border: 1px solid rgba(255, 100, 100, 0.34);
  background: rgba(255, 100, 100, 0.1);
  color: #ffcfca;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(26, 18, 8, 0.3);
  border-top-color: var(--coast-ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Listings */
.listings-page {
  min-height: 100vh;
  background: var(--coast-bg);
}

.listings-header {
  padding: 7.5rem 0 1rem;
}

.listings-layout {
  padding: 2rem 0 4rem;
}

.property-search-wrap {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 5px;
  background: var(--coast-bg-deep);
}

.property-search-label {
  margin: 0 0 0.9rem;
  text-align: center;
  color: rgba(201, 169, 110, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.property-search {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) repeat(4, minmax(105px, 1fr)) minmax(120px, auto);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.property-search__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.property-search__field svg,
.property-search__field .field-icon {
  flex: 0 0 auto;
  color: var(--coast-gold);
  font-size: 0.8rem;
}

.property-search input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.86rem;
}

.property-search button {
  border-radius: 0;
}

.listings-frame-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: #fff;
}

.listings-frame {
  display: block;
  width: 100%;
  height: 750px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--coast-bg-deep);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.site-footer__bar {
  height: 2px;
  background: linear-gradient(to right, var(--coast-gold), var(--coast-gold-light), var(--coast-gold));
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
}

.site-footer img {
  width: auto;
  height: 40px;
}

.site-footer__brand-text {
  color: rgba(237, 232, 224, 0.78);
  font-family: var(--coast-font-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.site-footer__copyright {
  margin: 0;
  color: rgba(237, 232, 224, 0.33);
  font-size: 0.76rem;
  text-align: center;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__links a {
  color: rgba(237, 232, 224, 0.42);
  font-size: 0.76rem;
  transition: color 180ms ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #fff;
}

.mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 470;
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  background: rgba(14, 13, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 1rem;
  color: rgba(237, 232, 224, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.mobile-bottom-nav svg {
  color: var(--coast-gold);
}

/* Generic WP content */
.page-shell,
.error-shell {
  padding: 8rem 0 5rem;
  background: var(--coast-bg);
}

.page-card,
.error-card {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: var(--coast-card);
}

.page-card h1,
.error-card h1 {
  margin: 0 0 1rem;
  color: var(--coast-text);
  font-family: var(--coast-font-heading);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.05;
}

.page-card p,
.page-card li,
.error-card p {
  color: rgba(237, 232, 224, 0.7);
  line-height: 1.8;
}

.page-card a {
  color: var(--coast-gold);
}

.wp-block-separator {
  border-color: rgba(201, 169, 110, 0.22);
}

/* Responsive */
@media (max-width: 1120px) {
  .site-nav__links {
    gap: 1rem;
  }

  .site-nav__links a,
  .site-nav__links button {
    font-size: 0.68rem;
  }
}

@media (max-width: 1024px) {
  .site-nav__links {
    display: none;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .service-panel,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-panel__image::after {
    background: linear-gradient(to bottom, transparent 40%, rgba(24, 20, 14, 0.72));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .property-search {
    grid-template-columns: 1fr 1fr;
  }

  .property-search__field {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .property-search button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 782px) {
  body.admin-bar .mobile-drawer {
    top: 118px;
  }
}

@media (max-width: 768px) {
  .coast-container,
  .site-nav__inner {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .site-nav__brand img {
    height: 48px;
  }

  .hero-section__content {
    padding: 7rem 1.25rem 5rem;
  }

  .hero-section__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-section__actions .coast-button {
    width: min(100%, 18rem);
  }

  .services-section,
  .about-section,
  .testimonials-section,
  .contact-section {
    padding: 4.5rem 0;
  }

  .services-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .services-tabs button {
    min-width: 0;
    padding: 0.8rem 0.6rem;
    font-size: 0.82rem;
  }

  .service-panel__image,
  .service-panel__image img {
    min-height: 270px;
  }

  .service-panel__content,
  .pillar-card,
  .contact-card {
    padding: 1.5rem;
  }

  .about-grid {
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex-basis: 18rem;
    width: 18rem;
  }

  .site-footer__inner {
    flex-direction: column;
    padding-bottom: 5.5rem;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .listings-layout {
    padding-bottom: 6rem;
  }
}

@media (max-width: 600px) {
  .mobile-drawer {
    top: 64px;
  }

  body.admin-bar .mobile-drawer {
    top: 110px;
  }

  .hero-section__headline {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .stats-grid,
  .property-search {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .stat-card:nth-child(2),
  .stat-card:last-child {
    border-right: 0;
  }

  .stat-card:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .site-footer__links {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }
}
