/*
Theme Name: Medusa Media
Theme URI: https://mdsthai.com
Author: Medusa Media
Description: Lightweight multilingual corporate theme for Medusa Media.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: medusa-media
*/

:root {
  --medusa-blue: #086bd8;
  --medusa-blue-dark: #0055b4;
  --medusa-ink: #090909;
  --medusa-muted: #656972;
  --medusa-paper: #f5f5f7;
  --medusa-white: #fff;
  --medusa-line: rgba(0, 0, 0, .09);
  --medusa-radius: 30px;
  --medusa-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--medusa-ink);
  background: var(--medusa-white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Noto Sans Thai", "Noto Sans SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.medusa-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.84);
  backdrop-filter: saturate(180%) blur(18px);
}
.admin-bar .medusa-nav { top: 32px; }
.medusa-nav-inner {
  width: min(var(--medusa-max), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.medusa-brand { display: flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.025em; }
.medusa-brand img { width: 41px; height: 25px; object-fit: contain; }
.medusa-menu { display: flex; align-items: center; gap: 27px; font-size: 13px; }
.medusa-menu a:hover { color: var(--medusa-blue); }
.medusa-languages { display: flex; padding: 3px; border-radius: 999px; background: #eeeef0; }
.medusa-languages a { padding: 7px 10px; border-radius: 999px; color: #686a70; font-size: 11px; font-weight: 750; }
.medusa-languages a.is-active { color: #111; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.08); }

.medusa-hero {
  min-height: 790px;
  display: grid;
  place-items: center;
  padding: 95px 20px 80px;
  overflow: hidden;
  position: relative;
  text-align: center;
  background: radial-gradient(circle at 50% 18%, rgba(8,107,216,.15), transparent 27%), linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}
.medusa-hero::after {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  left: 50%;
  bottom: -580px;
  transform: translateX(-50%);
  border-radius: 50%;
  box-shadow: 0 -100px 180px rgba(8,107,216,.22);
}
.medusa-hero-content { position: relative; z-index: 2; width: min(1000px, 100%); }
.medusa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 9px 14px;
  border: 1px solid rgba(8,107,216,.18);
  border-radius: 999px;
  color: var(--medusa-blue-dark);
  background: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.medusa-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--medusa-blue); box-shadow: 0 0 0 5px rgba(8,107,216,.1); }
.medusa-hero h1 { max-width: 980px; margin: 0 auto; font-size: clamp(58px, 8.4vw, 116px); line-height: .92; letter-spacing: -.065em; text-wrap: balance; }
.medusa-hero p { max-width: 720px; margin: 32px auto 0; color: var(--medusa-muted); font-size: clamp(18px, 2.1vw, 25px); line-height: 1.45; letter-spacing: -.02em; text-wrap: balance; }
.medusa-actions { display: flex; justify-content: center; gap: 12px; margin-top: 38px; }
.medusa-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border: 1px solid var(--medusa-ink); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 650; transition: .2s ease; }
.medusa-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.medusa-button.is-primary { color: #fff; border-color: var(--medusa-blue); background: var(--medusa-blue); }

.medusa-section { padding: 120px 20px; }
.medusa-container { width: min(var(--medusa-max), 100%); margin: 0 auto; }
.medusa-section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 48px; }
.medusa-kicker { margin: 0 0 13px; color: var(--medusa-blue); font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.medusa-section h2, .medusa-manifesto h2, .medusa-contact h2 { max-width: 850px; margin: 0; font-size: clamp(40px, 5.7vw, 76px); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.medusa-intro { max-width: 490px; margin: 0; color: var(--medusa-muted); font-size: 18px; line-height: 1.55; }

.medusa-stats { background: var(--medusa-paper); }
.medusa-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--medusa-line); border-radius: var(--medusa-radius); background: var(--medusa-line); }
.medusa-stat { min-height: 255px; padding: 38px 34px; background: #fff; }
.medusa-stat strong { display: block; margin-bottom: 28px; font-size: clamp(48px, 6vw, 78px); line-height: .95; letter-spacing: -.06em; }
.medusa-stat span { color: #53565d; font-size: 16px; line-height: 1.45; }
.medusa-note { margin-top: 16px; color: #888b91; font-size: 12px; }

.medusa-manifesto { padding: 150px 20px; color: #fff; background: #050505; }
.medusa-manifesto .medusa-container { display: grid; grid-template-columns: .8fr 1.7fr; gap: 60px; }
.medusa-manifesto .medusa-kicker { color: #63aaff; }
.medusa-manifesto h2 { font-size: clamp(47px, 6.7vw, 90px); }
.medusa-manifesto p:last-child { max-width: 710px; margin: 36px 0 0; color: #aeb1b7; font-size: 20px; line-height: 1.55; }

.medusa-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.medusa-service { min-height: 390px; padding: 42px; border: 1px solid var(--medusa-line); border-radius: var(--medusa-radius); background: var(--medusa-paper); }
.medusa-service.is-dark { color: #fff; border-color: #111; background: #0c0c0d; }
.medusa-service.is-blue { color: #fff; border-color: var(--medusa-blue); background: linear-gradient(145deg, #0575e6, #0055b7); }
.medusa-service-index { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--medusa-blue); background: #fff; font-size: 13px; font-weight: 800; }
.medusa-service h3 { margin: 112px 0 14px; font-size: clamp(29px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.045em; }
.medusa-service p { margin: 0; color: #6c7078; font-size: 17px; line-height: 1.5; }
.medusa-service.is-dark p, .medusa-service.is-blue p { color: rgba(255,255,255,.72); }

.medusa-work { background: var(--medusa-paper); }
.medusa-work-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.medusa-card { overflow: hidden; border: 1px solid var(--medusa-line); border-radius: var(--medusa-radius); background: #fff; }
.medusa-card img { height: 465px; object-fit: cover; object-position: center top; }
.medusa-card.is-tall img { height: 640px; }
.medusa-card-copy { padding: 30px 32px 34px; }
.medusa-card-copy small { color: var(--medusa-blue); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.medusa-card-copy h3 { margin: 12px 0 8px; font-size: 31px; letter-spacing: -.035em; }
.medusa-card-copy p { margin: 0; color: var(--medusa-muted); line-height: 1.5; }
.medusa-work-stack { display: grid; gap: 18px; }

.medusa-studio { color: #fff; background: #050505; }
.medusa-studio-media { overflow: hidden; margin-top: 50px; border-radius: var(--medusa-radius); }
.medusa-studio-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.medusa-studio-facts div { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.18); }
.medusa-studio-facts strong { display: block; font-size: 29px; letter-spacing: -.04em; }
.medusa-studio-facts span { display: block; margin-top: 7px; color: #a9acb2; }

.medusa-brands { padding: 30px; border: 1px solid var(--medusa-line); border-radius: var(--medusa-radius); background: #fff; }
.medusa-news { background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%); }
.medusa-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.medusa-news-card { min-height: 340px; padding: 30px; border: 1px solid var(--medusa-line); border-radius: 25px; background: #fff; transition: .2s ease; }
.medusa-news-card:hover { transform: translateY(-5px); box-shadow: 0 28px 80px rgba(0,0,0,.10); }
.medusa-news-meta { display: flex; justify-content: space-between; color: #83858b; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.medusa-news-card h3 { margin: 115px 0 14px; font-size: 29px; line-height: 1.08; letter-spacing: -.04em; }
.medusa-news-card p { margin: 0; color: var(--medusa-muted); line-height: 1.5; }

.medusa-contact { padding: 135px 20px 60px; color: #fff; background: #050505; }
.medusa-contact-panel { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.medusa-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 100px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); color: #92959b; font-size: 13px; }

.medusa-content { width: min(840px, calc(100% - 40px)); margin: 90px auto 120px; }
.medusa-content h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.05em; }
.medusa-content p { font-size: 18px; line-height: 1.7; }
.medusa-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.medusa-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.medusa-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .medusa-menu { display: none; }
  .medusa-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .medusa-manifesto .medusa-container { grid-template-columns: 1fr; }
  .medusa-services-grid, .medusa-work-grid, .medusa-post-grid { grid-template-columns: 1fr; }
  .medusa-card.is-tall img { height: 470px; }
  .medusa-section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
  .admin-bar .medusa-nav { top: 46px; }
  .medusa-nav-inner { width: calc(100% - 24px); }
  .medusa-brand span { display: none; }
  .medusa-hero { min-height: 680px; padding-top: 70px; }
  .medusa-actions { flex-direction: column; max-width: 320px; margin-left: auto; margin-right: auto; }
  .medusa-section { padding: 90px 18px; }
  .medusa-stats-grid, .medusa-studio-facts { grid-template-columns: 1fr; }
  .medusa-stat { min-height: 210px; }
  .medusa-service { min-height: 350px; padding: 30px; }
  .medusa-card img, .medusa-card.is-tall img { height: 350px; }
  .medusa-contact-panel, .medusa-footer { align-items: stretch; flex-direction: column; }
}
