/* Brand palette */
:root {
  --red: #cd0000;
  --red-dark: #7f0000;
  --red-light: #b30000;
  --bg: #f7f7f8;
  --text: #1c1c1f;
  --muted: #6b6b73;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--white);
  box-shadow: var(--shadow);
}

/* Why work with us (careers) - background image + red overlay */
.why-work-section {
  position: relative;
  color: var(--white);
  overflow: hidden;
  padding: 4rem 0;
}
.why-work-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.why-work-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  z-index: 1;
}
.why-work-section .container {
  position: relative;
  z-index: 2;
}
.why-work-section .section-header h2 {
  color: var(--white);
}
.why-work-section .section-header p {
  color: rgba(255, 255, 255, 0.95);
}
.why-work-list {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  max-width: 40rem;
}
.why-work-list li {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.why-work-list li::marker {
  color: var(--white);
}

/* Top bar */
.topbar {
  background: var(--red);
  color: var(--white);
  font-size: 0.95rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}
.topbar-contact { font-weight: 600; }

/* Header */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0;   /* tightened vertical padding */
}
.brand img.logo {
  height: 70px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0.5rem 0;   /* padding on top and bottom only */
}
.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: var(--red); }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:focus {
  outline: none;
}
.btn-sm { padding: 0.5rem 0.8rem; font-weight: 600; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-light { background: var(--white); color: var(--red); border: 1px solid #e8e8ea; }
.btn-light:hover { background: #fff5f5; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav.open { position: absolute; inset: 94px 0 auto 0; background: var(--white); padding: 1rem; flex-direction: column; box-shadow: var(--shadow); }

/* Hero */
.hero {
  position: relative;
  min-height: 35rem;
  display: grid;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(64,64,64,0.5));
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  padding: 3.5rem 0;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 700px;
  margin: 0 0 1rem;
}
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Badges */
.badges { background: #fff; }
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
}
.badge {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  text-align: center;
  background: #fff;
}
.badge strong { color: var(--red); display: block; }

/* Why Choose Reilley */
.why-choose-section {
  background: var(--white);
}
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.why-choose-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-choose-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.why-choose-icon {
  color: var(--red);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(205, 0, 0, 0.08);
  border-radius: 50%;
}
.why-choose-item h3 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  color: var(--text);
  font-weight: 700;
}
.why-choose-item p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Section header */
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.25rem;
}
.section-header p {
  color: var(--muted);
  margin: 0.25rem 0 1.5rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
/* Careers cards - 4 columns, smaller size */
.careers-cards {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.careers-cards .card {
  display: flex;
  flex-direction: column;
}
.careers-cards .card img {
  height: 140px;
}
.careers-cards .card-body {
  padding: 0.75rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.careers-cards .card-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.careers-cards .card-body .list {
  font-size: 0.9rem;
  padding-left: 0.875rem;
}
.careers-cards .card-body .list li {
  margin: 0.2rem 0;
}
.careers-cards .card-body .btn {
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
}

/* Tablet - careers cards show 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
  .careers-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  /* Community grid tablet - 2 columns */
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.card img {
  width: 100%; height: 200px; object-fit: cover;
}
.services-section .card img {
  height: 260px; /* 30% taller than 200px */
}
.card-body {
  padding: 1rem 1rem 1.25rem;
}
.card-body h3 { margin: 0 0 0.25rem; }
.card-body p { color: var(--muted); margin: 0 0 0.75rem; }
.list { padding-left: 1rem; margin: 0; }
.list li { margin: 0.25rem 0; }

/* What You Can Expect Section */
.expect-section {
  background: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.expect-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 1.5rem;
  color: var(--text);
  font-weight: 700;
}
.expect-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Service Cards with Hover Overlay */
.services-heading {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 2rem;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  height: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.service-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-image img {
  transform: scale(1.1);
}
.service-card-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.service-card:hover .service-card-title {
  opacity: 0;
}
.service-card-title h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin: 0;
  color: var(--white);
  font-weight: 600;
  text-align: left;
  line-height: 1.2;
}
.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.95) 100%);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}
.service-card:hover .service-card-overlay {
  opacity: 1;
}
.service-card-content {
  color: var(--white);
  text-align: center;
  width: 100%;
}
.service-card-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  color: var(--white);
}
.service-card-intro {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.95;
}
.service-card-details {
  display: grid;
  gap: 1.25rem;
  text-align: left;
}
.service-card-details > div {
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
.service-card-details h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--red);
  font-weight: 600;
}
.service-card-details .list {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(255,255,255,0.9);
}
.service-card-details .list li {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Form */
.form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 600; margin-bottom: 0.35rem; }
input, select, textarea {
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #ffe3e3;
  border-color: var(--red);
}
.form h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--red);
  font-weight: 700;
}
.form h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}
input[type="radio"], input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  cursor: pointer;
}
.form button[type="submit"] {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* About */
.about-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}
.about-grid img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Community Involvement */
.community-section {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.community-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.community-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-overlay {
  position: absolute;
  inset: 0;
  background: rgba(205, 0, 0, 0.75);
  z-index: 1;
}
.community-section .container {
  position: relative;
  z-index: 2;
}
.community-section .section-header h2 {
  color: var(--white);
}
.community-section .section-header p {
  color: rgba(255, 255, 255, 0.95);
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.community-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.community-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.community-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.community-caption {
  padding: 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Community Slider */
.community-slider {
  position: relative;
}
.community-slider-container {
  position: relative;
  overflow: hidden;
  height: 250px;
}
.community-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}
.community-slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.community-slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
  z-index: 10;
}
.community-slider-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: all 0.2s ease;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.community-slider-btn:hover {
  background: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.community-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  position: absolute;
  bottom: 3.5rem;
  left: 0;
  right: 0;
  z-index: 10;
}
.community-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.community-slider-dot.active {
  background: var(--white);
  transform: scale(1.3);
}
.community-slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.contact-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: var(--white);
  padding: 2rem 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}
