/* ===========================================
   Meridian Communications — Shared Stylesheet
   Warm, professional, Jeju-inspired palette
   =========================================== */

:root {
  /* Brand palette: Ebony Clay, Botticelli, Almond, Cinderella, Merino, Timberwolf, White */
  --deep-teal: #243242;   /* Ebony Clay — primary dark */
  --ocean: #4e6e82;       /* deepened Botticelli — links, mid accent */
  --sage: #a9c2ce;        /* Botticelli — decorative accent */
  --sand: #f2e0cd;        /* Almond — alt section / tag backgrounds */
  --gold: #c9a06c;        /* deepened Almond — buttons, highlight accent */
  --blush: #fcdedb;       /* Cinderella — soft accent, decorative */
  --cream: #f6efe4;       /* Merino — page background */
  --ink: #313a42;
  --ink-soft: #7d7871;
  --white: #fefefe;
  --border: #e6dfd5;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(36, 50, 66, 0.10);
  --shadow-sm: 0 4px 14px rgba(36, 50, 66, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Noto Serif KR', Georgia, serif;
  color: var(--deep-teal);
  line-height: 1.25;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }

a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--gold); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.kr {
  font-size: 0.92em;
  color: var(--ink-soft);
  opacity: 0.85;
}

.kr-block {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 0.95rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 239, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Playfair Display', 'Noto Serif KR', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep-teal);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ocean);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--deep-teal);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--deep-teal) 0%, var(--ocean) 60%, #5c7c90 100%);
  color: var(--white);
  padding: 100px 32px 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(201, 160, 108, 0.18);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0,0,0,0.32);
  aspect-ratio: 3/4;
  max-width: 380px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { margin: 32px auto 0; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--sand);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 { color: var(--white); max-width: 780px; }

.hero p.lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 620px;
  margin-top: 18px;
}

.hero .kr {
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}

.btn-row { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-teal) !important;
}
.btn-primary:hover { background: var(--sand); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white) !important;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold) !important; }

.btn-dark {
  background: var(--deep-teal);
  color: var(--white) !important;
}
.btn-dark:hover { background: var(--ocean); }

/* ---------- Sections ---------- */

section { padding: 80px 0; }
section.alt { background: var(--sand); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow { color: var(--gold); text-align: center; }

/* Pillars / Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card .num {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.card.media-card {
  padding: 0;
  overflow: hidden;
}

.card.media-card .media-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card.media-card .media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.card.media-card .media-body {
  padding: 22px 24px 26px;
}

.card h3 { margin-bottom: 10px; }

/* Service list */

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-row:last-child { border-bottom: none; }

.service-index {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: var(--sage);
  font-weight: 700;
}

.service-photo {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 480px;
}

.service-photo img {
  width: 100%;
  display: block;
}

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.tag {
  background: var(--sand);
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Clients */

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.thumb-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm);
}

.thumb-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.client-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.client-mark {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean), var(--deep-teal));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.client-name { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.client-type { font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }

/* Press link card */

.press-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 640px;
  margin: 18px auto 0;
}

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

.press-card img {
  width: 96px;
  height: 96px;
  min-width: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.press-card .press-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.press-card h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.press-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Selected Engagements list */

.engagement-list {
  max-width: 780px;
  margin: 0 auto;
}

.engagement-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.engagement-row:last-child { border-bottom: none; }

.engagement-date {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

.engagement-row p {
  margin: 0;
  color: var(--ink);
}

.engagement-row .kr {
  margin-top: 4px;
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .engagement-row { grid-template-columns: 60px 1fr; gap: 14px; }
}

/* Quote / testimonial style block */

.quote-block {
  background: var(--deep-teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px;
  position: relative;
}

.quote-block p { color: rgba(255,255,255,0.92); font-size: 1.15rem; font-style: italic; }
.quote-block .kr { color: rgba(255,255,255,0.65); }

/* About page bits */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.portrait-frame {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--sage), var(--ocean));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  text-align: center;
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
}

.photo-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-with-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.split-with-photo .section-head {
  text-align: left;
  margin: 0;
  max-width: none;
}

.split-with-photo .section-head .eyebrow { text-align: left; }

@media (max-width: 860px) {
  .split-with-photo { grid-template-columns: 1fr; }
}

.credentials-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.credentials-list li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.credentials-list li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.credentials-list strong {
  color: var(--ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 12px;
}

.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--deep-teal);
  font-weight: 700;
  display: block;
}

.stat .label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-photo {
  width: 180px;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  float: right;
  margin: 0 0 20px 24px;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

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

.contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-teal);
  font-weight: 700;
}

form.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-teal);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean);
  background: var(--white);
}

button.submit-btn {
  background: var(--deep-teal);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

button.submit-btn:hover { background: var(--gold); color: var(--deep-teal); }

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--deep-teal), var(--ocean));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band .kr { color: rgba(255,255,255,0.65); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--deep-teal);
  color: rgba(255,255,255,0.75);
  padding: 56px 32px 28px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-inner h4 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-inner p, .footer-inner a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-inner a:hover { color: var(--gold); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-bottom {
  max-width: 1120px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .quote-block, .cta-band { padding: 34px 26px; }
}
