/* ==========================================================================
   HAESUNG MARINE (해성마린) - Corporate Website Stylesheet
   ========================================================================== */

:root {
  --primary-navy: #0A192F;
  --navy-dark: #06101E;
  --navy-light: #162B4D;
  --ocean-blue: #0077B6;
  --ocean-cyan: #00B4D8;
  --accent-cyan: #48CAE4;
  --accent-light: #E0F2FE;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-focus: #0077B6;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ocean-blue);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-title span {
  color: var(--ocean-blue);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 14px auto 0;
  word-break: keep-all;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean-blue) 0%, #0096C7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #026ca6 0%, #0088b3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ocean-blue);
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ocean-blue);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector Pill */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #EEF2F6;
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.lang-btn {
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.lang-btn:not(.active):hover {
  color: var(--ocean-blue);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--primary-navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section - Fullscreen High-Impact Marine Banner
   ========================================================================== */
.hero-fullscreen {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  padding: 120px 0 140px;
  background: linear-gradient(180deg, rgba(6, 16, 30, 0.65) 0%, rgba(10, 25, 47, 0.55) 50%, rgba(6, 16, 30, 0.88) 100%),
              url('../assets/hero-ship.png') center/cover no-repeat;
  overflow: hidden;
}

.hero-fullscreen::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-badge-dot {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 12px #10B981;
}

.hero-main-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  word-break: keep-all;
}

.hero-main-title span {
  background: linear-gradient(90deg, #38BDF8 0%, #7DD3FC 50%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-text {
  font-size: 1.35rem;
  line-height: 1.75;
  color: #CBD5E1;
  max-width: 760px;
  margin: 0 auto 48px;
  word-break: keep-all;
  font-weight: 400;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 64px;
}

/* Hero Quick Menu Cards (Links to Subpages) */
.hero-quick-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.quick-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.quick-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0, 180, 216, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.quick-card-icon svg {
  width: 22px;
  height: 22px;
}

.quick-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.quick-card p {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.45;
}

.quick-card-arrow {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Subpage Hero Banner
   ========================================================================== */
.subpage-hero {
  background: linear-gradient(135deg, rgba(6, 16, 30, 0.82) 0%, rgba(10, 34, 64, 0.78) 100%),
              url('../assets/hero-drydock.png') center/cover no-repeat;
  color: #FFFFFF;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, var(--bg-light), transparent);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  font-weight: 600;
}

.breadcrumbs a {
  color: #94A3B8;
}

.breadcrumbs a:hover {
  color: #FFFFFF;
}

.subpage-title {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.subpage-desc {
  font-size: 1.12rem;
  color: #CBD5E1;
  max-width: 640px;
}

/* Common Section */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-intro-text {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-muted);
  word-break: keep-all;
}

.about-intro-text p + p {
  margin-top: 20px;
}

.about-intro-highlight {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.5;
  margin-bottom: 24px;
  border-left: 4px solid var(--ocean-blue);
  padding-left: 20px;
}

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

.value-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ocean-blue);
}

.value-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--ocean-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon-box svg {
  width: 28px;
  height: 28px;
}

.value-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.value-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Company Profile Section */
.profile-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: 40px;
}

.profile-top-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--ocean-blue) 100%);
  color: #FFFFFF;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-headline h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-headline p {
  font-size: 0.95rem;
  color: #CBD5E1;
}

.profile-badge-est {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-color);
}

.profile-item {
  background: #FFFFFF;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-item-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ocean-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-item-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.5;
}

.profile-item-val a {
  color: var(--primary-navy);
}

.profile-item-val a:hover {
  color: var(--ocean-blue);
  text-decoration: underline;
}

/* Co-operation Section */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.coop-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

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

.coop-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.coop-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #EFF6FF;
  color: var(--ocean-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coop-icon-badge svg {
  width: 24px;
  height: 24px;
}

.coop-title-wrap h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.3;
}

.coop-title-wrap span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

