/*
Theme Name: Studio Primera
Theme URI: https://studioprimera.com
Author: Studio Primera
Author URI: https://studioprimera.com
Description: A clean, minimal digital marketing theme for Studio Primera.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-primera
Tags: minimal, marketing, portfolio, one-page
*/

/* =========================================
   RESET & BASE
   ========================================= */
*, *::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;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* =========================================
   NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(250,249,246,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.site-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-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);
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover { background: var(--black); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 0.5px;
  background: var(--black);
  transition: all 0.3s;
}

/* =========================================
   LAYOUT
   ========================================= */
.site-main section { padding: 7rem 3rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 3rem;
  display: block;
}

/* =========================================
   HERO
   ========================================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 3rem 7rem;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--black);
  max-width: 900px;
  margin-bottom: 2rem;
}

.hero-headline em { font-style: italic; color: var(--muted); }

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.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;
  transition: opacity 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.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-section { background: var(--black); }

.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;
}
.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;
}
.services-section .section-label { color: var(--muted); }

/* =========================================
   WORK / PORTFOLIO
   ========================================= */
.work-section .section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.work-section .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-wide { grid-column: span 2; aspect-ratio: 16/6; }

.work-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-card:hover .work-card-inner { transform: scale(1.04); }
.work-card-wide:hover .work-card-inner { transform: scale(1.02); }

/* Fallback gradient backgrounds — replace with real images via WP featured images */
.work-card:nth-child(1) .work-card-inner { background: linear-gradient(135deg, #d4cfc5, #b8b2a4); }
.work-card:nth-child(2) .work-card-inner { background: linear-gradient(135deg, #c5c9cc, #8f9aa3); }
.work-card:nth-child(3) .work-card-inner { background: linear-gradient(135deg, #c8c2b8, #9e9890); }
.work-card:nth-child(4) .work-card-inner { background: linear-gradient(135deg, #ccc5ba, #a09588); }
.work-card:nth-child(5) .work-card-inner { background: linear-gradient(135deg, #d4cfc5, #b8b2a4); }

.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; }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section { background: #f3f0eb; }

.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 .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); }
.divider { width: 32px; height: 0.5px; background: var(--border); margin: 2rem 0; }

/* WP form notice */
.form-notice {
  font-size: 13px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  display: none;
}
.form-notice.success { background: #eaf3de; color: #3B6D11; display: block; }
.form-notice.error { background: #fcebeb; color: #A32D2D; display: block; }

/* =========================================
   FOOTER
   ========================================= */
.site-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-social { display: flex; gap: 1.5rem; }
.footer-social a { font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-social a:hover { color: var(--black); }

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

/* =========================================
   WORDPRESS CORE
   ========================================= */
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 0.5rem; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .site-header { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    padding: 2rem 1.5rem;
    border-bottom: 0.5px solid var(--border);
    gap: 1.25rem;
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .site-main section { padding: 5rem 1.5rem; }
  .hero-section { padding: 8rem 1.5rem 5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card-wide { grid-column: span 1; aspect-ratio: 4/3; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; gap: 1rem; text-align: center; }
}
