/*
Theme Name: Atmark Cafe
Theme URI: https://atmarkcafe.co.jp
Author: Antigravity
Author URI: https://google.com
Description: Corporate theme for Atmark Cafe Inc. - Clean Layout
Version: 1.1.0
Text Domain: atmarkcafe
*/

:root {
  --bg-color: #ffffff;
  --bg-secondary: #f9fafb;
  /* Light gray for sections */
  --text-color: #1a202c;
  --text-muted: #718096;
  --primary-color: #0066cc;
  /* Updated to Corporate Blue */
  --secondary-color: #003399;
  --accent-color: #ff0099;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --grad-primary: linear-gradient(135deg, var(--primary-color) 0%, #ffdb4d 100%);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

/* Header */
.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  /* White transparent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  /* Pill shape */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Admin Bar Adjustment */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.custom-logo {
  height: 30px;
  width: auto;
}

@media (max-width: 768px) {
  .custom-logo {
    height: 20px;
  }
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  /* Ensure vertical center alignment */
}

.main-navigation a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.main-navigation a:hover {
  color: var(--primary-color);
}

/* Header Contact Button Style */
.main-navigation ul li:last-child a {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  display: inline-block;
  /* Font replacement trick */
  font-size: 0;
}

.main-navigation ul li:last-child a::before {
  content: "お問い合わせ";
  font-size: 0.9rem;
  display: block;
  line-height: initial;
}

.main-navigation ul li:last-child a:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Align button vertically */
.main-navigation ul li:last-child {
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero-section {
  height: 90vh;
  /* Slightly smaller than full screen */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-color);
  position: relative;
  padding-top: 80px;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 180, 219, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 85% 85%, rgba(0, 131, 176, 0.05) 0%, transparent 20%);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  font-weight: 800;
  color: var(--secondary-color);
  /* Dark for bright bg */
  margin-bottom: 2rem;
}

.title-line {
  display: block;
}

.text-gradient {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 5s linear infinite;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary-color);
  line-height: 1.8;
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.highlight-char {
  background: linear-gradient(135deg, #f16323 0%, #0066cc 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 1.5em;
  display: inline-block;
}

/* Underline removed per user request */

/* Services (Horizontal Cards) */
#services {
  background-color: var(--bg-secondary);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Fixed 2 columns as requested */
  gap: 2.5rem;
}

.glass-card {
  /* Retaining class name but changing style for "Clean" look */
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Default for others, override for service/about */
}

/* Specific overrides for Service Cards (Side-by-See) */
.service-card {
  flex-direction: row;
  align-items: stretch;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-img {
  width: 40%;
  min-width: 200px;
  border-bottom: none;
  border-right: 1px solid var(--border-color);
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.glass-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card h3 {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.works-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

.works-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
}

.works-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background-color: #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
}

.works-card:hover .works-image img {
  transform: scale(1.03);
}

.works-content {
  padding: 1.5rem;
  background: #fff;
  flex-grow: 1;
}

.works-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.works-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About Grid (Text Left, Image Right) */
#about {
  background-color: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.about-card {
  flex-direction: row;
  align-items: stretch;
  text-align: left;
  border-top: none;
  border-left: none;
  justify-content: space-between;
  overflow: hidden;
  /* Ensure image doesn't overflow corners */
}

.about-image {
  width: 50%;
  flex-shrink: 0;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-card:hover .about-image img {
  transform: scale(1.05);
}

.about-content {
  width: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.about-jp-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 0.25rem;
  display: block;
}

.about-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 5px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  line-height: 1.2;
}

.view-more-link {
  margin-top: 1.5rem;
  align-self: flex-end;
  font-size: 0.9rem;
  color: #a0aec0;
  text-decoration: underline;
  font-weight: 500;
}

.about-card:hover .view-more-link {
  color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--text-color);
  /* Dark button for high contrast */
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  /* More square/clean */

  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

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

/* Forms */
.contact-form-container {
  max-width: 800px;
  margin: 60px auto;
  background: #fff;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 180, 219, 0.1);
}

button[type="submit"] {
  border: none;
  cursor: pointer;
  background: var(--text-color);
  color: #fff;
  font-weight: 600;
  padding: 1rem 3rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: var(--primary-color);
}

/* Footer */
.site-footer {
  background: #1a202c;
  /* Keep footer dark for contrast */
  padding: 4rem 0;
  color: #cbd5e0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #a0aec0;
}

.footer-links a:hover {
  color: #fff;
}

.site-info {
  color: #718096;
  font-size: 0.9rem;
}

/* Main Content Padding for Header */
main#primary {
  padding: 0;
}

.site-main.container {
  padding-top: 120px;
}