.coop-partners {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.partner-tag::before {
  content: '•';
  color: var(--ocean-blue);
  font-size: 1.2rem;
  line-height: 0;
}

/* Customer Section */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.customer-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.customer-card:hover {
  border-color: var(--ocean-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.customer-letter-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-blue), var(--ocean-cyan));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.customer-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.customer-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Construction Records Table */
.records-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.records-table th {
  background: #F1F5F9;
  color: var(--primary-navy);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.records-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.records-table tbody tr:hover {
  background-color: #F8FAFC;
}

.record-gallery-row {
  cursor: pointer;
  transition: var(--transition);
}

.record-gallery-row:hover {
  background-color: #EAF5FC !important;
}

.record-gallery-row:focus-visible {
  outline: 3px solid rgba(0, 136, 204, 0.35);
  outline-offset: -3px;
}

.record-gallery-trigger {
  margin-left: 12px;
  padding: 6px 11px;
  border: 1px solid rgba(0, 136, 204, 0.28);
  border-radius: var(--radius-full);
  background: #FFFFFF;
  color: var(--ocean-blue);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.record-gallery-row:hover .record-gallery-trigger,
.record-gallery-trigger:focus-visible {
  color: #FFFFFF;
  background: var(--ocean-blue);
  border-color: var(--ocean-blue);
}

.records-table .col-no {
  width: 70px;
  text-align: center;
  font-weight: 700;
  color: var(--text-light);
}

.vessel-badge {
  display: inline-block;
  font-weight: 700;
  color: var(--primary-navy);
  background: #E2E8F0;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ocean-blue);
  font-weight: 600;
}

/* Contact & Location Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.google-map {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
}

.contact-card, .location-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  min-height: 0;
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-card h3, .location-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.contact-card p.desc, .location-card p.desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.location-card {
    display: flex;
    flex-direction: column;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #F8FAFC;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

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

/* Location Card Details */
.loc-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.loc-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.loc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--ocean-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loc-icon svg {
  width: 20px;
  height: 20px;
}

.loc-text h5 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

.loc-text p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.map-embed-box {
  background: #E2E8F0;
  border-radius: var(--radius-md);
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.map-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(#0077B6 1px, transparent 1px);
  background-size: 16px 16px;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.map-btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--primary-navy);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-btn:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: #94A3B8;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 420px;
}

.footer-brand-title {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-slogan {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: #94A3B8;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* Toast / Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-icon {
  width: 56px;
  height: 56px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary-navy);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--ocean-blue);
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-main-title {
    font-size: 3.2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .coop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero-fullscreen {
    padding: 70px 0 90px;
    min-height: auto;
  }
  .hero-main-title {
    font-size: 2.35rem;
  }
  .hero-lead-text {
    font-size: 1.1rem;
    margin-bottom: 36px;
  }
  .hero-quick-cards {
    grid-template-columns: 1fr;
  }
  .subpage-hero {
    padding: 50px 0 60px;
  }
  .subpage-title {
    font-size: 2.1rem;
  }
  .profile-items-grid {
    grid-template-columns: 1fr;
  }
  .coop-grid {
    grid-template-columns: 1fr;
  }
  .customer-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  /* Mobile Nav Drawer */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #F1F5F9;
  }
}

/* ==========================================================================
   Project Reference Gallery Styles
   ========================================================================== */
.katun-project-section {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(6, 16, 30, 0.72);
  backdrop-filter: blur(8px);
}

.katun-project-section[hidden] {
  display: none;
}

.katun-project-section > .container {
  width: min(1120px, 100%);
  max-width: 1120px;
  height: min(90vh, 900px);
  margin: 0;
  padding: 52px 48px 56px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(232, 245, 252, 0.98), #FFFFFF 42%),
    #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(2, 12, 27, 0.36);
}

.project-preview-open {
  overflow: hidden;
}

.katun-project-heading {
  position: relative;
}

.katun-project-heading .section-header {
  margin-bottom: 30px;
}

.katun-gallery-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 9px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.katun-gallery-close:hover {
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.katun-project-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.katun-project-summary > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.96);
}

.katun-project-summary span {
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.katun-project-summary strong {
  color: var(--primary-navy);
  font-size: 0.98rem;
  line-height: 1.45;
}

.gallery-filter-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-filter-btn,
.katun-filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover,
.katun-filter-btn:hover {
  border-color: var(--ocean-blue);
  color: var(--ocean-blue);
}

.gallery-filter-btn.active,
.katun-filter-btn.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ocean-blue);
}

.gallery-card:focus-visible {
  outline: 3px solid rgba(0, 136, 204, 0.38);
  outline-offset: 3px;
}

.gallery-img-box {
  position: relative;
  width: 100%;
  padding-top: 66.66%;
  overflow: hidden;
  background: #0B192C;
}

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

.katun-gallery-card .gallery-img-box img {
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.4s ease;
}

.katun-gallery-card.image-loaded .gallery-img-box img {
  opacity: 1;
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.06);
}

.gallery-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-body {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.gallery-card-zoom {
  color: var(--ocean-blue);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 30, 0.94);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 14px;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev {
  left: -64px;
}

.lightbox-next {
  right: -64px;
}

@media (max-width: 1024px) {
  .katun-project-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 640px) {
  .record-gallery-trigger {
    display: block;
    margin: 8px 0 0;
  }

  .katun-gallery-close {
    position: static;
    display: block;
    margin: -12px auto 26px;
  }

  .katun-project-section {
    padding: 10px;
  }

  .katun-project-section > .container {
    height: calc(100dvh - 20px);
    padding: 38px 18px 40px;
    border-radius: 18px;
  }

  .katun-project-summary {
    grid-template-columns: 1fr;
  }

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