/* ============================================================
   Orange Square (주식회사 오렌지스퀘어) - Company Website
   Template 11: Teal & Pewter — Reversed Hero, Reversed Section
   ============================================================ */

/* --- Google Font: Host Grotesk --- */
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
  --primary: #1B6B6B;
  --accent: #B8A07A;
  --dark: #0D3D3D;
  --light-bg: #F4F9F9;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

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

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

/* --- Navigation --- */
.content-wrap {
  width: 100%;
}

nav.navbar {
  padding: 12px 0;
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

nav.navbar .container-fluid {
  padding-left: 2rem;
  padding-right: 2rem;
}

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

.navbar-brand img.logo-img {
  height: 3rem;
  width: auto;
}

.navbar-caption {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}

.navbar-caption.text-primary {
  color: var(--primary) !important;
}

.navbar-nav .nav-link {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px !important;
  color: var(--primary) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

.navbar-buttons {
  display: flex;
  align-items: center;
}

.navbar-buttons .btn {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

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

.btn-info:hover {
  background-color: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.navbar-toggler {
  border: none;
  padding: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(27, 107, 107, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section.flex-row-reverse .row {
  flex-direction: row-reverse;
}

.hero-content {
  color: var(--white);
  padding: 60px 0;
}

.hero-content h1 {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content .hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-content .btn {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

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

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

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

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

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

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

.section-bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

.section-title {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 400;
}

/* --- About Section --- */
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.about-content {
  padding: 20px 0;
}

.about-content h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.9;
}

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

/* --- Service Cards --- */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.service-card.card_1 {
  border-top: 4px solid var(--primary);
}

.service-card.card_2 {
  border-top: 4px solid var(--accent);
}

.service-card .card-icon {
  width: 70px;
  height: 70px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary);
}

.service-card h4 {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Stats Section --- */
.stats-section {
  background-color: var(--primary);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  font-weight: 400;
}

/* --- Team Section --- */
.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

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

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card .team-info {
  padding: 24px 20px;
}

.team-card .team-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.team-card .team-role {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
.accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-button {
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  background: var(--white);
  padding: 20px 24px;
}

.accordion-button:not(.collapsed) {
  background: var(--primary);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  filter: brightness(0.5);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 20px 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Contact Form --- */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrapper .form-control {
  font-family: 'Host Grotesk', sans-serif;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 107, 0.1);
}

.contact-form-wrapper textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.btn-primary-custom {
  background-color: var(--primary);
  border: none;
  color: var(--white);
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--dark);
  color: var(--white);
}

/* --- Contact Info Cards --- */
.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  transition: all 0.3s ease;
}

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

.contact-info-card .contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: 1.5rem;
}

.contact-info-card h5 {
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* --- Map --- */
.map-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer .footer-links {
  margin-bottom: 16px;
}

.footer .footer-links a {
  margin: 0 12px;
  font-size: 0.95rem;
}

.footer .footer-copyright {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* --- Parallax Banner --- */
.parallax-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.parallax-banner .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.parallax-banner h2 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.parallax-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* --- Page Header --- */
.page-header {
  background-color: var(--primary);
  padding: 120px 0 60px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

/* --- Breadcrumb --- */
.breadcrumb-wrapper {
  background: var(--light-bg);
  padding: 16px 0;
}

.breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
}

.breadcrumb-item a {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* --- Lists in legal pages --- */
.container ul {
  padding-left: 20px;
}

.container ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* --- Cookie tables --- */
.cookie-tables-white .wp-block-table table,
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  border-collapse: collapse !important;
}

.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 8px !important;
}

.wp-block-table {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th {
  background-color: var(--light-bg);
  font-weight: 700;
  text-align: left;
}

.wp-block-table td {
  vertical-align: top;
}

/* --- Token M5 sections (Template 11 specific) --- */
.article03 {
  padding: 80px 0;
}

.strengthm5 {
  background-color: var(--white);
}

.strengthm5 .row.flex-row-reverse {
  flex-direction: row-reverse;
}

/* --- Vision section --- */
.vision-card {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 30px;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.vision-card h4 {
  font-weight: 700;
  margin-bottom: 10px;
}

.vision-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-section {
    min-height: 80vh;
    background-attachment: scroll;
  }

  .parallax-banner {
    background-attachment: scroll;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
  }

  .navbar-nav .nav-link {
    padding: 10px 0 !important;
  }

  .navbar-buttons {
    margin-top: 12px;
  }

  .about-content {
    padding: 30px 0 0;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .page-header {
    padding: 100px 0 50px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

  .section-padding {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .service-card {
    margin-bottom: 20px;
  }

  .team-card {
    margin-bottom: 30px;
  }

  .footer .footer-links a {
    display: inline-block;
    margin: 4px 8px;
  }
}
