/*
Theme Name: Studio Primaria
Author: Studio Primaria
Description: Clean, minimal digital marketing theme for Studio Primaria.
Version: 5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: studio-primaria
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0f0f0e;
  --white: #faf9f6;
  --muted: #888680;
  --accent: #c9b48a;
  --border: rgba(15,15,14,0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--black); font-size: 15px; line-height: 1.6; overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.admin-bar nav { top: 32px; }
@media (max-width: 782px) { .admin-bar nav { top: 46px; } }

.nav-logo { font-family: var(--serif); font-size: 1.25rem; font-weight: 300; letter-spacing: 0.08em; color: var(--black); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cta { font-size: 13px; letter-spacing: 0.06em; border: 0.5px solid var(--black); padding: 0.5rem 1.25rem; text-decoration: none; color: var(--black); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.nav-cta:hover { background: var(--black); color: var(--white); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1px; background: var(--black); }
.mobile-nav { display: none; flex-direction: column; position: fixed; top: 62px; left: 0; right: 0; z-index: 199; background: var(--white); border-bottom: 0.5px solid var(--border); padding: 0.5rem 1.5rem 1rem; }
.mobile-nav a { font-size: 15px; color: var(--muted); text-decoration: none; padding: 0.75rem 0; border-bottom: 0.5px solid rgba(15,15,14,0.06); display: block; }
.mobile-nav.open { display: flex; }

/* LAYOUT */
section { padding: 7rem 3rem; }
.container { max-width: 1100px; margin: 0 auto; width: 100%; box-sizing: border-box; }

/* HERO */
#hero { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 8rem; overflow: hidden; }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-headline { font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; max-width: 900px; margin-bottom: 2rem; }
.hero-headline em { font-style: italic; color: var(--muted); }
.hero-sub { font-size: 15px; color: var(--muted); width: 100%; max-width: 440px; line-height: 1.75; margin-bottom: 3rem; box-sizing: border-box; }
.hero-actions { display: flex; align-items: center; gap: 2rem; }
.btn-primary { background: var(--black); color: var(--white); padding: 0.85rem 2rem; font-size: 13px; letter-spacing: 0.06em; text-decoration: none; display: inline-block; border: none; cursor: pointer; font-family: var(--sans); transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.8; color: var(--white); }
.btn-ghost { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; border-bottom: 0.5px solid currentColor; padding-bottom: 2px; transition: color 0.2s; }
.btn-ghost:hover { color: var(--black); }
.hero-marquee { margin-top: 6rem; border-top: 0.5px solid var(--border); padding-top: 1.5rem; overflow: hidden; }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; animation: marquee 18s linear infinite; }
.marquee-item { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; flex-shrink: 0; }
.marquee-dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SERVICES */
#services { background: var(--black); }
#services .section-label { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 0.5px solid rgba(255,255,255,0.08); }
.service-card { padding: 2.5rem; border: 0.5px solid rgba(255,255,255,0.08); transition: background 0.3s; cursor: default; }
.service-card:hover { background: rgba(255,255,255,0.03); }
.service-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 300; color: rgba(255,255,255,0.15); display: block; margin-bottom: 1.25rem; }
.service-title { font-size: 1.1rem; font-weight: 400; color: var(--white); margin-bottom: 0.75rem; letter-spacing: 0.01em; }
.service-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.75; }
.service-tag { display: inline-block; margin-top: 1.25rem; font-size: 11px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }

