/* ============================================
   STARS - Sir Tito Arellano Realty Services
   Brand Stylesheet
   ============================================ */

/* === DESIGN TOKENS === */
:root {
  --color-dark-brown: #50391c;
  --color-dark-brown-rgb: 80, 57, 28;
  /* The new tokens' moss-strong and moss-deep (src/styles/tokens.css): the old #6f8658 was 4.0:1 on
     white, under WCAG AA for small text and for white button labels (axe, part 4B) */
  --color-moss-green: #566d40;
  --color-moss-green-dark: #475a35;
  --color-tan: #c4a587;
  --color-tan-light: #e8d9c8;
  --color-tan-lighter: #f5efe8;
  --color-blue-teal: #73a1b1;
  --color-blue-teal-dark: #5d8a9a;
  --color-white: #ffffff;
  --color-off-white: #faf8f5;
  --color-text: #3a2e1f;
  --color-text-light: #7a6b58;
  --color-border: #e2d5c5;

  --font-heading: 'Host Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Liter', 'Georgia', serif;

  --shadow-sm: 0 1px 3px rgba(var(--color-dark-brown-rgb), 0.08);
  --shadow-md: 0 4px 12px rgba(var(--color-dark-brown-rgb), 0.1);
  --shadow-lg: 0 8px 30px rgba(var(--color-dark-brown-rgb), 0.12);
  --shadow-xl: 0 16px 50px rgba(var(--color-dark-brown-rgb), 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s ease;
  --header-height: 80px;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
  overflow-x: clip; /* clip, unlike hidden, makes no scroll box, so position: sticky works (listing inquiry form) */
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark-brown);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-moss-green);
  color: var(--color-white);
  border-color: var(--color-moss-green);
}

.btn--primary:hover {
  background: var(--color-moss-green-dark);
  border-color: var(--color-moss-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-moss-green);
  border-color: var(--color-moss-green);
}

.btn--outline:hover {
  background: var(--color-moss-green);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === SECTION UTILITIES === */
.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-moss-green);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
}

.section-header--center .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.header-logo-img {
  display: block;
  height: calc(var(--header-height) - 12px);
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-moss-green);
}

.nav-link--cta {
  background: var(--color-moss-green);
  color: var(--color-white) !important;
  padding: 10px 24px;
  margin-left: 8px;
}

.nav-link--cta:hover {
  background: var(--color-moss-green-dark);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark-brown);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover no-repeat;
  margin-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--color-dark-brown-rgb), 0.55) 0%,
    rgba(var(--color-dark-brown-rgb), 0.35) 50%,
    rgba(var(--color-dark-brown-rgb), 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 16px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-tan-light);
  margin-bottom: 40px;
  font-style: italic;
  letter-spacing: 0.06em;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-xl);
  max-width: 650px;
  margin: 0 auto;
}

.search-icon {
  width: 22px;
  height: 22px;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
}

.search-input::placeholder {
  color: var(--color-text-light);
}

.search-btn {
  background: var(--color-moss-green);
  color: var(--color-white);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--color-moss-green-dark);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.search-tag {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.search-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   BROWSE HOMES SECTION
   ============================================ */
.browse-section {
  padding: 100px 0;
  background: var(--color-off-white);
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.browse-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}

.browse-card--large {
  grid-row: span 2;
  aspect-ratio: auto;
}

.browse-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.browse-card:hover img {
  transform: scale(1.08);
}

.browse-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--color-dark-brown-rgb), 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background var(--transition);
}

.browse-card:hover .browse-card-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(var(--color-dark-brown-rgb), 0.8) 100%);
}

