/* ============================================================
   W&S LLC. — Main Stylesheet
   style.css
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  line-height: 1.8;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- CSS Variables: Light Mode ---------- */
:root {
  --grad:              linear-gradient(135deg, #004080 0%, #0076BE 100%);
  --accent:            #0076BE;
  --accent-dark:       #004080;

  /* Backgrounds */
  --bg:                #f8fafc;
  --bg2:               #eef4fb;
  --surface:           #ffffff;

  /* Text */
  --text:              #0f172a;
  --text2:             #334155;
  --text3:             #64748b;

  /* Borders & Shadows */
  --border:            rgba(0, 118, 190, 0.15);
  --shadow:            0 2px 16px rgba(0, 64, 128, 0.07);
  --card-shadow:       0 1px 4px rgba(0, 64, 128, 0.06);

  /* Navigation */
  --nav-bg:            rgba(255, 255, 255, 0.98);
  --nav-border:        rgba(0, 118, 190, 0.12);
  --topbar-bg:         #1e3a5f;
  --topbtn-bg:         rgba(255, 255, 255, 0.13);
  --topbtn-border:     rgba(255, 255, 255, 0.25);

  /* Drawer */
  --drawer-bg:         #ffffff;
  --drawer-link:       #0f172a;

  /* Footer */
  --footer-bg:         #0f172a;
  --footer-sub:        rgba(255, 255, 255, 0.4);

  /* Form */
  --input-bg:          #f1f5f9;
  --input-border:      rgba(0, 118, 190, 0.2);

  /* Hero */
  --hero-from:         #dbeafe;
  --hero-to:           #ffffff;
  --hero-radial:       rgba(0, 118, 190, 0.12);
  --hero-h1:           #0f172a;
  --hero-en:           #94a3b8;
  --hero-p:            #334155;
  --acc-from:          #004080;
  --acc-to:            #0076BE;

  /* Buttons */
  --btn2-bg:           #ffffff;
  --btn2-color:        #004080;
  --btn2-border:       rgba(0, 64, 128, 0.35);
}

/* ---------- CSS Variables: Dark Mode ---------- */
[data-theme="dark"] {
  --bg:                #0a0a0a;
  --bg2:               #111111;
  --surface:           #1a1a1a;
  --text:              #f1f5f9;
  --text2:             #cbd5e1;
  --text3:             #94a3b8;
  --border:            rgba(255, 255, 255, 0.1);
  --shadow:            0 2px 16px rgba(0, 0, 0, 0.45);
  --card-shadow:       0 1px 4px rgba(0, 0, 0, 0.4);
  --nav-bg:            rgba(10, 10, 10, 0.97);
  --nav-border:        rgba(255, 255, 255, 0.08);
  --topbar-bg:         #0f1f35;
  --topbtn-bg:         rgba(255, 255, 255, 0.1);
  --topbtn-border:     rgba(255, 255, 255, 0.2);
  --drawer-bg:         #111111;
  --drawer-link:       #f1f5f9;
  --footer-bg:         #060606;
  --footer-sub:        rgba(255, 255, 255, 0.38);
  --input-bg:          #1a1a1a;
  --input-border:      rgba(255, 255, 255, 0.14);
  --hero-from:         #0a0a0a;
  --hero-to:           #0a0a0a;
  --hero-radial:       rgba(0, 118, 190, 0.16);
  --hero-h1:           #f1f5f9;
  --hero-en:           rgba(255, 255, 255, 0.3);
  --hero-p:            #cbd5e1;
  --acc-from:          #60a5fa;
  --acc-to:            #3b82f6;
  --btn2-bg:           rgba(255, 255, 255, 0.07);
  --btn2-color:        #f1f5f9;
  --btn2-border:       rgba(255, 255, 255, 0.3);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.inner        { max-width: 1000px; margin: 0 auto; }
.section      { padding: 72px 32px; }
.section.bg2  { background: var(--bg2); transition: background 0.3s; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
  transition: color 0.3s;
}
.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--grad);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-title.left       { text-align: left; }
.section-title.left::after { margin-left: 0; }

.section-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin: 14px 0 32px;
  text-align: center;
  transition: color 0.3s;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
}