/* Responsive */
@media (max-width: 768px) {
  /* Removed legacy .header-container column stack to fix mobile layout */

  .hero-section {
    padding-top: 2rem;
    height: auto;
    min-height: 80vh;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
  }

  .hero-content {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero-title span {
    display: block;
    margin-bottom: 0.5rem;
  }

  .hero-label {
    font-size: 0.7rem !important;
    letter-spacing: 0.5px !important;
    white-space: normal !important;
    display: block !important;
    line-height: 1.4;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  /* Footer Links Mobile Adjustment */
  .footer-links ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  /* Stack Service & About Cards on Mobile */
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    flex-direction: column;
  }

  .service-img {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .service-content {
    width: 100%;
    padding: 1.5rem;
  }

  .about-card {
    flex-direction: column;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--primary-color);
  }

  /* Override for Bottom Nav AND Front Page About: Keep Horizontal */
  .company-bottom-nav .about-card,
  #about .about-card {
    flex-direction: row;
    text-align: left;
    border-top: none;
    align-items: stretch;
  }

  .company-bottom-nav .about-card .about-image,
  #about .about-card .about-image {
    width: 40%;
    margin-bottom: 0;
    height: auto;
  }

  .company-bottom-nav .about-card .about-content,
  #about .about-card .about-content {
    width: 60%;
    padding: 1rem;
    align-items: flex-start;
  }

  .about-image {
    margin-bottom: 1.5rem;
  }
}

/* Single Works Styles */
.works-meta-top {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.work-cat-badge {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.work-company {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.works-copy {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0;
  line-height: 1.4;
  border-left: 5px solid var(--primary-color);
  padding-left: 1.5rem;
}

.works-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.detail-section {
  margin-bottom: 3rem;
}

.detail-section h3 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.works-detail-card {
  background: #fff;
  /* Ensure it's white not glass */
  padding: 0;
  /* Removed padding to align with content */
  border-radius: 12px;
}

/* Single Works Specific overrides */
.single-works .site-main.container {
  padding-top: 40px;
  /* Reduced from 120px */
}

/* Fix for Works Main Image */
.works-main-image {
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
  /* Ensure it's centered if explicit width is less than 100% */
}

.works-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* Tighten Title Spacing on Works Detail */
.works-header {
  max-width: 800px;
  margin: 0 auto;
}

.works-header .entry-title {
  margin-bottom: 0.5rem;
  /* Reduced from default */
}

/* Section Intro Text */
.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* Works Card Category Spacing */
.works-card-cats {
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.works-card-cats .work-cat-badge {
  font-size: 0.75rem;
  /* Slightly smaller for cards */
  padding: 0.2rem 0.6rem;
}

/* =========================================
   Company Page Styles
   ========================================= */

/* Hero */
.page-hero {
  background: url('./assets/images/company-hero.webp') no-repeat center center/cover;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0;
  padding-top: 120px;
  padding-bottom: 120px;
  /* Added to increase bottom padding */
}

/* Duplicate .page-hero properties removed */

/* Use a nice gradient overlay if image is missing or basic */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.page-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #fff;
}


/* About Collage Layout */
.company-about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}

.about-collage {
  flex: 1;
  min-width: 300px;
  position: relative;
  height: 500px;
  /* Adjust based on collage needs */
}

.collage-item {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* Arrange images per mockup */
.collage-item.item-1 {
  width: 45%;
  height: 55%;
  left: 0;
  top: 50px;
  z-index: 2;
}

.collage-item.item-2 {
  width: 45%;
  height: 40%;
  right: 0;
  top: 0;
  z-index: 1;
}

.collage-item.item-3 {
  width: 50%;
  height: 35%;
  right: 0;
  bottom: 0;
  z-index: 3;
}


.about-text-content {
  flex: 1;
  min-width: 300px;
}

.about-mission {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.about-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.feature-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-tag {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.feature-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Information Section */
.company-info-section {
  /* Or just var(--bg-secondary) with a blurred bg image */
  background-color: #f7fafc;
  position: relative;
}

.info-card-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  margin-top: 2rem;
}

.info-table-col {
  flex: 1;
  min-width: 300px;
  padding: 1.5rem 2rem;
  /* Reduced vertical padding */
}

.info-map-col {
  flex: 1;
  min-width: 300px;
  min-height: 400px;
}

.company-info-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem 1rem;
  /* Reduced row gap */
  font-size: 0.95rem;
  margin-top: 0;
}

.company-info-list dt {
  font-weight: 700;
  color: #4a5568;
  background: #edf2f7;
  padding: 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
}

.company-info-list dd {
  margin: 0;
  padding: 0.5rem 0;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
}

.company-info-list dd:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .company-about-layout {
    flex-direction: column;
  }

  .about-collage {
    width: 100%;
    height: 400px;
  }

  .info-card-container {
    flex-direction: column;
  }

  .company-info-list {
    grid-template-columns: 1fr;
  }

  .company-info-list dt {
    width: 100%;
  }
}

/* =========================================
   Philosophy Page Styles
   ========================================= */

/* Mission Section Reverse Layout */
.company-about-layout.reverse-layout {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .company-about-layout.reverse-layout {
    flex-direction: column-reverse;
  }
}


/* Vision Section (Diagonal Split) */
.philosophy-vision {
  display: flex;
  flex-wrap: wrap;
  background-color: #f7fafc;
  overflow: hidden;
  position: relative;
}

.vision-image-col {
  flex: 1;
  min-width: 300px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  margin-right: -100px;
  /* Overlap effect */
  z-index: 1;
}

.vision-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 500px;
}

.vision-content-col {
  flex: 1;
  min-width: 300px;
  padding: 6rem 4rem 6rem 8rem;
  /* Extra left padding for overlap */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f7fafc;
}

.vision-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.vision-desc {
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .vision-image-col {
    clip-path: none;
    margin-right: 0;
    height: 300px;
  }

  .vision-content-col {
    padding: 3rem;
  }
}


/* Values Section (Grid Redesign) */
.philosophy-values {
  background: url('./assets/images/values-bg-abstract.webp') no-repeat center center/cover;
  padding: 6rem 0;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.value-number {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(0, 102, 204, 0.08);
  position: absolute;
  top: 0;
  right: 1rem;
  line-height: 1.2;
  z-index: -1;
  transition: color 0.3s ease;
}

.value-card:hover .value-number {
  color: rgba(0, 102, 204, 0.15);
}

.value-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
  position: relative;
}

.value-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
}

