/* Main Stylesheet for Japanese Translation Services Website */
/* Luxury Cartier-inspired Design */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  line-height: 1.8;
  color: #1a1a1a;
  background-color: #fafafa;
  letter-spacing: 0.3px;
  font-weight: 300;
}

/* Skip to main content link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1e3a8a;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: #ffffff;
}

.hero-text-group {
  margin-bottom: 24px;
}

.hero-headline {
  font-size: 56px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Serif JP', serif;
}

.hero-headline[lang="ja"] {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: none;
}

.hero-subheadline-group {
  margin-bottom: 60px;
  position: relative;
}

.hero-subheadline-group::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
}

.hero-subheadline {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 8px;
  opacity: 0.85;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-subheadline[lang="ja"] {
  font-size: 16px;
  letter-spacing: 2px;
}

.hero-cta {
  margin-top: 40px;
}

.cta-button {
  display: inline-block;
  padding: 18px 50px;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: 'Cinzel', 'Noto Sans JP', sans-serif;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #d4af37;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:focus {
  outline: 2px solid #d4af37;
  outline-offset: 4px;
}

.cta-separator {
  margin: 0 8px;
  opacity: 0.7;
}

/* Services Section */
.services-section {
  padding: 120px 0;
  background-color: #ffffff;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.section-heading {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.section-heading h2 {
  font-size: 42px;
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Serif JP', serif;
}

.section-heading h2[lang="ja"] {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: none;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Service Card */
.service-card {
  background-color: #fafafa;
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 50px 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:focus-within {
  outline: 2px solid #d4af37;
  outline-offset: 4px;
}

.service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  margin-bottom: 32px;
  color: #d4af37;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.05);
  transform: scale(1.05);
}

.service-icon svg {
  width: 36px;
  height: 36px;
}

.service-title {
  font-size: 20px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', serif;
}

.service-title[lang="ja"] {
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: none;
}

.service-description {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
  margin-bottom: 8px;
  font-weight: 300;
}

.service-description[lang="ja"] {
  font-size: 14px;
  line-height: 2;
}

.service-description:last-child {
  margin-bottom: 0;
}

/* About Section */
.about-section {
  padding: 120px 0;
  background-color: #fafafa;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 40px;
}

/* About Image Column */
.about-image {
  flex: 0 0 300px;
}

.image-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

/* About Text Column */
.about-text {
  flex: 1;
}

.biography {
  margin-bottom: 40px;
}

.bio-paragraph {
  margin-bottom: 16px;
}

.bio-paragraph p {
  font-size: 17px;
  line-height: 2;
  color: #4a4a4a;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.bio-paragraph[lang="ja"] p {
  font-size: 16px;
  line-height: 2.1;
}

/* Credentials */
.credentials h3 {
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', serif;
}

.credentials h3[lang="ja"] {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: none;
}

.credentials-list {
  list-style: none;
  margin-top: 24px;
}

.credentials-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: padding-left 0.3s ease;
}

.credentials-list li:hover {
  padding-left: 8px;
}

.credentials-list li:last-child {
  border-bottom: none;
}

.credentials-list li span {
  font-size: 16px;
  line-height: 1.8;
  color: #4a4a4a;
  font-weight: 300;
}

.credentials-list li span[lang="ja"] {
  font-size: 15px;
  color: #666;
}

.credentials-list li span[lang="en"] {
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  background-color: #ffffff;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background-color: #fafafa;
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-intro {
  margin-bottom: 32px;
}

.form-intro p {
  font-size: 16px;
  line-height: 1.9;
  color: #4a4a4a;
  margin-bottom: 8px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.form-intro p[lang="ja"] {
  font-size: 15px;
  line-height: 2;
}

/* Contact Form */
.contact-form {
  width: 100%;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', sans-serif;
}

.label-separator {
  margin: 0 6px;
  opacity: 0.6;
}

.required-indicator {
  color: #dc2626;
  margin-left: 4px;
}

.form-input {
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  color: #1a1a1a;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.4s ease;
  min-height: 48px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.form-input:focus {
  outline: none;
  border-bottom-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.02);
}

.form-input:hover:not(:focus) {
  border-bottom-color: rgba(212, 175, 55, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Error State */
.form-input.error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.form-input.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #dc2626;
  line-height: 1.4;
}

.error-message:empty {
  display: none;
}

/* Form Actions */
.form-actions {
  margin-top: 32px;
}

.submit-button {
  width: 100%;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  background-color: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 54px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', sans-serif;
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.6s ease;
}

.submit-button:hover:not(:disabled) {
  background-color: rgba(212, 175, 55, 0.05);
  border-color: #d4af37;
  color: #d4af37;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.1);
}

.submit-button:hover:not(:disabled)::before {
  left: 100%;
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Form Messages */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin-top: 24px;
}

.message-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.message-text p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.message-text p:last-child {
  margin-bottom: 0;
}

/* Success Message */
.success-message {
  background-color: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
}

.success-message .message-icon {
  color: #10b981;
}

/* Error Message Box */
.error-message-box {
  background-color: #fee2e2;
  border: 2px solid #dc2626;
  color: #991b1b;
}

.error-message-box .message-icon {
  color: #dc2626;
}

/* Contact Info */
.contact-info {
  background-color: #fafafa;
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.contact-info h3 {
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', serif;
}

.contact-info h3[lang="ja"] {
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: none;
}

.contact-methods {
  margin-top: 24px;
}

/* Contact Method */
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: padding-left 0.3s ease;
}

.contact-method:hover {
  padding-left: 8px;
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  color: #d4af37;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.05);
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', sans-serif;
}

.contact-link {
  font-size: 15px;
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 300;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.contact-link:hover {
  color: #d4af37;
  letter-spacing: 1px;
}

.contact-link:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Social Links */
.social-links {
  padding: 20px 0;
}

.social-label {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', sans-serif;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  color: rgba(212, 175, 55, 0.6);
  transition: all 0.4s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: rgba(212, 175, 55, 0.05);
  border-color: #d4af37;
  color: #d4af37;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.15);
}

.social-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Footer Section */
.footer-section {
  padding: 80px 0 50px;
  background-color: #0a0a0a;
  color: #d4af37;
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 24px;
  color: #d4af37;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', serif;
}

.footer-nav-title[lang="ja"] {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: none;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(212, 175, 55, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.4s ease;
  display: inline-block;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.footer-link:hover {
  color: #d4af37;
  transform: translateX(6px);
  letter-spacing: 1px;
}

.footer-link:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
  background-color: rgba(212, 175, 55, 0.1);
}

/* Footer Social */
.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-social-title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 24px;
  color: #d4af37;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Noto Sans JP', serif;
}

.footer-social-title[lang="ja"] {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: none;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  color: rgba(212, 175, 55, 0.6);
  transition: all 0.4s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #d4af37;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.2);
}

.footer-social-link:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
  background-color: rgba(212, 175, 55, 0.1);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer Copyright */
.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  margin-top: 24px;
  position: relative;
}

.footer-copyright::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
}

.footer-copyright p {
  font-size: 12px;
  color: rgba(212, 175, 55, 0.5);
  margin-bottom: 4px;
  line-height: 1.8;
  letter-spacing: 1px;
  font-weight: 300;
}

.footer-copyright p:last-child {
  margin-bottom: 0;
}

/* Enhanced focus states for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline-width: 3px;
  outline-style: solid;
  outline-offset: 2px;
}

/* Ensure visible focus for keyboard navigation */
*:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}
