/* ============================================
   あかり経営サポート - style.css
   地域密着 | Warm beige#FFF5EB + Brown#795548
   Zen Maru Gothic + Noto Sans JP
   ============================================ */

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

:root {
  --beige: #FFF5EB;
  --beige-dark: #FFE8D6;
  --brown: #795548;
  --brown-light: #8D6E63;
  --brown-dark: #5D4037;
  --brown-bg: rgba(121,85,72,0.06);
  --white: #FFFFFF;
  --black: #3E2723;
  --gray-50: #FAFAF8;
  --gray-100: #F5F5F0;
  --gray-200: #E8E6E1;
  --gray-300: #D7D3CC;
  --gray-400: #B0A99F;
  --gray-500: #8A8278;
  --gray-600: #6D6560;
  --gray-700: #504844;
  --gray-800: #3E3835;
  --font-heading: 'Zen Maru Gothic', sans-serif;
  --font-main: 'Noto Sans JP', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(121,85,72,0.06);
  --shadow-lg: 0 8px 40px rgba(121,85,72,0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--beige);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--brown);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 48px;
  color: var(--brown-dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; font-family: var(--font-heading); font-size: 0.95rem;
  font-weight: 700; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
}

.btn-primary { background: var(--brown); color: var(--white); border-color: var(--brown); }
.btn-primary:hover { background: var(--brown-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(121,85,72,0.25); }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-large { padding: 20px 56px; font-size: 1rem; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; background: transparent; transition: var(--transition);
}

.header.scrolled {
  background: rgba(255,245,235,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(121,85,72,0.06);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; max-width: 1400px; margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--brown-dark); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 0.85rem; color: var(--gray-600); font-weight: 500; }
.nav-link:hover { color: var(--brown); }

.nav-cta {
  background: var(--brown); color: var(--white) !important;
  padding: 10px 24px; border-radius: 50px;
  font-family: var(--font-heading);
}
.nav-cta:hover { background: var(--brown-dark); }

.hamburger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--brown); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

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

.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,245,235,0.93) 0%, rgba(255,245,235,0.82) 100%);
}

.hero-content {
  position: relative; z-index: 2; padding: 0 40px;
  max-width: 1400px; margin: 0 auto; width: 100%;
}

.hero-sub {
  font-family: var(--font-heading);
  font-size: 0.9rem; color: var(--brown);
  letter-spacing: 0.08em; margin-bottom: 24px; font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem; font-weight: 700;
  color: var(--brown-dark); line-height: 1.4; margin-bottom: 32px;
}

.hero-desc {
  font-size: 1rem; color: var(--gray-600);
  line-height: 2; margin-bottom: 48px; max-width: 540px;
}

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

.hero-scroll {
  position: absolute; bottom: 40px; right: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.hero-scroll span { font-size: 0.7rem; color: var(--gray-400); letter-spacing: 0.15em; writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--brown), transparent); animation: scrollLine 2s ease-in-out infinite; }

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* --- About --- */
.about { background: var(--white); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 480px; object-fit: cover; }
.about-desc { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 16px; line-height: 2; }

.about-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.about-stat-num { display: block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--brown); line-height: 1.2; }
.about-stat-label { font-size: 0.8rem; color: var(--gray-500); }

/* --- Services --- */
.services { background: var(--beige); }
.services .section-label, .services .section-title { text-align: center; }

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

.service-card {
  background: var(--white); padding: 40px 36px;
  border-radius: var(--radius-lg); transition: var(--transition);
  border: 1px solid transparent;
}

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

.service-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--brown); opacity: 0.2; margin-bottom: 12px; }
.service-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: var(--brown-dark); }
.service-desc { font-size: 0.9rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 24px; }
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list li { font-size: 0.85rem; color: var(--gray-600); padding-left: 20px; position: relative; }
.service-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brown); opacity: 0.3; }

/* --- Strength --- */
.strength { background: var(--white); }
.strength .section-label, .strength .section-title { text-align: center; }

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

.strength-item {
  text-align: center; padding: 40px 28px;
  border-radius: var(--radius-lg); background: var(--beige);
  transition: var(--transition);
}
.strength-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.strength-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--brown); opacity: 0.3; margin-bottom: 16px; }
.strength-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--brown-dark); }
.strength-desc { font-size: 0.9rem; color: var(--gray-600); line-height: 1.9; }

/* --- Cases --- */
.cases { background: var(--beige); }
.cases .section-label, .cases .section-title { text-align: center; }

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

