/*
Theme Name: Slow Comunicación
Theme URI: https://slowcomunicacion.com
Author: Slow Comunicación
Author URI: https://slowcomunicacion.com
Description: Tema minimalista y editorial para Slow Comunicación. Estrategia y dirección creativa.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slow-comunicacion
Tags: one-column, custom-logo, custom-menu, editor-style, featured-images, full-width-template, threaded-comments
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-bg: #f5f1ec;
  --color-bg-alt: #ede8e1;
  --color-text: #1a1a1a;
  --color-text-light: #5a5a5a;
  --color-text-muted: #8a8a8a;
  --color-accent: #2c2c2c;
  --color-border: #d4cfc8;
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --tracking-wide: 0.25em;
  --tracking-wider: 0.4em;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin-bottom: 1.2em; color: var(--color-text-light); font-size: 1rem; }
.text-large { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.8; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header.transparent { background: transparent; }

.site-header.sticky {
  background: var(--color-bg);
  padding: 1rem 2rem;
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header .logo img { height: 30px; width: auto; transition: opacity var(--transition); }
.site-header .logo .logo-white { display: block; }
.site-header .logo .logo-dark { display: none; }
.site-header.sticky .logo .logo-white { display: none; }
.site-header.sticky .logo .logo-dark { display: block; }

/* Non-home pages: always sticky style */
body:not(.home) .site-header { background: var(--color-bg); padding: 1rem 2rem; box-shadow: 0 1px 0 var(--color-border); }
body:not(.home) .site-header .logo .logo-white { display: none; }
body:not(.home) .site-header .logo .logo-dark { display: block; }

.header-right { display: flex; align-items: center; gap: 1.5rem; }

.btn-enquire {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
}

.site-header.transparent .btn-enquire { border-color: var(--color-white); color: var(--color-white); }
body:not(.home) .btn-enquire,
.site-header.sticky .btn-enquire { border-color: var(--color-text); color: var(--color-text); }

.btn-enquire:hover { background: var(--color-text); color: var(--color-bg); }
.site-header.transparent .btn-enquire:hover { background: var(--color-white); color: var(--color-black); }

/* Hamburger */
.hamburger {
  width: 28px; height: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; background: none; border: none; padding: 0;
}

.hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition);
}

.site-header.transparent .hamburger span { background: var(--color-white); }
body:not(.home) .hamburger span,
.site-header.sticky .hamburger span { background: var(--color-text); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Fullscreen Nav */
.fullscreen-nav {
  position: fixed; inset: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.5s ease;
}

.fullscreen-nav.active { opacity: 1; visibility: visible; }

.fullscreen-nav ul { text-align: center; }

.fullscreen-nav li { margin: 1.5rem 0; }

.fullscreen-nav a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text);
  transition: opacity var(--transition);
}

.fullscreen-nav a:hover { opacity: 0.5; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 2rem;
  max-width: 800px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
  text-align: center;
}

.btn-white { border-color: var(--color-white); color: var(--color-white); background: transparent; }
.btn-white:hover { background: var(--color-white); color: var(--color-black); }

.btn-filled { border-color: var(--color-text); color: var(--color-bg); background: var(--color-text); }
.btn-filled:hover { background: transparent; color: var(--color-text); }

.btn-outline { border-color: var(--color-text); color: var(--color-text); background: transparent; }
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); }

/* ===================== SECTIONS ===================== */
.section { padding: 8rem 0; }
.section-sm { padding: 5rem 0; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }

