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

/* Base resets — Elementor handles layout */
*, *::before, *::after { box-sizing: border-box; }

: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; margin: 0; padding: 0; }

/* Strip Elementor default margins */
.elementor-section, .elementor-container, .elementor-widget-wrap { margin: 0 !important; }
.e-con, .e-con-inner { padding: 0; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; }
p { margin: 0; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* NAV */
.sp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(250,249,246,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.admin-bar .sp-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .sp-nav { top: 46px; } }
.sp-nav-logo { font-family: var(--serif); font-size: 1.25rem; font-weight: 300; letter-spacing: 0.08em; color: var(--black); text-decoration: none; }
.sp-nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.sp-nav-links a { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.sp-nav-links a:hover { color: var(--black); }
.sp-nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.sp-nav-burger span { display: block; width: 22px; height: 1px; background: var(--black); }
.sp-mobile-nav { display: none; flex-direction: column; position: fixed; top: 62px; left: 0; right: 0; z-index: 9998; background: var(--white); border-bottom: 0.5px solid var(--border); padding: 0.5rem 1.5rem 1rem; }
.sp-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; }
.sp-mobile-nav.open { display: flex; }

/* HERO */
.sp-hero { padding-top: 8rem !important; }
.sp-eyebrow { font-size: 11px !important; letter-spacing: 0.18em !important; color: var(--muted) !important; text-transform: uppercase !important; margin-bottom: 1.5rem !important; }
.sp-headline { font-family: var(--serif) !important; font-size: clamp(3.5rem, 8vw, 7rem) !important; font-weight: 300 !important; line-height: 1.05 !important; letter-spacing: -0.01em !important; max-width: 900px !important; margin-bottom: 2rem !important; color: var(--black) !important; }
.sp-headline em { font-style: italic !important; color: var(--muted) !important; }
.sp-sub { font-size: 15px !important; color: var(--muted) !important; max-width: 440px !important; line-height: 1.75 !important; margin-bottom: 3rem !important; }

/* BUTTONS */
.sp-btn-primary { background: var(--black) !important; color: var(--white) !important; padding: 0.85rem 2rem !important; font-size: 13px !important; letter-spacing: 0.06em !important; border: none !important; border-radius: 0 !important; transition: opacity 0.2s !important; font-family: var(--sans) !important; }
.sp-btn-primary:hover { opacity: 0.8 !important; color: var(--white) !important; }
.sp-btn-ghost { background: transparent !important; color: var(--muted) !important; border: none !important; border-bottom: 0.5px solid var(--muted) !important; border-radius: 0 !important; padding: 0 0 2px 0 !important; font-size: 13px !important; letter-spacing: 0.06em !important; box-shadow: none !important; transition: color 0.2s !important; }
.sp-btn-ghost:hover { color: var(--black) !important; border-color: var(--black) !important; }

/* MARQUEE */
.sp-marquee { margin-top: 6rem; border-top: 0.5px solid var(--border); padding-top: 1.5rem; overflow: hidden; }
.sp-marquee-track { display: flex; gap: 3rem; white-space: nowrap; animation: sp-marquee 18s linear infinite; }
.sp-marquee-item { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; flex-shrink: 0; }
.sp-marquee-dot { color: var(--accent); }
@keyframes sp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SERVICES */
.sp-services-section { background: var(--black) !important; }
.sp-section-label { font-size: 11px !important; letter-spacing: 0.18em !important; color: var(--muted) !important; text-transform: uppercase !important; margin-bottom: 3rem !important; font-family: var(--sans) !important; font-weight: 400 !important; display: block; }
.sp-services-grid { display: grid; grid-template-columns: 1fr 1fr; border: 0.5px solid rgba(255,255,255,0.08); }
.sp-service-card { padding: 2.5rem; border: 0.5px solid rgba(255,255,255,0.08); transition: background 0.3s; }
.sp-service-card:hover { background: rgba(255,255,255,0.03); }
.sp-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; }
.sp-service-title { font-size: 1.1rem; font-weight: 400; color: var(--white); margin-bottom: 0.75rem; letter-spacing: 0.01em; display: block; font-family: var(--sans); }
.sp-service-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.75; display: block; }
.sp-service-tag { display: inline-block; margin-top: 1.25rem; font-size: 11px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }

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

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

/* CONTACT */
.sp-contact-headline { font-family: var(--serif) !important; font-size: clamp(2.5rem, 5vw, 4.5rem) !important; font-weight: 300 !important; line-height: 1.1 !important; max-width: 700px !important; margin-bottom: 3rem !important; color: var(--black) !important; }
.sp-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.sp-contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.sp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sp-field-group { display: flex; flex-direction: column; gap: 0.4rem; }
.sp-field-group label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.sp-field-group input, .sp-field-group textarea, .sp-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; }
.sp-field-group input:focus, .sp-field-group textarea:focus, .sp-field-group select:focus { border-color: var(--black); }
.sp-field-group textarea { resize: none; height: 80px; }
.sp-contact-info-col h3 { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 1.5rem; color: var(--black); font-family: var(--sans); }
.sp-contact-detail { margin-bottom: 1.25rem; }
.sp-contact-detail .sp-lbl { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.25rem; display: block; }
.sp-contact-detail .sp-val { font-size: 14px; color: var(--black); display: block; }
.sp-divider { width: 32px; height: 0.5px; background: var(--border); margin: 2rem 0; }
.sp-form-notice { font-size: 13px; padding: 0.75rem 1rem; display: none; margin-top: 0.5rem; }
.sp-form-notice.success { background: #eaf3de; color: #3B6D11; display: block; }
.sp-form-notice.error { background: #fcebeb; color: #A32D2D; display: block; }

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

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

/* MOBILE */
@media (max-width: 768px) {
  .sp-nav { padding: 1rem 1.5rem; }
  .sp-nav-links { display: none; }
  .sp-nav-burger { display: flex; }
  .sp-hero { padding-top: 6rem !important; }
  .sp-headline { font-size: clamp(2.2rem, 9vw, 3.5rem) !important; }
  .sp-services-grid { grid-template-columns: 1fr; }
  .sp-work-grid { grid-template-columns: 1fr; }
  .sp-work-card-wide { grid-column: span 1; aspect-ratio: 4/3; }
  .sp-testimonials-grid { grid-template-columns: 1fr; }
  .sp-contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .sp-form-row { grid-template-columns: 1fr; }
  .sp-footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
}

/* Elementor page — remove default padding */
.elementor-page .elementor { padding-top: 0; }
body.elementor-page { padding-top: 0 !important; }
