/* Oak Admin - Clean CSS */

/* ===== CSS Variables ===== */
:root {
  --primary-green: #2B865A;
  --primary-green-hover: #1B5D3D;
  --accent-green: #41C485;
  --white: #FFFFFF;
  --light-gray: #F9F9F9;
  --text-dark: #444444;
  --text-light: #939393;
  --border-gray: #DADADA;
  --max-width: 1100px;
}

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

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

body {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white);
}

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

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

a:hover {
  color: var(--primary-green-hover);
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.375rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.section {
  padding: 60px 0;
}

.section--gray {
  background-color: var(--light-gray);
}

/* ===== Header & Navigation ===== */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-menu > li {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-menu a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-green);
  border-bottom-color: var(--accent-green);
}

.nav-menu .nav-cta {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  border-bottom: none;
}

.nav-menu .nav-cta:hover {
  background-color: var(--primary-green-hover);
  color: var(--white);
  border-bottom: none;
}

/* Dropdown Menu */
.nav-menu .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu .dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.nav-menu > li:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 200;
}

.nav-menu > li:hover .nav-submenu {
  display: block;
}

.nav-submenu li {
  display: block;
}

.nav-submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-dark);
  border-bottom: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-submenu a:hover {
  background-color: var(--light-gray);
  color: var(--primary-green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
  background-color: var(--light-gray);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Homepage Hero with Background Image */
.hero--home {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
              url('/images/office-exterior.webp') center center / cover no-repeat;
  padding: 80px 0;
}

.hero--home .container {
  background: rgba(0, 0, 0, 0.35);
  padding: 40px 35px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  max-width: 800px;
}

.hero--home h1 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.hero--home p {
  color: var(--white);
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero--home .btn--primary {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Hero with Background Image (standard size) */
.hero--bg {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)),
              url('/images/office-interior.webp') center center / cover no-repeat;
}

.hero--bg .container {
  background: rgba(0, 0, 0, 0.35);
  padding: 40px 35px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  max-width: 700px;
}

.hero--bg h1 {
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero--bg p {
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Entertainment Visa Hero */
.hero--entertainment {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)),
              url('/images/fireworks.webp') center center / cover no-repeat;
}

/* Permanent Residence Hero */
.hero--pr {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)),
              url('/images/fuji-san.webp') center center / cover no-repeat;
}

/* Business Support Hero */
.hero--business {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)),
              url('/images/business.webp') center center / cover no-repeat;
}

.hero--business .container {
  background: rgba(0, 0, 0, 0.35);
  padding: 40px 35px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  max-width: 700px;
}

.hero--business h1 {
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero--business p {
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ===== Highlights Section ===== */
.highlights {
  background-color: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-gray);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  fill: var(--primary-green);
}

.highlight-item p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

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

  .highlights {
    padding: 30px 0;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn--primary:hover {
  background-color: var(--primary-green-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn--outline:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

/* ===== Cards & Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 15px;
  color: var(--primary-green);
}

.card p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.card a {
  display: inline-block;
  margin-top: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===== Content Sections ===== */
.content {
  max-width: 800px;
  margin: 0 auto;
}

.content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.content h2:first-child {
  margin-top: 0;
}

.content ul {
  margin: 20px 0;
  padding-left: 20px;
}

.content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

/* ===== Alert/Notice Box ===== */
.alert {
  padding: 20px 25px;
  border-radius: 8px;
  margin: 25px 0;
}

.alert-warning {
  background-color: #FFF8E6;
  border-left: 4px solid #F5A623;
}

.alert h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  color: #8B6914;
}

.alert p {
  margin-bottom: 12px;
}

.alert ul {
  margin: 10px 0;
}

.alert li {
  margin-bottom: 8px;
}

/* ===== Placeholder Image ===== */
.placeholder-img {
  background-color: var(--light-gray);
  border: 2px dashed var(--border-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ===== Fees Table ===== */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.fees-table th,
.fees-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

.fees-table th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background-color: var(--light-gray);
}

.fees-table tr:hover {
  background-color: var(--light-gray);
}

/* ===== Contact Info ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item h3 {
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.contact-item p {
  color: var(--text-light);
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

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

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

/* ===== Form Messages ===== */
.form-message {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9375rem;
}

.form-message--success {
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
  text-align: center;
  padding: 30px;
}

.form-message--success h3 {
  margin: 0 0 10px 0;
  color: #2E7D32;
}

.form-message--success p {
  margin: 0;
}

.form-message--error {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Map ===== */
.map-container {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-info h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 5px;
}

.footer-info .footer-jp {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

.footer-info p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-info .footer-address {
  margin-top: 15px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 15px;
}

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

.footer-links a {
  color: var(--accent-green);
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

.footer-bottom .disclaimer {
  font-size: 0.75rem;
  opacity: 0.6;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

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

/* ===== CTA Section ===== */
.cta {
  background-color: var(--primary-green);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 25px;
}

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

.cta .btn--primary:hover {
  background-color: var(--light-gray);
}

/* ===== Blog Section ===== */
.blogs-section {
  background-color: var(--light-gray);
  padding: 60px 0;
}

.blogs-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card {
  background-color: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 25px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--primary-green);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 50px 0;
  }

  /* Disable hero background images on mobile for performance */
  .hero--home,
  .hero--bg,
  .hero--entertainment,
  .hero--pr,
  .hero--business {
    background-image: none;
    background-color: var(--primary-green);
  }

  .hero--home .container,
  .hero--bg .container,
  .hero--business .container {
    background: transparent;
    backdrop-filter: none;
  }

  .hero--home h1,
  .hero--bg h1,
  .hero--business h1 {
    text-shadow: none;
  }

  .hero--home p,
  .hero--bg p,
  .hero--business p {
    text-shadow: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-menu a {
    display: block;
    padding: 15px 0;
    border-bottom: none;
  }

  /* Mobile Dropdown */
  .nav-menu .dropdown-toggle::after {
    margin-left: auto;
  }

  .nav-submenu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 100%;
    background-color: var(--light-gray);
    border-radius: 0;
  }

  .nav-menu > li:hover .nav-submenu,
  .nav-menu > li.open .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 12px 20px 12px 30px;
    font-size: 0.85rem;
  }

  .nav-submenu li {
    border-bottom: 1px solid var(--border-gray);
  }

  .nav-submenu li:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .header .container {
    position: relative;
  }

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

  .fees-table {
    font-size: 0.875rem;
  }

  .fees-table th,
  .fees-table td {
    padding: 10px;
  }
}