.footer-links a:hover { opacity: 1; }
.footer-links a svg {
  display: block;
  width: 20px;
  height: 20px;
}
.footer-copy {
  text-align: right;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Careers CTA */
.careers-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Stack heading above paragraph on careers page Application CTA */
.careers-cta:has(> h2) {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Testimonials */
.testimonials-section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.testimonials-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonials-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-overlay {
  position: absolute;
  inset: 0;
  background: rgba(205, 0, 0, 0.75);
  z-index: 1;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials-header h2 {
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.testimonials-header p {
  color: rgba(255,255,255,0.95);
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 0;
  width: 600%;
}

.testimonial-card {
  width: calc(100% / 6);
  min-width: calc(100% / 6);
  max-width: calc(100% / 6);
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.testimonial-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1.5rem;
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.testimonial-author {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.95rem;
  color: var(--muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonials-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonials-dots .dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.testimonials-dots .dot:hover {
  background: rgba(255,255,255,0.7);
  transform: scale(1.1);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .nav.open {
    right: 0;
  }
  
  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 1.1rem;
  }
  
  .nav a:last-child {
    border-bottom: none;
    margin-top: 1rem;
    border: none !important;
    background: var(--red) !important;
    color: var(--white) !important;
  }
  
  /* Header adjustments */
  .header-inner {
    padding: 0.5rem 0;
    position: relative;
    z-index: 1002;
  }
  
  .brand img.logo {
    height: 70px;
    position: relative;
    z-index: 1003;
    margin-top: 0.5rem;
  }
  
  /* Top bar mobile */
  .topbar .container {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .topbar-contact {
    font-size: 0.9rem;
  }
}

/* Mobile Layout Adjustments */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  /* Hero mobile */
  .hero {
    min-height: 30rem;
  }
  
  .hero-content {
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 0.75rem;
  }
  
  .hero p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 1.5rem;
  }
  
  .hero-ctas {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .hero-ctas .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Badges mobile */
  .badges-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .badge {
    padding: 0.75rem;
  }

  /* Why Choose mobile */
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .why-choose-item {
    padding: 1.5rem 1rem;
  }

  .why-choose-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
  }

  .why-choose-icon svg {
    width: 40px;
    height: 40px;
  }

  .why-choose-item h3 {
    font-size: 1.2rem;
  }

  /* Cards mobile */
  .cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .careers-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .card img {
    height: 180px;
  }
  
  .services-section .card img {
    height: 234px; /* 30% taller than 180px */
  }
  
  /* What You Can Expect mobile */
  .expect-section {
    padding: 2.5rem 0;
  }
  .expect-headline {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1.25rem;
  }
  .expect-text {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    line-height: 1.6;
  }

  /* Service cards mobile */
  .services-heading {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 1.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card {
    height: 400px;
  }
  .service-card-title {
    padding: 1.25rem;
  }
  .service-card-title h2 {
    font-size: 1.3rem;
  }
  .service-card-overlay {
    padding: 1.5rem;
  }
  .service-card-content h2 {
    font-size: 1.5rem;
  }
  .service-card-intro {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .service-card-details {
    gap: 1rem;
  }
  .service-card-details > div {
    padding: 0.75rem;
  }
  .service-card-details h3 {
    font-size: 0.9rem;
  }
  .service-card-details .list {
    font-size: 0.85rem;
  }
  
  /* Form mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .form {
    padding: 1rem;
  }
  
  /* About grid mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  /* Community grid mobile */
  .community-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .community-item img {
    height: 220px;
  }
  .community-slider-container {
    height: 220px;
  }
  .community-slider-btn {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }
  .community-slider-dots {
    bottom: 3.25rem;
  }
  .community-caption {
    font-size: 0.85rem;
    padding: 0.875rem;
  }
  
  /* Contact grid mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .map-embed iframe {
    height: 250px;
  }
  
  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .footer-copy {
    text-align: center;
  }
  
  /* Why work with us mobile */
  .why-work-section {
    padding: 2.5rem 0;
  }
  .why-work-list {
    font-size: 1rem;
  }

  /* Careers CTA mobile */
  .careers-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .careers-cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Testimonials mobile */
  .testimonials-section {
    padding: 2.5rem 0;
  }

  .testimonials-header {
    margin-bottom: 2rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-initials {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }

  .testimonial-text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .testimonial-author {
    font-size: 1rem;
  }

  .testimonial-role {
    font-size: 0.9rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    width: 98%;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .hero {
    min-height: 25rem;
  }
  
  .hero-content {
    padding: 1.5rem 0;
  }
  
  .hero h1 {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }
  
  .hero p {
    font-size: clamp(0.85rem, 4vw, 1rem);
  }
  
  .section-header h2 {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }

  .services-heading {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
    margin-bottom: 1.25rem;
  }

  .expect-section {
    padding: 2rem 0;
  }
  .expect-headline {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    margin-bottom: 1rem;
  }
  .expect-text {
    font-size: clamp(0.9rem, 4vw, 1rem);
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .card img {
    height: 160px;
  }
  
  .services-section .card img {
    height: 208px; /* 30% taller than 160px */
  }
  
  .form {
    padding: 0.75rem;
  }
  
  .form h3 {
    font-size: 1.1rem;
  }
  
  .form h4 {
    font-size: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-row > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
  .map-embed iframe {
    height: 200px;
  }

  /* Testimonials small mobile */
  .testimonials-section {
    padding: 2rem 0;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-initials {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 20rem;
  }
  
  .hero-content {
    padding: 1.5rem 0;
  }
  
  .nav {
    width: 250px;
  }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hamburger {
    min-width: 44px;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  input, select, textarea {
    min-height: 44px;
  }
  
  /* Service cards on touch devices - show overlay on tap */
  .service-card-overlay {
    opacity: 0.95;
  }
  .service-card:active .service-card-overlay {
    opacity: 1;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand img.logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}