/*
Theme Name: SaveItMedia
Theme URI: https://saveitmedia.com
Description: SaveItMedia - Digital Media & Advertising
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Mulish:wght@300;400;500;600&display=swap');

:root {
  --navy:    #09152a;
  --navy2:   #0d1d36;
  --line:    #1a2e4a;
  --gold:    #c9a96e;
  --gold2:   #e8c98a;
  --white:   #f4f3ef;
  --muted:   #7a8fa8;
  --display: 'Playfair Display', serif;
  --body:    'Mulish', sans-serif;
  --sidebar: 260px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  display: flex;
}

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

/* ── SIDEBAR ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar);
  min-width: var(--sidebar);
  height: 100vh;
  background: var(--navy2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 36px;
  position: fixed;
  top: 0; left: 0;
  z-index: 50;
}

.sidebar-logo {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--white);
}
.sidebar-logo span { color: var(--gold); }
.sidebar-logo small {
  display: block;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 14px;
  border-left: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
}
.sidebar-nav a:hover { color: var(--white); border-left-color: var(--line); }
.sidebar-nav a.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201,169,110,.06); }

.sidebar-nav .nav-num {
  font-size: 10px;
  color: var(--line);
  font-family: var(--display);
  font-weight: 700;
  min-width: 16px;
}
.sidebar-nav a.active .nav-num { color: rgba(201,169,110,.5); }

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-cta {
  display: block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 13px 18px;
  text-align: center;
  transition: background .2s;
  cursor: pointer;
}
.sidebar-cta:hover { background: var(--gold2); }

.sidebar-contact-line {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .04em;
}

/* ── MAIN AREA ───────────────────────────────── */
.main {
  margin-left: var(--sidebar);
  width: calc(100% - var(--sidebar));
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ── PAGES ───────────────────────────────────── */
.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ── HOME PAGE ───────────────────────────────── */
.home-wrap {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 40px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: 'SM';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-60%);
  font-family: var(--display);
  font-size: 300px;
  font-weight: 700;
  color: rgba(201,169,110,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.home-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-tag::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.home-hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 5.5vw, 90px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.5px;
  margin-bottom: 36px;
  max-width: 700px;
}
.home-hero h1 em { font-style: italic; color: var(--gold); }

.home-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.home-btns { display: flex; gap: 16px; align-items: center; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 36px;
  transition: background .2s;
  cursor: pointer;
  border: none;
  font-family: var(--body);
}
.btn-gold:hover { background: var(--gold2); }

.btn-outline {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 36px;
  transition: all .2s;
  cursor: pointer;
  background: none;
  font-family: var(--body);
}
.btn-outline:hover { border-color: var(--muted); color: var(--white); }

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.home-stat {
  padding: 28px 40px;
  border-right: 1px solid var(--line);
}
.home-stat:last-child { border-right: none; }

.home-stat-n {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 5px;
}
.home-stat-l {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SERVICES PAGE ───────────────────────────── */
.services-wrap {
  min-height: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.services-left {
  border-right: 1px solid var(--line);
  padding: 64px 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-label::before { content: ''; width: 22px; height: 1px; background: var(--gold); }

.page-title {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.3px;
  margin-bottom: 20px;
}

.page-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.services-right {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
}

.service-row {
  background: var(--navy);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 28px;
  align-items: start;
  transition: background .2s;
}
.service-row:hover { background: var(--navy2); }

.service-row-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  opacity: .5;
  padding-top: 3px;
}

.service-row-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-row-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.service-row-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  padding-top: 3px;
}

.stag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,.2);
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── WHY PAGE ────────────────────────────────── */
.why-wrap {
  min-height: 100%;
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-header { margin-bottom: 64px; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 1px;
}

.metric-box {
  background: var(--navy2);
  padding: 36px 32px;
  transition: background .2s;
}
.metric-box:hover { background: #0f2040; }

.metric-box-n {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.metric-box-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: none;
}

.pillar {
  background: var(--navy);
  padding: 36px 32px;
  transition: background .2s;
}
.pillar:hover { background: var(--navy2); }
.pillar:hover .pillar-icon { color: var(--gold); }

.pillar-icon {
  font-size: 22px;
  margin-bottom: 16px;
  color: rgba(201,169,110,.4);
  transition: color .2s;
}

.pillar h4 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pillar p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CONTACT PAGE ────────────────────────────── */
.contact-wrap {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-left {
  background: var(--navy2);
  border-right: 1px solid var(--line);
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.cdetail {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cdetail:first-child { border-top: 1px solid var(--line); }

.cdetail-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.cdetail-val {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.contact-tagline {
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

.contact-right {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cf {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.cf-group { display: flex; flex-direction: column; gap: 7px; }

.cf-group label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cf-group input,
.cf-group select,
.cf-group textarea {
  background: var(--navy2);
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  padding: 12px 0;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
}
.cf-group select option { background: var(--navy2); }
.cf-group textarea { resize: none; height: 90px; }
.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus { border-bottom-color: var(--gold); }

.cf-submit {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
  margin-top: 4px;
}
.cf-submit:hover { background: var(--gold2); }

.success-msg {
  border: 1px solid var(--gold);
  padding: 40px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--gold);
}

/* ── MOBILE ──────────────────────────────────── */
@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }
  body { flex-direction: column; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 20px 24px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-nav, .sidebar-bottom { display: none; }
  .main { margin-left: 0; width: 100%; height: auto; }
  .page { position: relative; opacity: 1; pointer-events: all; transform: none; transition: none; display: none; }
  .page.active { display: block; }
  .home-wrap { grid-template-rows: auto auto; height: auto; }
  .home-hero { padding: 48px 24px 32px; }
  .home-stats { grid-template-columns: repeat(2,1fr); }
  .services-wrap { grid-template-columns: 1fr; }
  .services-left { position: relative; height: auto; padding: 48px 24px 24px; }
  .services-right { padding: 0 24px 48px; }
  .why-wrap { padding: 48px 24px; }
  .metrics-grid, .pillars-grid { grid-template-columns: repeat(2,1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-left { padding: 48px 24px; }
  .contact-right { padding: 48px 24px; }
  .cf-row { grid-template-columns: 1fr; }
}