@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Nav Card specific tweaks if needed */
.about-card-nav .about-image {
  height: 200px;
  /* Fixed height for consistency */
}

/* Bottom Nav Spacing Override */
.company-bottom-nav {
  padding-top: 10rem;
  padding-bottom: 10rem;
  background-color: #f7fafc;
}

/* =========================================
   Services Page Styles
   ========================================= */

.service-detail-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.service-detail-row.reverse {
  flex-direction: row-reverse;
}

.service-detail-image {
  flex: 1;
  min-width: 300px;
}

.service-detail-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.service-detail-content {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.service-number {
  font-size: 6rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  position: absolute;
  top: -3rem;
  left: -1rem;
  line-height: 1;
  z-index: -1;
}

.service-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.service-subtitle {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.service-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.service-tags li {
  background: #f0f4f8;
  color: #555;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Flow Section */
.service-flow {
  background: #fdfdfd;
}

.flow-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.flow-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  background: #fff;
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 3px solid var(--primary-color);
}

.flow-step-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.flow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.flow-step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.flow-arrow {
  width: 20px;
  height: 20px;
  border-top: 2px solid #ccc;
  border-right: 2px solid #ccc;
  transform: rotate(45deg);
  margin-top: -10px;
  /* Align visual center */
}

@media (max-width: 768px) {

  .service-detail-row,
  .service-detail-row.reverse {
    flex-direction: column;
  }

  .flow-container {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(135deg);
    /* Downward arrow */
    margin: 0;
  }
}

/* =========================================
   Recruit Page Styles
   ========================================= */

.recruit-message-section {
  min-height: 400px;
  /* Ensure basic height even with little content */
  display: flex;
  align-items: center;
  justify-content: center;
}

.recruit-message-container {
  text-align: center;
  padding: 4rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.recruit-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.recruit-text {
  line-height: 2;
  color: var(--text-muted);
}

/* =========================================
   Entry Content (Generic Page Styles)
   ========================================= */

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.entry-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  border-bottom: 2px solid #eee;
  /* Simple underline for H2 in documents */
  padding-bottom: 0.5rem;
}

.entry-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* Contact Form Specifics (Generic) */
.contact-form-wrapper {
  background: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* =========================================
   Contact Form 7 Custom Styles
   ========================================= */

.contact-form-row {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  /* Align label and badge */
  align-items: center;
  /* Reduced gap */
  font-weight: 700;
  color: var(--secondary-color);
}

.form-group label .required,
.wpcf7 .required {
  background: #e53e3e;
  /* Solid Red */
  color: #fff;
  /* White text */
  font-size: 0.7rem;
  /* Smaller */
  margin-left: 0.5rem;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control::placeholder {
  color: #ccc;
  /* Lighter placeholder */
  opacity: 1;
  /* Ensure firefox placeholder opacity */
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox-group {
  text-align: left;
  /* Left align */
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
  /* Left align flex */
  align-items: center;
  color: var(--text-color);
  /* Standard text color */
}

.checkbox-group a {
  color: var(--primary-color);
  text-decoration: underline;
  margin: 0 0.2rem;
  font-weight: 600;
}

/* Fix checkbox spacing */
.wpcf7-list-item {
  margin: 0 0 0 0 !important;
}

.terms-check input {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

.contact-submit-row {
  display: flex;
  justify-content: center;
  width: 100%;
  /* Ensure full width container */
}

.contact-submit-row p {
  margin: 0;
  text-align: center;
  width: 100%;
}

/* CF7 Submit Button Override */
.wpcf7-submit {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7-submit:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Gap Fixes */
.form-group br {
  display: none;
}

.form-group p {
  margin: 0;
}

/* =========================================
   News Archive Styles
   ========================================= */

.news-archive-item {
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
  transition: background-color 0.3s ease;
}

.news-archive-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.news-archive-link:hover {
  background: #f7fafc;
  transform: translateX(10px);
}

.news-archive-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-date {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.news-cat {
  background: #eee;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #666;
}

.news-archive-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--secondary-color);
}

/* Pagination */
.pagination {
  margin-top: 4rem;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* =========================================
   World Class Hero Styles
   ========================================= */

.world-class-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
  /* Fallback */
  padding-top: 0 !important;
  /* Reset generic padding */
}

/* Background & Overlay */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
  display: none;
  /* Removed as requested */
}

/* Content Container */
.hero-container {
  position: relative;
  z-index: 10;
  margin-top: -2rem;
  /* Initial visual correction */
}

.hero-content {
  max-width: 800px;
}

/* Typography */
.hero-label {
  display: inline-block;
  color: #fff;
  /* Updated to White */
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  position: relative;
  padding-left: 50px;
  padding-right: 50px;
  /* Added for right bar */
}

.hero-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--primary-color);
}

.hero-label::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--primary-color);
}

.hero-title {
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 2rem;
}

.title-line {
  display: block;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 15%, #fff 25%, var(--primary-color) 35%, var(--primary-color) 50%, var(--primary-color) 65%, #fff 75%, var(--primary-color) 85%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 5s linear infinite;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 3rem;
  font-weight: 500;
}

/* CTA Button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 102, 204, 0.4);
  color: #fff;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 102, 204, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-hero:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.btn-hero .arrow {
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.btn-hero:hover .arrow {
  transform: translateX(5px);
}

/* Animations Keyframes */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-0 {
  animation-delay: 0.2s;
}

.delay-1 {
  animation-delay: 0.4s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.delay-3 {
  animation-delay: 0.8s;
}

.delay-4 {
  animation-delay: 1.0s;
}

.delay-5 {
  animation-delay: 1.2s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 1.4s;
}

.scroll-text {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #fff;
  /* Updated to White */
  margin-bottom: 1rem;
  opacity: 0.7;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #fff, transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--primary-color);
  animation: dropLine 2s infinite;
}

@keyframes dropLine {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(200%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .world-class-hero {
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic viewport height */
    min-height: 600px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-label {
    padding-left: 0;
    /* Remove line on mobile for cleaner look */
  }

  .hero-label::before {
    display: none;
  }
}

/* =========================================
   Mobile Menu Styles
   ========================================= */

/* Desktop: Hide toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2000;
  /* Above overlay */
  position: relative;
}

.hamburger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

/* Toggled State Icon (X) */
.main-navigation.toggled .hamburger-icon {
  background: transparent;
}

.main-navigation.toggled .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.main-navigation.toggled .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Responsive Menu (Tablet & Mobile) */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    opacity: 0;
    padding-top: 60px;
    /* Space for header */
    transition: opacity 0.3s ease;
  }

  .main-navigation.toggled ul {
    display: flex;
    opacity: 1;
  }

  .main-navigation ul li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpMenu 0.5s ease forwards;
  }

  /* Stagger animation for menu items */
  .main-navigation.toggled ul li:nth-child(1) {
    animation-delay: 0.1s;
  }

  .main-navigation.toggled ul li:nth-child(2) {
    animation-delay: 0.2s;
  }

  .main-navigation.toggled ul li:nth-child(3) {
    animation-delay: 0.3s;
  }

  .main-navigation.toggled ul li:nth-child(4) {
    animation-delay: 0.4s;
  }

  .main-navigation.toggled ul li:nth-child(5) {
    animation-delay: 0.5s;
  }

  .main-navigation ul li a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
  }
}

@keyframes fadeInUpMenu {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}