/* ===================================
   RESESIA – Real Estate Corporate Site
   Warm Green / Pop & Friendly Design
   =================================== */

/* ── Scroll Progress Bar ── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
  z-index: 9998;
  border-radius: 0 999px 999px 0;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(94, 170, 62, 0.4);
}

/* ── Back to Top Button ── */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(72, 148, 58, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(72, 148, 58, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ── Page Transition ── */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Loading Screen ── */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 80px;
  height: 80px;
  clip-path: inset(16%);
  transform: scale(1.34);
  transform-origin: center;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

.loading-text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: #2c2c2c;
  opacity: 0;
  animation: loadingFadeIn 0.6s ease 0.2s forwards;
}

.loading-bar {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: #e4f0d8;
  overflow: hidden;
  margin-top: 4px;
}

.loading-bar::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #5eaa3e, #48943a);
  border-radius: 999px;
  animation: loadingProgress 1s ease-in-out infinite;
  transform-origin: left;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.6; transform: scale(1.34); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes loadingFadeIn {
  to { opacity: 1; }
}

@keyframes loadingProgress {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

:root {
  --green-50: #f4f9ef;
  --green-100: #e4f0d8;
  --green-200: #c5e0a8;
  --green-300: #8ec46a;
  --green-400: #5eaa3e;
  --green-500: #48943a;
  --green-600: #3a7a2e;
  --green-700: #2f6326;
  --green-800: #264f1f;
  --green-900: #1b3a16;

  --paper: #fdfcf9;
  --surface: #ffffff;
  --surface-alt: #f8f6f1;
  --surface-warm: #fef9f0;
  --ink: #2c2c2c;
  --text: #444444;
  --muted: #777777;
  --light: #aaaaaa;
  --brand: #48943a;
  --brand-light: #5eaa3e;
  --brand-deep: #3a7a2e;
  --brand-pale: #eef6e6;
  --accent: #f0a050;
  --accent-pale: #fef3e2;
  --gold: #e0b65c;
  --gold-light: #f0cc80;
  --line: rgba(72, 148, 58, 0.14);
  --line-light: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 12px rgba(72, 100, 40, 0.07);
  --shadow-md: 0 8px 28px rgba(72, 100, 40, 0.09);
  --shadow-lg: 0 16px 48px rgba(72, 100, 40, 0.11);
  --shadow-xl: 0 24px 64px rgba(72, 100, 40, 0.14);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: block;
  clip-path: inset(16%);
  transform: scale(1.34);
  transform-origin: center;
}

.logo-text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink);
}

/* ── Header Info (TEL & Hours) ── */

.header-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  margin-right: 28px;
}

.header-tel {
  font-family: "Nunito", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-tel:hover {
  color: var(--brand);
}

.header-hours {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--green-50);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-light);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.menu-toggle:hover {
  background: var(--green-50);
  border-color: var(--brand);
}

