/*
Theme Name: Japan Villa Management
Theme URI: https://japanvillamanagement.com
Author: StayDream Group Corp.
Author URI: https://staydreamgroup.com
Description: Landing page theme for Japan Villa Management - vacation rental management for overseas owners.
Version: 1.6.0
License: GNU General Public License v2 or later
Text Domain: jvm
*/

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

:root {
  --color-bg: #ffffff;
  --color-surface: #f7f5f2;
  --color-surface-hover: #efece7;
  --color-border: #e5e0d8;
  --color-border-light: #d6cfc4;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-accent: #a0834a;
  --color-accent-hover: #8b6f3a;
  --color-accent-subtle: rgba(160, 131, 74, 0.08);
  --color-white: #ffffff;
  --color-green: #22c55e;
  --color-dark: #1a1613;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 120px 0;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-align: center;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-light);
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

.btn-outline-dark:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-full {
  width: 100%;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s;
}

.nav .nav-logo {
  color: #ffffff;
}

.nav .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

.nav .nav-links a:hover {
  color: #ffffff;
}

.nav .nav-toggle span {
  background: #ffffff;
}

.nav.scrolled .nav-logo {
  color: var(--color-text);
}

.nav.scrolled .logo-jvm {
  color: var(--color-accent);
}

.nav.scrolled .logo-full {
  color: var(--color-text-secondary);
}

.nav.scrolled .nav-links a:not(.nav-cta) {
  color: var(--color-text-secondary);
}

.nav.scrolled .nav-links a:not(.nav-cta):hover {
  color: var(--color-text);
}

.nav.scrolled .nav-toggle span {
  background: var(--color-text);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}

.nav-logo:hover {
  color: var(--color-text);
}

.logo-jvm {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.logo-full {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-cta {
  background: var(--color-accent);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 160px 0 80px;
  background: #1a1613;
  color: #ffffff;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg picture {
  display: contents;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
}

/* ===== PROBLEM ===== */
.problem {
  background: var(--color-surface);
}

.problem .section-title {
  text-align: center;
  margin-bottom: 64px;
}

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

.problem-card {
  padding: 40px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-accent);
}

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

.problem-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

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

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing {
  background: var(--color-surface);
}

.pricing .section-eyebrow,
.pricing .section-title,
.pricing .section-desc {
  text-align: center;
}

.pricing .section-desc {
  margin-left: auto;
  margin-right: auto;
}

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

.pricing-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--color-accent);
  box-shadow: 0 0 40px rgba(200, 169, 110, 0.1);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.pricing-header h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-rate {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.pricing-rate span {
  font-size: 28px;
}

.pricing-label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.pricing-features li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

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

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23a0834a" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') no-repeat center;
  background-size: contain;
}

/* Setup option */
.setup-option {
  margin-bottom: 32px;
}

.setup-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.setup-text h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.setup-text p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Guarantee */
.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 40px;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: var(--radius);
}

.guarantee-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.guarantee strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.guarantee span {
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  position: relative;
  padding: 32px 24px;
}

.step::after {
  content: '';
  position: absolute;
  top: 52px;
  right: -16px;
  width: 32px;
  height: 1px;
  background: var(--color-border-light);
}

.step:last-child::after {
  display: none;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== AREAS ===== */
.areas {
  background: var(--color-surface);
}

.areas .section-eyebrow,
.areas .section-title {
  text-align: center;
}

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

.area-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: all 0.3s;
}

.area-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
}

.area-image {
  height: 200px;
  overflow: hidden;
  background-color: #3d6b5c;
}

.area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.area-info {
  padding: 28px 24px;
}

.area-info h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.area-info p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.areas-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ===== WHY JVM ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  padding: 40px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.why-number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--color-surface);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-item a {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.contact-item a:hover {
  color: var(--color-accent);
}

/* Contact Form */
.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23737373" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid var(--color-border);
}

.faq .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-company {
  width: 100%;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .problem-grid,
  .services-grid,
  .pricing-grid,
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav .nav-links a {
    font-size: 20px;
    color: var(--color-text) !important;
  }

  .nav-cta {
    margin-top: 16px;
    padding: 14px 40px;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 100vh;
    padding: 120px 0 60px;
    align-items: flex-start;
  }

  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 40%,  transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  }

  .hero-bg img {
    object-position: center top;
  }

  .hero h1 br,
  .section-title br {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    text-align: center;
  }

  .hero-badges {
    flex-direction: column;
  }

  .problem-grid,
  .services-grid,
  .pricing-grid,
  .steps-grid,
  .areas-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    order: -1;
  }

  .setup-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }

  .guarantee {
    flex-direction: column;
    padding: 24px;
  }

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

  .contact-form {
    padding: 28px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-company {
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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