/* Top utility bar */
.nav-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 28px;
  gap: 8px;
  background: var(--topbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.nav-topbtn {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid var(--topbtn-border);
  background: var(--topbtn-bg);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-topbtn:hover           { background: rgba(255, 255, 255, 0.22); }
.nav-topbtn.active-lang     { background: linear-gradient(135deg, #0ea5e9, #0076BE); border-color: transparent; }

/* Main nav bar */
.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 28px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}
.nav-logo img      { width: 34px; height: 34px; border-radius: 50%; }
.nav-logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hamburger */
.hamburger {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: all 0.2s;
}
.hamburger:hover          { background: var(--grad); border-color: transparent; }
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text3);
  transition: transform 0.25s, opacity 0.2s, width 0.2s, background 0.2s;
}
.hamburger:hover span     { background: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed;
  top: 0; right: -270px;
  width: 250px;
  height: 100%;
  background: var(--drawer-bg);
  border-left: 1px solid var(--border);
  z-index: 300;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 66px 0 36px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.drawer.open         { right: 0; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer-close {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 15px;
  color: var(--text3);
  cursor: pointer;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.drawer-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text3);
  text-transform: uppercase;
  padding: 14px 24px 5px;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--drawer-link);
  text-decoration: none;
  border-bottom: 1px solid var(--nav-border);
  transition: all 0.15s;
}
.drawer-nav a:hover { color: var(--accent); background: var(--bg2); }
.drawer-nav a .nav-icon { font-size: 15px; margin-right: 11px; }

.drawer-cta { padding: 18px 24px 0; }
.drawer-cta a {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  background: var(--grad);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 72px 32px 56px;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, var(--hero-radial) 0%, transparent 70%);
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid rgba(0, 118, 190, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  background: var(--surface);
  transition: background 0.3s;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 13px;
  position: relative;
  color: var(--hero-h1);
  transition: color 0.3s;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--acc-from), var(--acc-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-en {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--hero-en);
  margin-bottom: 16px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.hero p {
  font-size: 15px;
  color: var(--hero-p);
  max-width: 440px;
  line-height: 1.85;
  margin-bottom: 30px;
  position: relative;
  transition: color 0.3s;
}

.hero-btns   { display: flex; gap: 10px; position: relative; }

.btn-primary {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: bold;
  background: var(--grad);
  border: none;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 118, 190, 0.28);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: bold;
  background: var(--btn2-bg);
  border: 1.5px solid var(--btn2-border);
  border-radius: 50px;
  color: var(--btn2-color);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.svc-card {
  padding: 24px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: all 0.25s;
  box-shadow: var(--card-shadow);
}
.svc-card:hover {
  border-color: rgba(0, 118, 190, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 118, 190, 0.1);
}

.svc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 13px;
}

.svc-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.4;
  transition: color 0.3s;
}

.svc-card p {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.65;
  transition: color 0.3s;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-list   { display: flex; flex-direction: column; gap: 0; }

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.2s;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item:hover       { opacity: 0.72; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 180px;
}

.news-date {
  font-size: 13px;
  color: var(--text3);
  white-space: nowrap;
  transition: color 0.3s;
}

.news-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.news-badge.info    { background: rgba(0,118,190,0.12); color: var(--accent); }
.news-badge.notice  { background: rgba(234,179,8,0.12); color: #a16207; }
.news-badge.update  { background: rgba(34,197,94,0.12); color: #15803d; }

[data-theme="dark"] .news-badge.notice { color: #eab308; }
[data-theme="dark"] .news-badge.update { color: #4ade80; }

.news-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  transition: color 0.3s;
}

.news-more-wrap { text-align: center; margin-top: 28px; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: center;
}

.about-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  min-width: 200px;
  transition: background 0.3s;
}
.about-logo-wrap img { width: 128px; height: 128px; border-radius: 50%; }

.about-text p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.9;
  margin-top: 14px;
  transition: color 0.3s;
}

.about-stats { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }

.stat-num {
  font-size: 17px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 28px;
}

.contact-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 9px;
  transition: color 0.3s;
}
.contact-info p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 18px;
  transition: color 0.3s;
}

.contact-row {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 7px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color 0.3s;
}
.contact-row-label {
  font-size: 11px;
  color: var(--text3);
  width: 52px;
  flex-shrink: 0;
  padding-top: 1px;
}

/* Form */
.form-group         { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 5px;
  font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.3s, color 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { height: 82px; resize: vertical; }

.form-submit {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  background: var(--grad);
  border: none;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(0, 118, 190, 0.22);
  transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.88; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 48px 32px 24px;
  background: var(--footer-bg);
  transition: background 0.3s;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}
.footer-logo img      { width: 30px; height: 30px; border-radius: 50%; }
.footer-logo-text     { font-size: 13px; font-weight: 800; color: #fff; letter-spacing: 0.05em; }

.footer-links         { display: flex; gap: 40px; }
.footer-col h5 {
  font-size: 11px;
  color: var(--footer-sub);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--footer-sub);
  text-decoration: none;
  margin-bottom: 5px;
  transition: color 0.2s;
}
.footer-col a:hover   { color: #fff; }

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  gap: 5px;
}
.footer-bottom p      { font-size: 11px; color: var(--footer-sub); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .svc-grid                   { grid-template-columns: repeat(2, 1fr); }
  .about-grid                 { grid-template-columns: 1fr; }
  .about-logo-wrap            { min-width: unset; }
  .contact-grid               { grid-template-columns: 1fr; }
  .footer-inner               { flex-direction: column; gap: 28px; }
  .footer-links               { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 600px) {
  .hero h1                    { font-size: 28px; }
  .section                    { padding: 52px 20px; }
  .svc-grid                   { grid-template-columns: 1fr; }
  .hero-btns                  { flex-direction: column; width: 100%; }
  .btn-primary,
  .btn-secondary              { text-align: center; width: 100%; }
  .news-meta                  { min-width: unset; flex-wrap: wrap; }
}
