/* ============================================
   Design System & Variables
   ============================================ */
:root {
  --primary-blue: #004a99;
  --white: #ffffff;
  --light-bg: #f6f6f6;
  --footer-black: #0a0a0a;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --border-radius: 12px;
  --transition: 0.3s ease;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  font-size: 1.0625rem;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.9;
}

.logo svg {
  height: 50px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

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

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.375rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #003366 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

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

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  background-color: #003d7a;
}

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

.btn-secondary:hover {
  background-color: var(--light-bg);
}

/* ============================================
   Cards
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.0625rem;
  flex-grow: 1;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1);
}

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

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--footer-black);
  color: #cccccc;
  padding: 3rem 0 2rem;
}

.footer-top-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #1a1a1a;
}

.footer-top-info p {
  color: #999999;
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0.5rem 0;
}

.footer-top-info a {
  color: #999999;
  transition: color var(--transition);
}

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

.footer-top-info strong {
  color: var(--white);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid #1a1a1a;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-company h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-company p {
  color: #999999;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-company a {
  color: #999999;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-social h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.social-icon:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: #cccccc;
}

.social-icon:hover svg {
  fill: var(--white);
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-column h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-links-column a {
  color: #999999;
  font-size: 0.9rem;
  transition: color var(--transition);
  text-decoration: none;
}

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

.footer-social-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #1a1a1a;
}

.footer-social-section .social-icons {
  justify-content: center;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  text-align: center;
}

.footer-copyright {
  color: #666666;
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================
   Articles Page
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.article-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.article-summary {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
  flex-grow: 1;
}

/* ============================================
   Article Page (Individual Article)
   ============================================ */
.article-page {
  max-width: 900px;
  margin: 0 auto;
}

.article-page-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.article-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-page-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-bg);
  color: var(--text-gray);
  font-size: 0.9rem;
}

.article-page-content {
  line-height: 1.8;
  color: var(--text-gray);
}

.article-page-content h2 {
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-page-content h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.article-page-content p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.article-page-content ul,
.article-page-content ol {
  margin-left: 2rem;
  margin-bottom: 1.25rem;
}

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

/* ============================================
   Services Page
   ============================================ */
.service-section {
  background-color: var(--white);
  padding: 3.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid #e8e8e8;
}

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

.service-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-weight: 700;
  line-height: 1.3;
}

.service-section p {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}

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

/* ============================================
   About Page
   ============================================ */
.about-section {
  margin-bottom: 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.about-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.about-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-weight: 700;
  line-height: 1.3;
}

.about-section p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Policy Page
   ============================================ */
.policy-section {
  margin-bottom: 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-weight: 700;
  line-height: 1.3;
}

.policy-section h3 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

.policy-section p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.policy-section li {
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info {
  background-color: var(--light-bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-blue);
  font-weight: 700;
  line-height: 1.3;
}

.contact-detail {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail strong {
  color: var(--text-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-form {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ============================================
   Mobile Styles (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: left var(--transition);
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    left: 0;
  }

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

  .hero p {
    font-size: 1.125rem;
  }

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

  .section {
    padding: 4rem 0;
  }

  .logo svg {
    height: 40px;
  }

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

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.125rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-section {
    padding: 2rem 1.5rem;
  }

  .service-section h2 {
    font-size: 1.875rem;
  }

  .about-section {
    padding: 2rem 0;
  }

  .about-section h2 {
    font-size: 1.875rem;
  }

  .policy-section {
    padding: 2rem 0;
  }

  .policy-section h2 {
    font-size: 1.875rem;
  }

  .policy-section h3 {
    font-size: 1.5rem;
  }

  .contact-info,
  .contact-form {
    padding: 2rem 1.5rem;
  }

  .footer-top-info {
    padding: 1.5rem 1rem;
  }

  .footer-top-info p {
    font-size: 0.85rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 1.5rem 1rem;
  }

  .footer-company,
  .footer-links-column {
    align-items: center;
  }

  .footer-social-section {
    padding: 1.5rem 1rem;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    padding: 1rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .service-section {
    padding: 2rem 1.5rem;
  }

  /* Purchase Banner Mobile */
  #purchase-banner {
    padding: 0.75rem !important;
  }

  #purchase-banner .container {
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
  }

  #purchase-banner span {
    font-size: 0.95rem !important;
    text-align: center;
  }

  #purchase-banner a {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
    width: 100%;
    text-align: center;
  }

  #purchase-banner button {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    margin-left: 0 !important;
    padding: 0.4rem 0.8rem !important;
  }

  /* Quality Assurance Section Mobile */
  .section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 3px solid var(--primary-blue);
}

#cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--primary-blue);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: #003d7a;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cookie-btn-decline {
  background-color: var(--light-bg);
  color: var(--text-dark);
  border: 2px solid #e0e0e0;
}

.cookie-btn-decline:hover {
  background-color: #e8e8e8;
  border-color: var(--text-gray);
}

@media (max-width: 768px) {
  #cookie-banner {
    padding: 1.25rem 1rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .cookie-banner-text {
    min-width: auto;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   Focus Styles (Accessibility)
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}