.browse-card-overlay h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.browse-card-overlay p {
  color: var(--color-tan-light);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 100px 0;
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--color-tan);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-badge {
  position: absolute;
  bottom: -24px;
  left: 24px;
  background: var(--color-moss-green);
  color: var(--color-white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.badge-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.about-content .section-title {
  margin-top: 4px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* Mobile-only image (hidden on desktop) */
.about-image-mobile {
  display: none;
  position: relative;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-mobile img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-badge-mobile {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--color-moss-green);
  color: var(--color-white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge-mobile .badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge-mobile .badge-text {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.credential {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.credential-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-moss-green);
  margin-top: 2px;
}

.credential-icon svg {
  width: 100%;
  height: 100%;
}

.credential strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark-brown);
}

.credential span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: 100px 0;
  background: var(--color-off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: block;
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-moss-green);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--color-moss-green);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   FEATURED BLOG POST
   ============================================ */
.featured-blog-section {
  padding: 100px 0;
  background: var(--color-white);
}

.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-white);
}

.featured-post-image {
  position: relative;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  transition: transform 0.5s ease;
}

.featured-post:hover .featured-post-image img {
  transform: scale(1.04);
}

.post-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--color-moss-green);
  color: var(--color-white);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-post-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.post-date,
.post-read {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.featured-post-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  line-height: 1.35;
}

.featured-post-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ============================================
   OTHER BLOG POSTS
   ============================================ */
.blog-posts-section {
  padding: 60px 0 100px;
  background: var(--color-white);
}

.blog-posts-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-all-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-moss-green);
  transition: all var(--transition);
}

.view-all-link:hover {
  color: var(--color-moss-green-dark);
  gap: 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-content .post-date {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--color-dark-brown);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.read-more {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-moss-green);
  transition: all var(--transition);
}

.read-more:hover {
  color: var(--color-moss-green-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-dark-brown);
  color: var(--color-tan-light);
}

.footer-top {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

/* White card: the logo's dark roofs and maroon text disappear on the brown footer. */
.footer-logo {
  display: inline-block;
  background: var(--color-white);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.footer-logo img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-tan);
  font-style: italic;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-tan);
  opacity: 0.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(196, 165, 135, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-tan);
  transition: all var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--color-moss-green);
  border-color: var(--color-moss-green);
  color: var(--color-white);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-tan);
  opacity: 0.8;
  transition: all var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-white);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--color-tan);
  opacity: 0.85;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-moss-green);
}

.footer-license {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(196, 165, 135, 0.2);
}

.footer-license strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-white);
  margin-bottom: 2px;
}

.footer-license span {
  font-size: 0.8rem;
  color: var(--color-tan);
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(196, 165, 135, 0.15);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-tan);
  opacity: 0.6;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Visitors who turn motion off see every section at once */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

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

  .browse-card--large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/7;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    padding: 0 28px 40px;
    padding-top: calc(var(--header-height) + 20px);
    box-shadow: var(--shadow-xl);
    transition: right 0.35s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .header-nav.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }

  .nav-link {
    padding: 14px 18px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--color-tan-lighter);
  }

  .nav-link--cta {
    text-align: center;
    margin-left: 0;
    margin-top: 16px;
    padding: 14px 24px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .search-bar {
    flex-direction: column;
    padding: 14px;
    gap: 10px;
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .search-icon {
    display: none;
  }

  .search-input {
    padding: 12px 14px;
    text-align: center;
    font-size: 0.88rem;
    width: 100%;
  }

  .search-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .browse-section,
  .about-section,
  .services-section,
  .featured-blog-section,
  .blog-posts-section {
    padding: 60px 0;
  }

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

  .browse-card--large {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-image {
    display: none;
  }

  .about-image-mobile {
    display: block;
  }

  .about-credentials {
    grid-template-columns: 1fr;
  }

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

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post-image img {
    min-height: 250px;
  }

  .featured-post-content {
    padding: 28px 24px;
  }

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

  .blog-posts-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-top {
    padding: 60px 0 40px;
  }
}

@media (max-width: 480px) {
  .search-tags {
    gap: 6px;
  }

  .search-tag {
    padding: 5px 12px;
    font-size: 0.72rem;
  }

  .about-badge {
    bottom: -16px;
    left: 16px;
    padding: 14px 20px;
  }

  .badge-number {
    font-size: 1.8rem;
  }
}
