/* =====================================================
   Seattle Best Insurance - Main Stylesheet
   Version: 1.0
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
  /* Brand Colors - 신뢰감 + 따뜻함 */
  --primary: #1e3a5f;        /* 딥 네이비 - 신뢰, 전문성 */
  --primary-dark: #152a45;
  --primary-light: #2d4a6f;
  --secondary: #c9a227;      /* 웜 골드 - 따뜻함, 친근함 */
  --secondary-light: #d4b84a;
  --accent: #c53030;         /* 소프트 레드 - 로고 컬러, CTA */
  --accent-light: #e53e3e;

  /* Neutral Colors */
  --white: #ffffff;
  --bg-warm: #faf9f7;        /* 웜 화이트 배경 */
  --bg-light: #f5f4f2;
  --text-dark: #2d3748;
  --text-gray: #4a5568;
  --text-light: #718096;
  --border: #e2e0dc;

  /* Typography */
  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --container-width: 1200px;

  /* Transitions */
  --transition: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ko);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-warm);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

.en {
  font-family: var(--font-en);
  color: var(--text-gray);
  font-size: 0.9em;
}

.ko {
  display: block;
}

.bilingual-title .ko {
  display: block;
  color: var(--primary);
}

.bilingual-title .en {
  display: block;
  font-size: 0.7em;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ----- Links ----- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.btn-secondary {
  background: var(--secondary);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}

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

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

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

/* ----- Top Bar ----- */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--white);
}

.top-bar a:hover {
  color: var(--secondary);
}

.top-bar-contact {
  display: flex;
  gap: 25px;
}

.top-bar-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----- Main Header ----- */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .ko {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-text .en {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ----- Navigation ----- */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 12px 18px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
}

.nav-link:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  background: var(--bg-light);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.dropdown-menu .en {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('../images/slider-01.jpeg') center/cover;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero h1 .en {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-top: 0.5rem;
}

.hero-tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-tagline .en {
  color: rgba(255,255,255,0.7);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: var(--secondary);
  color: var(--primary-dark);
}

.hero .btn-primary:hover {
  background: var(--secondary-light);
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

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

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: var(--section-padding) 0;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--primary);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-gray);
}

/* =====================================================
   SERVICE CARDS
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.service-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card h3 .en {
  font-size: 0.85rem;
  font-weight: 500;
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* =====================================================
   WHY CHOOSE US
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

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

.feature-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* =====================================================
   ABOUT / CEO MESSAGE
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 250px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.ceo-signature {
  margin-top: 20px;
}

.ceo-signature img {
  max-width: 150px;
}

.ceo-name {
  font-weight: 600;
  color: var(--primary);
  margin-top: 10px;
}

.about-content blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
  margin: 30px 0;
}

/* =====================================================
   CONTACT INFO
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary);
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-info-item i {
  color: var(--secondary);
  font-size: 1.2rem;
  width: 24px;
}

.contact-info-item .en {
  display: block;
  font-size: 0.85rem;
}

/* =====================================================
   QUOTE FORM
   ===================================================== */
.quote-form-section {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

.quote-form-section h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 30px;
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group label .en {
  font-weight: 400;
  opacity: 0.8;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.form-control:focus {
  outline: 3px solid var(--secondary);
}

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

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
}

.quote-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-brand img {
  height: 45px;
  margin-bottom: 20px;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer h4 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

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

.footer-links .en {
  font-size: 0.8rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =====================================================
   PAGE HEADER (Subpages)
   ===================================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header h1 .en {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.8;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.breadcrumb a:hover {
  color: var(--secondary);
}

/* =====================================================
   CONTENT PAGES
   ===================================================== */
.content-section {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
}

.content-main h2 {
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.content-main ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.content-main li {
  margin-bottom: 10px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-dark);
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: var(--bg-light);
  color: var(--primary);
}

/* Insurance Type Cards */
.insurance-types {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.insurance-type-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 25px;
  border-left: 4px solid var(--secondary);
}

.insurance-type-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.insurance-type-card h4 .en {
  font-weight: 500;
  font-size: 0.85rem;
}

/* Coverage List */
.coverage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.coverage-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.coverage-item i {
  color: var(--secondary);
  font-size: 1.5rem;
}

.coverage-item h5 {
  margin-bottom: 5px;
  color: var(--primary);
}

.coverage-item p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
}

/* =====================================================
   FORMS
   ===================================================== */
.quote-form {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

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

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

.form-group label .en {
  font-weight: 400;
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-ko);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

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

.form-group select {
  cursor: pointer;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

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

  .quote-form {
    padding: 25px;
  }
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 50px 0;
  text-align: center;
}

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

.cta-section p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

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

.cta-section .btn:hover {
  background: var(--primary-dark);
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* =====================================================
   RESPONSIVE - Mobile Styles
   ===================================================== */
@media (max-width: 992px) {
  .header-content {
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1001;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    padding: 15px;
    border-bottom: 1px solid var(--border);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h1 .en {
    font-size: 1.1rem;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .service-card {
    padding: 20px;
  }

  .contact-card {
    padding: 20px;
  }
}