.case-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.case-image { height: 200px; overflow: hidden; }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.case-card:hover .case-image img { transform: scale(1.05); }

.case-content { padding: 28px; }
.case-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--brown); background: var(--brown-bg); padding: 4px 14px;
  border-radius: 50px; margin-bottom: 12px;
}
.case-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; line-height: 1.5; color: var(--brown-dark); }
.case-desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.8; }

/* --- Numbers --- */
.numbers { background: var(--brown); padding: 80px 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.number-value { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--white); line-height: 1; }
.number-suffix { font-size: 1rem; color: rgba(255,255,255,0.85); font-weight: 700; }
.number-label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 8px; }

/* --- Flow --- */
.flow { background: var(--white); }
.flow .section-label, .flow .section-title { text-align: center; }
.flow-steps { max-width: 700px; margin: 0 auto; }

.flow-step { display: flex; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--gray-200); }
.flow-step:last-child { border-bottom: none; }
.flow-step-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--brown); min-width: 60px; line-height: 1; }
.flow-step-content h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--brown-dark); }
.flow-step-content p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.8; }

/* --- FAQ --- */
.faq { background: var(--beige); }
.faq .section-label, .faq .section-title { text-align: center; }
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }

.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: var(--font-main); font-size: 0.95rem; font-weight: 600;
  text-align: left; color: var(--brown-dark); transition: var(--transition);
}
.faq-question:hover { color: var(--brown); }
.faq-icon { font-size: 1.5rem; color: var(--brown); transition: var(--transition); flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 24px 20px; font-size: 0.9rem; color: var(--gray-600); line-height: 1.9; }

/* --- Company --- */
.company { background: var(--white); }
.company .section-label, .company .section-title { text-align: center; }
.company-table-wrap { max-width: 800px; margin: 0 auto; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--gray-200); }
.company-table th { padding: 20px 24px; font-size: 0.9rem; font-weight: 600; text-align: left; width: 180px; color: var(--brown-dark); }
.company-table td { padding: 20px 24px; font-size: 0.9rem; color: var(--gray-600); }

/* --- Contact --- */
.contact { background: var(--beige); }
.contact .section-label, .contact .section-title { text-align: center; }
.contact-desc { text-align: center; color: var(--gray-600); margin-bottom: 48px; margin-top: -24px; }
.contact-form { max-width: 800px; margin: 0 auto; background: var(--white); padding: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--brown-dark); }
.required { background: var(--brown); color: var(--white); font-size: 0.7rem; padding: 2px 8px; margin-left: 8px; border-radius: 50px; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; font-family: var(--font-main); font-size: 0.95rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  background: var(--white); transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(121,85,72,0.08);
}

.form-group textarea { resize: vertical; }
.form-submit { text-align: center; margin-top: 16px; }