.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
  border-radius: 999px;
  transition: width var(--transition);
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--brand);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-800);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s ease, transform 8s ease;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--paper), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 120px 0 140px;
  width: 100%;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-brand-panel {
  flex-shrink: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 32px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.hero-brand-mark {
  width: 200px;
  margin: 0 auto 12px;
  display: block;
  clip-path: inset(15%);
  transform: scale(1.34);
  transform-origin: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.hero-brand-text {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
}

.hero-copy {
  flex: 1;
}

.hero-copy-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-copy-center p {
  margin-left: auto;
  margin-right: auto;
}

.hero-copy-center .hero-actions {
  justify-content: center;
}

.hero-copy .eyebrow {
  color: var(--green-200);
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.5;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Scroll Indicator ── */

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 999px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 18px rgba(72, 148, 58, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-color: var(--brand-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(72, 148, 58, 0.38);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border-color: var(--line);
  color: var(--brand);
  background: transparent;
}

.btn-outline-dark:hover {
  border-color: var(--brand);
  background: var(--brand-pale);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 0.9rem;
}

/* ── Eyebrow & Typography ── */

.eyebrow {
  display: inline-block;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.5;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.45;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

/* ── Sections ── */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-white {
  background: var(--surface);
}

.section-dark {
  background: linear-gradient(160deg, var(--green-50) 0%, var(--green-100) 50%, #f5f0e4 100%);
  color: var(--text);
}

.section-dark h2,
.section-dark h3 {
  color: var(--ink);
}

.section-dark .eyebrow {
  color: var(--brand);
}

.section-dark p {
  color: var(--muted);
}

.section-head {
  margin-bottom: 48px;
}

.section-head-center {
  text-align: center;
  margin-bottom: 56px;
}

.section-head p,
.section-head-center p {
  color: var(--muted);
  margin-top: 16px;
  max-width: 640px;
  font-size: 0.92rem;
  line-height: 1.9;
}

.section-head-center p {
  margin-left: auto;
  margin-right: auto;
}

.section-head h2::after,
.section-head-center h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
  margin-top: 16px;
  border-radius: 999px;
}

.section-head-center h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* ── Service Cards (Top Page) ── */

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

.service-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card-img,
.service-card-video {
  height: 200px;
  overflow: hidden;
}

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

.service-card:hover .service-card-img img,
.service-card:hover .service-card-video video {
  transform: scale(1.06);
}

.service-card-icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--green-50) 0%, var(--green-100) 60%, var(--accent-pale) 100%);
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.service-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-num {
  font-family: "Nunito", sans-serif;
  font-size: 0.82rem;
  color: var(--brand);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-weight: 600;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: gap var(--transition);
}

.service-card:hover .service-card-link {
  gap: 10px;
}

/* ── Service Detail (services.html) ── */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.service-detail:not(:last-child) {
  border-bottom: 1px solid var(--line-light);
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

.service-detail-visual img,
.service-detail-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content .service-num {
  font-family: "Nunito", sans-serif;
  font-size: 3rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 600;
  opacity: 0.6;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-detail-content p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 10px 0 10px 28px;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  border-bottom: 1px solid var(--line-light);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ── Strengths / Why Choose Us ── */

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

.strength-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.strength-card:hover {
  background: var(--surface);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.strength-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.strength-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.strength-card p {
  font-size: 0.85rem;
  line-height: 1.8;
}

/* ── Stats ── */

.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 48px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: "Nunito", sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── CTA Banner ── */

.cta-banner {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-500) 50%, var(--green-400) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: url('resesia-mark.webp');
  background-size: 70px 70px;
  background-repeat: repeat;
  opacity: 0.045;
  transform: rotate(10deg);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner h2::after {
  display: none;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  font-size: 0.92rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-banner .btn-primary:hover {
  background: var(--green-50);
  color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── Grid Layouts ── */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

/* ── Cards ── */

.card {
  border: 1px solid var(--line-light);
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.card p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.8;
}

.card p + p {
  margin-top: 12px;
}

/* ── Table ── */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line-light);
  padding: 16px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.table th {
  width: 130px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.table td {
  color: var(--text);
}

/* ── Access / Map ── */

.map-frame {
  width: 100%;
  height: 380px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
}

/* ── Contact ── */

.contact-box {
  border: 1px solid var(--line-light);
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--line-light);
  background: var(--surface);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: "M PLUS Rounded 1c", sans-serif;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(94, 170, 62, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.form-status.is-success {
  color: var(--brand-deep);
}

.form-status.is-error {
  color: #c62828;
}

/* ── Page Hero (Sub-pages) ── */

.page-hero {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 70%, var(--green-400) 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: url('resesia-mark.webp');
  background-size: 80px 80px;
  background-repeat: repeat;
  opacity: 0.04;
  transform: rotate(-15deg);
  pointer-events: none;
}

.page-hero .eyebrow {
  color: var(--green-200);
  position: relative;
}

.page-hero h1 {
  color: #fff;
  position: relative;
  margin-bottom: 16px;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-200), rgba(240, 200, 120, 0.7));
  margin: 16px auto 0;
  border-radius: 999px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  line-height: 1.8;
}

/* ── FAQ Accordion ── */

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 48px;
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category-title {
  font-size: 1.15rem;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--brand-light);
  position: relative;
}

.faq-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: var(--line);
}

.faq-item.is-open {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--brand);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-50);
  position: relative;
  transition: background var(--transition), transform var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
  background: var(--brand-light);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: #fff;
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
  padding: 0 24px 24px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
  padding-top: 4px;
  border-top: 1px solid var(--line-light);
  padding-top: 16px;
}

/* ── Privacy ── */

.privacy-body h2 {
  font-size: 1rem;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
}

.privacy-body p,
.privacy-body ul {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

.privacy-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.privacy-body ul li {
  margin-bottom: 6px;
}

/* ── Footer ── */

.site-footer {
  background: linear-gradient(180deg, var(--green-800) 0%, var(--green-900) 100%);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
  font-size: 0.78rem;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-title {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--green-300);
}

.footer-contact-info {
  text-align: right;
}

.footer-contact-info p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact-info .footer-phone {
  font-family: "Nunito", sans-serif;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--green-300);
}

/* Legacy footer-row support */
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row .logo {
  gap: 8px;
  color: #fff;
}

.footer-row .logo-mark {
  width: 40px;
  height: 40px;
}

.footer-row .logo-text {
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green-300);
}

/* ── Scroll Animations ── */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ── Service Item (legacy support) ── */

.service-item {
  border: 1px solid var(--line-light);
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-link {
  display: block;
  text-decoration: none;
  height: 100%;
  border-radius: var(--radius-lg);
}

.service-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 5px;
  border-radius: var(--radius-md);
}

.service-media {
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-50);
}

.service-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-item:hover .service-media img {
  transform: scale(1.05);
}

.service-item .num {
  font-family: "Nunito", sans-serif;
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
}

.service-item h3 {
  font-size: 1.05rem;
  margin: 10px 0;
  line-height: 1.6;
}

.service-item ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-item ul li {
  margin-bottom: 4px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: gap var(--transition);
}

.service-item:hover .link-arrow {
  gap: 10px;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-wrap {
    flex-wrap: wrap;
    min-height: auto;
    padding: 10px 0;
    row-gap: 0;
  }

  .header-info {
    order: -1;
    width: 100%;
    justify-content: center;
    margin: 0 0 8px 0;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-light);
  }

  .header-tel {
    font-size: 1.1rem;
  }

  .header-hours {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-light);
    display: none;
    padding: 20px 5vw 24px;
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 14px;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-layout {
    flex-direction: column;
    gap: 32px;
  }

  .hero-brand-panel {
    width: min(320px, 100%);
    margin: 0 auto;
    padding: 28px 24px;
  }

  .hero-brand-mark {
    width: 160px;
  }

  .hero-content {
    padding: 80px 0 120px;
  }

  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .hero-copy p {
    font-size: 0.88rem;
  }

  .hero-scroll {
    bottom: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 60px 0 44px;
  }

  .grid-2,
  .grid-3,
  .service-grid,
  .strengths-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .service-detail-content h3 {
    font-size: 1.25rem;
  }

  .stats-row {
    gap: 32px;
  }

  .stat-number {
    font-size: 2.6rem;
  }

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

  .footer-contact-info {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .card,
  .service-item,
  .contact-box {
    padding: 24px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .cta-banner {
    padding: 56px 20px;
  }
}

@media (max-width: 600px) {
  .container {
    width: 92vw;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-brand-panel {
    width: 100%;
    padding: 24px 20px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .section {
    padding: 48px 0;
  }

  .section-head-center {
    margin-bottom: 36px;
  }

  .strength-card {
    padding: 28px 20px;
  }

  .service-card-icon {
    height: 160px;
  }
}