/* WORK */
#work .section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3rem; }
#work .section-label { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.view-all { font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 0.5px solid currentColor; padding-bottom: 2px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.work-card { position: relative; overflow: hidden; background: #e8e5de; aspect-ratio: 4/3; cursor: pointer; }
.work-card-bg { width: 100%; height: 100%; transition: transform 0.5s ease; }
.work-card:hover .work-card-bg { transform: scale(1.04); }
.work-card-bg-1 { background: linear-gradient(135deg, #d4cfc5 0%, #b8b2a4 100%); display: flex; align-items: center; justify-content: center; }
.work-card-bg-2 { background: linear-gradient(135deg, #c5c9cc 0%, #8f9aa3 100%); display: flex; align-items: center; justify-content: center; }
.work-card-bg-3 { background: linear-gradient(135deg, #ccc5ba 0%, #a09588 100%); display: flex; align-items: center; justify-content: center; }
.work-placeholder { font-family: var(--serif); font-size: 4rem; font-weight: 300; opacity: 0.3; color: var(--black); }
.work-overlay { position: absolute; inset: 0; background: rgba(15,15,14,0); transition: background 0.3s; display: flex; align-items: flex-end; padding: 1.75rem; }
.work-card:hover .work-overlay { background: rgba(15,15,14,0.55); }
.work-info { opacity: 0; transform: translateY(8px); transition: all 0.3s; }
.work-card:hover .work-info { opacity: 1; transform: translateY(0); }
.work-info h3 { font-size: 1rem; font-weight: 400; color: var(--white); margin-bottom: 0.25rem; }
.work-info p { font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; }
.work-card-wide { grid-column: span 2; aspect-ratio: 16/6; }
.work-card-wide .work-card-bg-wide { background: linear-gradient(135deg, #c8c2b8 0%, #9e9890 100%); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: transform 0.5s ease; }
.work-card-wide:hover .work-card-bg-wide { transform: scale(1.02); }

/* TESTIMONIALS */
#testimonials { background: #f3f0eb; }
#testimonials .section-label { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-bottom: 3rem; }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.testimonial-card { background: var(--white); padding: 2rem; border: 0.5px solid var(--border); }
.quote-mark { font-family: var(--serif); font-size: 3rem; font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; display: block; }
.testimonial-text { font-size: 14px; color: var(--black); line-height: 1.75; margin-bottom: 1.5rem; }
.testimonial-author { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--black); text-transform: uppercase; display: block; }
.testimonial-role { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }

/* CONTACT */
#contact .section-label { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-bottom: 1rem; }
#contact .contact-headline { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; line-height: 1.1; max-width: 700px; margin-bottom: 3rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-group { display: flex; flex-direction: column; gap: 0.4rem; }
.field-group label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.field-group input, .field-group textarea, .field-group select {
  border: none; border-bottom: 0.5px solid var(--border); background: transparent;
  padding: 0.6rem 0; font-size: 14px; font-family: var(--sans); color: var(--black);
  outline: none; transition: border-color 0.2s; width: 100%; -webkit-appearance: none;
}
.field-group input:focus, .field-group textarea:focus, .field-group select:focus { border-color: var(--black); }
.field-group textarea { resize: none; height: 80px; }
.contact-info { padding-top: 0.5rem; }
.contact-info h3 { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 1.5rem; color: var(--black); }
.contact-detail { margin-bottom: 1.25rem; }
.contact-detail .label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.25rem; display: block; }
.contact-detail .value { font-size: 14px; color: var(--black); display: block; }
.divider { width: 32px; height: 0.5px; background: var(--border); margin: 2rem 0; }
.form-notice { font-size: 13px; padding: 0.75rem 1rem; display: none; margin-top: 0.5rem; }
.form-notice.success { background: #eaf3de; color: #3B6D11; display: block; }
.form-notice.error { background: #fcebeb; color: #A32D2D; display: block; }

/* FOOTER */
footer { border-top: 0.5px solid var(--border); padding: 2rem 3rem; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: var(--serif); font-size: 1rem; font-weight: 300; letter-spacing: 0.08em; }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--black); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 1; }
.animate.visible { animation: fadeUp 0.7s ease forwards; }

/* MOBILE */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; width: 100%; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  section { padding: 5rem 1.5rem !important; box-sizing: border-box; width: 100%; }
  #hero { padding-top: 6rem !important; }
  .hero-headline { font-size: clamp(2.2rem, 9vw, 3.5rem) !important; max-width: 100%; }
  .hero-sub { max-width: 100% !important; width: 100%; box-sizing: border-box; }
  .hero-actions { flex-wrap: wrap; gap: 1rem; }
  .hero-marquee { overflow: hidden; max-width: 100%; }
  .marquee-track { animation: marquee 25s linear infinite; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem !important; }
  .container { width: 100%; box-sizing: border-box; padding-left: 0; padding-right: 0; }
}

/* PAGE TEMPLATE (Privacy Policy, etc.) */
.page-content {
  padding: 10rem 3rem 7rem;
  min-height: 70vh;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--border);
}
.page-body {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--black);
}
.page-body h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 300;
  margin: 3rem 0 1rem;
  color: var(--black);
}
.page-body h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
  color: var(--black);
}
.page-body p {
  margin-bottom: 1.25rem;
  color: var(--black);
}
.page-body ul, .page-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--black);
}
.page-body li { margin-bottom: 0.5rem; }
.page-body a { color: var(--black); border-bottom: 0.5px solid var(--muted); }
.page-body a:hover { border-color: var(--black); }
.page-body strong { font-weight: 500; }

/* BLOG INDEX */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 3rem; }
.blog-card { display: flex; flex-direction: column; }
.blog-card-image { display: block; overflow: hidden; aspect-ratio: 16/9; margin-bottom: 1.5rem; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card-image:hover img { transform: scale(1.04); }
.blog-date { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 0.75rem; }
.blog-title { font-family: var(--serif); font-size: 1.75rem; font-weight: 300; line-height: 1.2; margin-bottom: 1rem; }
.blog-title a { color: var(--black); text-decoration: none; transition: color 0.2s; }
.blog-title a:hover { color: var(--muted); }
.blog-excerpt { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.blog-read-more { font-size: 13px; letter-spacing: 0.06em; color: var(--black); text-decoration: none; border-bottom: 0.5px solid currentColor; padding-bottom: 2px; transition: color 0.2s; }
.blog-read-more:hover { color: var(--muted); }
.blog-pagination { margin-top: 5rem; padding-top: 2rem; border-top: 0.5px solid var(--border); display: flex; gap: 1rem; }
.blog-pagination .page-numbers { font-size: 13px; color: var(--muted); text-decoration: none; padding: 0.5rem 1rem; border: 0.5px solid var(--border); transition: all 0.2s; }
.blog-pagination .page-numbers.current, .blog-pagination .page-numbers:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* SINGLE POST */
.post-header { margin-bottom: 3rem; }
.post-back { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; border-bottom: 0.5px solid currentColor; padding-bottom: 2px; display: inline-block; margin-bottom: 2rem; transition: color 0.2s; }
.post-back:hover { color: var(--black); }
.post-featured-image { margin: 2rem 0 0; overflow: hidden; }
.post-featured-image img { width: 100%; height: auto; }
.post-body { margin-top: 3rem; }
.post-footer { margin-top: 5rem; padding-top: 2rem; border-top: 0.5px solid var(--border); }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; }
.post-nav-link { font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 0.5px solid currentColor; padding-bottom: 2px; max-width: 45%; transition: color 0.2s; }
.post-nav-link:hover { color: var(--black); }
.post-nav-next { text-align: right; margin-left: auto; }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 3rem; }
  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; margin-left: 0; }
}
html { overflow-x: hidden !important; }
body { overflow-x: hidden !important; max-width: 100vw !important; }
.hero-sub { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; word-wrap: break-word !important; overflow-wrap: break-word !important; }
.container { width: 100% !important; box-sizing: border-box !important; }
@media (max-width: 768px) {
  section { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  #hero { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}