/* --- Footer --- */
.footer { background: var(--brown-dark); color: var(--white); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo-text { font-size: 1rem; color: var(--beige); }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 16px; line-height: 1.8; }
.footer-nav h4 { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; margin-bottom: 20px; color: var(--beige); }
.footer-nav a, .footer-nav p { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.footer-nav a:hover { color: var(--beige); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 1.8rem; }
  .hero-title { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 16px 20px; }
  .nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--beige); flex-direction: column; justify-content: center; gap: 24px; transition: right 0.3s ease; padding: 40px; }
  .nav.active { right: 0; }
  .nav-link { font-size: 1rem; }
  .hamburger { display: flex; }
  .hero { min-height: 100svh; }
  .hero-content { padding: 0 20px; }
  .hero-title { font-size: 2.2rem; }
  .hero-desc br { display: none; }
  .hero-scroll { display: none; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.5rem; margin-bottom: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image img { height: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; gap: 20px; }
  .cases-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .number-value { font-size: 2.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow-step { flex-direction: column; gap: 12px; }
  .company-table th { width: 120px; padding: 16px 12px; }
  .company-table td { padding: 16px 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; }
  .btn { padding: 14px 32px; width: 100%; text-align: center; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
}


/* --- Message Section --- */
.message {
  background: var(--white);
}

.message-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.message-content .section-title {
  font-size: 1.8rem;
  margin-bottom: 32px;
}

.message-body p {
  font-size: 0.95rem;
  line-height: 2.2;
  margin-bottom: 32px;
  color: var(--gray-600);
}

.message-sign {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}

.message-company {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.message-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #795548;
}

.message-image {
  border-radius: 8px;
  overflow: hidden;
}

.message-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- Topics Section --- */
.topics {
  background: var(--white);
}

.topics .section-label,
.topics .section-title {
  text-align: center;
}

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

.topic-card {
  padding: 32px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.topic-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.topic-date {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.topic-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: #795548;
  background: rgba(121,85,72,0.1);
  padding: 2px 10px;
  border-radius: 4px;
}

.topic-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}

.topic-title a {
  color: var(--black, #1A1A1A);
}

.topic-title a:hover {
  color: #795548;
}

.topic-excerpt {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.topic-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #795548;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topic-link:hover {
  gap: 8px;
}

.topic-link::after {
  content: '→';
}

.topics-more {
  text-align: center;
}

/* --- CTA Banner --- */
.cta-banner {
  background: #795548;
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: #795548;
  border-color: var(--white);
}

.cta-banner .btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cta-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-phone-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.cta-phone-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* --- Partners Section --- */
.partners {
  background: var(--beige);
  padding: 80px 0;
}

.partners-title {
  text-align: center;
  font-size: 1.5rem !important;
  margin-bottom: 48px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.partner-item {
  padding: 32px 16px;
  border-radius: 8px;
  background: var(--white);
  transition: var(--transition);
}

.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.partner-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  color: #795548;
}

.partner-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* --- Additional Responsive for new sections --- */
@media (max-width: 768px) {
  .message-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .message-image img {
    height: 280px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .topic-card {
    padding: 24px;
  }

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

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 24px;
  }

  .cta-phone {
    align-items: center;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .partner-item {
    padding: 24px 12px;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* --- Additional utility styles --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.pt-1 { padding-top: 8px; }
.pt-2 { padding-top: 16px; }
.pt-3 { padding-top: 24px; }
.pt-4 { padding-top: 32px; }
.pt-5 { padding-top: 48px; }

.pb-1 { padding-bottom: 8px; }
.pb-2 { padding-bottom: 16px; }
.pb-3 { padding-bottom: 24px; }
.pb-4 { padding-bottom: 32px; }
.pb-5 { padding-bottom: 48px; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 16px; }
.rounded-full { border-radius: 50%; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.transition { transition: var(--transition); }

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-shadow:hover {
  box-shadow: var(--shadow-lg);
}

/* --- Additional animation variants --- */
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Print styles --- */
@media print {
  .header,
  .hero-scroll,
  .hamburger,
  .nav-cta,
  .cta-banner,
  .contact-form {
    display: none !important;
  }

  .section {
    padding: 40px 0;
    page-break-inside: avoid;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero-bg {
    display: none;
  }

  .hero-overlay {
    display: none;
  }

  .hero-title {
    color: #000;
    font-size: 2rem;
  }

  a {
    color: #000;
  }
}

/* --- Selection styles --- */
::selection {
  background: #795548;
  color: var(--white);
}

::-moz-selection {
  background: #795548;
  color: var(--white);
}

/* --- Scrollbar styles --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: #795548;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #795548;
  opacity: 0.8;
}

/* --- Focus styles for accessibility --- */
*:focus-visible {
  outline: 2px solid #795548;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #795548;
  outline-offset: 2px;
}

/* --- Skip to main content link --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #795548;
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* --- Loading animation --- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-10deg); }
  to { opacity: 1; transform: rotate(0); }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-slide-up {
  animation: slideUp 0.8s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}


/* --- Testimonials --- */
.testimonials {
  background: var(--beige);
}

.testimonials .section-label,
.testimonials .section-title {
  text-align: center;
}

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

.testimonial-card {
  background: var(--white, #FFF);
  padding: 36px 32px;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}

.testimonial-rating span {
  color: #795548;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--gray-600, #757575);
  line-height: 1.9;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200, #EEE);
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black, #1A1A1A);
  margin-bottom: 2px;
}

.testimonial-company {
  font-size: 0.8rem;
  color: var(--gray-500, #9E9E9E);
}

/* --- Access --- */
.access {
  background: var(--white, #FFF);
}

.access .section-label,
.access .section-title {
  text-align: center;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.map-placeholder {
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  height: 360px;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200, #EEE);
}

.access-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.access-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #795548;
  margin-bottom: 8px;
}

.access-text {
  font-size: 0.9rem;
  color: var(--gray-600, #757575);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .map-placeholder {
    height: 250px;
  }
}
