/* =============================================
   Studio Cathán — styles.css
   ============================================= */

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

/* ── Variables ── */
:root {
  --ink:          #1a1a1a;
  --ink-muted:    #6b6b6b;
  --cream:        #f7f9f5;
  --warm-white:   #ffffff;
  --accent:       #3d7a52;
  --accent-dark:  #2c5c3c;
  --accent-light: #e6f0ea;
  --accent-mid:   #6aab82;
  --border:       rgba(26, 26, 26, 0.1);
  --serif:        'Fraunces', Georgia, serif;
  --sans:         'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================================
   NAV
   ============================================= */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-bottom: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .nav-links .nav-cta {
    margin: 0.5rem 2rem 0;
    display: block;
    text-align: center;
    border-radius: 100px;
    padding: 0.75rem 1.25rem !important;
  }
}

/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 5rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: clamp(500px, 80svh, 900px);
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 122, 82, 0.25);
}

.btn-ghost {
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.btn-ghost:hover {
  gap: 0.7rem;
}

/* =============================================
   HERO VISUAL — FLOATING CARDS
   ============================================= */

.hero-visual {
  position: relative;
  height: 380px;
}

.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-s {
  position: absolute;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.card-s-1 {
  background: var(--accent);
  color: #fff;
  top: 0;
  left: 0;
  width: 85%;
  animation: float1 5s ease-in-out infinite;
}

.card-s-2 {
  background: var(--warm-white);
  top: 120px;
  right: 0;
  width: 78%;
  animation: float2 6s ease-in-out infinite;
}

.card-s-3 {
  background: var(--accent-light);
  bottom: 0;
  left: 15px;
  width: 68%;
  animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(1.5deg); }
  50%       { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50%       { transform: translateY(-6px) rotate(-0.5deg); }
}

.card-s-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}

.card-s-title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-s-meta {
  font-size: 0.8125rem;
  opacity: 0.6;
}

.stat-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #fff;
}

/* =============================================
   TRUSTED BAR
   ============================================= */

.trusted-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
}

.trusted-bar p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.trusted-names {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trusted-names span {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.3;
  letter-spacing: -0.01em;
}

/* =============================================
   SHARED SECTION STYLES
   ============================================= */

.section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-link {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--ink);
}

/* =============================================
   SERVICES GRID
   ============================================= */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.service-card {
  background: var(--cream);
  padding: 2rem;
  transition: background 0.2s;
  cursor: default;
}

.service-card:hover {
  background: var(--warm-white);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.service-card:nth-child(1) .service-icon { background: var(--accent-light); }
.service-card:nth-child(2) .service-icon { background: #e8f4ed; }
.service-card:nth-child(3) .service-icon { background: #eef4e8; }
.service-card:nth-child(4) .service-icon { background: #f0f7ee; }
.service-card:nth-child(5) .service-icon { background: #e8f2ec; }

.service-name {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(61, 122, 82, 0.1);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  color: var(--accent-dark);
}

/* =============================================
   PORTFOLIO
   ============================================= */

.portfolio-section {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
}

.portfolio-inner {
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61, 122, 82, 0.12);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.portfolio-card:nth-child(1) .portfolio-thumb { background: #e8f0ea; }
.portfolio-card:nth-child(2) .portfolio-thumb { background: #e6f0f5; }
.portfolio-card:nth-child(3) .portfolio-thumb { background: #f5f0e8; }

.portfolio-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-type {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.portfolio-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.portfolio-desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 1rem;
  transition: gap 0.2s;
}

.portfolio-card:hover .portfolio-link {
  gap: 0.55rem;
}

/* =============================================
   PROCESS (dark section)
   ============================================= */

.process-section {
  background: var(--ink);
  color: #fff;
  padding: 5rem 2rem;
}

.process-inner {
  max-width: 900px;
  margin: 0 auto;
}

.process-section .section-label { color: rgba(255, 255, 255, 0.35); }
.process-section .section-title { color: #fff; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  position: relative;
}

.step-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-mid);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff;
}

.step-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.step::after {
  content: '→';
  position: absolute;
  top: 0.25rem;
  right: -0.75rem;
  color: rgba(255, 255, 255, 0.15);
  font-size: 1rem;
}

.step:last-child::after {
  display: none;
}

/* =============================================
   STATS STRIP
   ============================================= */

.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--warm-white);
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* =============================================
   TESTIMONIAL
   ============================================= */

.testimonial-section {
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.testimonial-author {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.testimonial-author strong {
  color: var(--ink);
  font-weight: 500;
}

/* =============================================
   CTA
   ============================================= */

.cta-section {
  padding: 6rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-section h2 em {
  color: var(--accent);
  font-style: italic;
}

.cta-section p {
  color: var(--ink-muted);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* =============================================
   ANIMATIONS
   ============================================= */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.15s; }
.fade-up-3 { animation-delay: 0.25s; }
.fade-up-4 { animation-delay: 0.35s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1.25rem 2rem;
  }

  .hero-visual { height: 260px; }

  .services-grid { grid-template-columns: 1fr; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step::after { display: none; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
}