/* Intro Block */
.intro-section .intro-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.intro-section .intro-text {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* Services */
.services-section { background: var(--color-bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.services-left h2 { margin-bottom: 1rem; }
.services-left .services-subtitle { font-size: 1.1rem; color: var(--color-text-light); line-height: 1.7; }

.services-list { list-style: none; }
.services-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.services-list li::before {
  content: '–';
  color: var(--color-text-muted);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img { transform: scale(1.03); }

.project-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--color-white);
}

.project-card-overlay .label { color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.project-card-overlay h3 { color: var(--color-white); font-size: 1.5rem; }

/* Philosophy */
.philosophy-section {
  text-align: center;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 8rem 2rem;
}

.philosophy-section h2 {
  color: var(--color-bg);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.philosophy-section p { color: rgba(245,241,236,0.7); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* About block */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-block-image { aspect-ratio: 3/4; overflow: hidden; }
.about-block-image img { width: 100%; height: 100%; object-fit: cover; }

.about-block-content h2 { margin-bottom: 1.5rem; }
.about-block-content p { font-size: 1rem; }

/* CTA Block */
.cta-block {
  text-align: center;
  padding: 8rem 2rem;
  border-top: 1px solid var(--color-border);
}

.cta-block h2 { margin-bottom: 2rem; }
.cta-block .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-block .cta-note { margin-top: 2rem; font-size: 0.85rem; color: var(--color-text-muted); }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  padding: 10rem 0 5rem;
  text-align: center;
}

.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; color: var(--color-text-light); }

/* ===================== ABOUT PAGE ===================== */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.about-content p { font-size: 1.05rem; line-height: 1.8; }

.about-closure {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--color-border);
}

.about-closure h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.about-closure p { color: var(--color-text-muted); }

/* ===================== PROJECT SINGLE ===================== */
.project-single-hero {
  padding: 10rem 0 4rem;
}

.project-meta {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.project-meta-item .label { margin-bottom: 0.3rem; }
.project-meta-item span { font-size: 1rem; color: var(--color-text); }

.project-section { padding: 4rem 0; }
.project-section h3 { margin-bottom: 1.5rem; font-size: 1.6rem; }
.project-section p { max-width: 700px; font-size: 1.05rem; line-height: 1.8; }

.project-image-full {
  margin: 4rem 0;
  overflow: hidden;
}

.project-image-full img { width: 100%; height: 60vh; object-fit: cover; }

.project-closure {
  text-align: center;
  padding: 5rem 2rem;
  border-top: 1px solid var(--color-border);
}

.project-closure h3 { font-size: 2rem; margin-bottom: 0.5rem; }

/* ===================== PROJECTS ARCHIVE ===================== */
.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  padding-bottom: 6rem;
}

/* ===================== CONTACT PAGE ===================== */
.contact-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.contact-form-wrap .wpcf7 input[type="text"],
.contact-form-wrap .wpcf7 input[type="email"],
.contact-form-wrap .wpcf7 input[type="tel"],
.contact-form-wrap .wpcf7 textarea,
.contact-form-wrap .wpcf7 select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}

.contact-form-wrap .wpcf7 input:focus,
.contact-form-wrap .wpcf7 textarea:focus,
.contact-form-wrap .wpcf7 select:focus {
  outline: none;
  border-color: var(--color-text);
}

.contact-form-wrap .wpcf7 textarea { min-height: 150px; resize: vertical; }

.contact-form-wrap .wpcf7 input[type="submit"] {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 1rem 3rem;
  border: 1px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  cursor: pointer;
  transition: all var(--transition);
}

.contact-form-wrap .wpcf7 input[type="submit"]:hover {
  background: transparent;
  color: var(--color-text);
}

.form-section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-success {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

/* ===================== FOOTER ===================== */
.site-footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left .footer-logo img { height: 24px; margin-bottom: 1rem; }
.footer-left p { font-size: 0.85rem; color: var(--color-text-muted); max-width: 300px; }

.footer-nav ul { display: flex; gap: 2rem; }
.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-text); }

.footer-social ul { display: flex; gap: 1.5rem; }
.footer-social a { font-size: 0.85rem; color: var(--color-text-muted); transition: color var(--transition); }
.footer-social a:hover { color: var(--color-text); }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===================== ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .services-grid,
  .about-block,
  .projects-grid,
  .projects-archive-grid { grid-template-columns: 1fr; }

  .project-meta { gap: 1.5rem; }

  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-nav ul, .footer-social ul { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 0.5rem; }

  .btn-enquire { display: none; }

  .hero-ctas { flex-direction: column; align-items: center; }
}
