/*
 * Trixepha — style.css
 * Stack : Pure HTML + CSS + Vanilla JS  (no React, no frameworks)
 * Fonts : Playfair Display (headings) · Jost (body) via Google Fonts
 */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; }
img    { display: block; }
a      { text-decoration: none; color: inherit; }

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bg:         #F5F2EC;
  --surface:    #FFFFFF;
  --text:       #1A1A18;
  --muted:      #6B6B67;
  --border:     #E0DBD2;
  --crimson:    #9B1C1C;
  --crimson-h:  #C0392B;
  --forest:     #2D6A4F;
  --gold:       #C9A84C;
  --pink:       #F9EDE8;
  --amber:      #FAF3E0;
  --teal:       #EAF2EE;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --sh-sm: 0 2px 12px rgba(0,0,0,.06);
  --sh-md: 0 8px 32px rgba(0,0,0,.10);
  --sh-lg: 0 24px 56px rgba(0,0,0,.14);

  --ease: .3s ease;
}

/* ── Dark Mode ───────────────────────────────────────────── */
body.dark {
  --bg:        #0F0D09;
  --surface:   #1A1510;
  --text:      #F2EDD7;
  --muted:     #9A9080;
  --border:    #2A2318;
  --crimson:   #DC143C;
  --crimson-h: #E8365A;
  --forest:    #2E7D52;
  --pink:      #2A1215;
  --amber:     #1E1A0A;
  --teal:      #0D1F15;
}

/* ── Base ────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease);
}

/* ── Utilities ───────────────────────────────────────────── */
.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}
body.dark .label { color: var(--gold); }

.section {
  padding: 96px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header          { margin-bottom: 48px; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  max-width: 580px;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), transform .15s,
              border-color var(--ease), color var(--ease);
}
.btn:hover            { transform: translateY(-1px); }
.btn-primary          { background: var(--crimson); color: #fff; }
.btn-primary:hover    { background: var(--crimson-h); }
.btn-outline          { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover    { border-color: var(--text); }
body.dark .btn-outline          { border-color: #3A3020; }
body.dark .btn-outline:hover    { border-color: var(--gold); color: var(--gold); }

/* ── Icon Boxes ──────────────────────────────────────────── */
.icon-box {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.icon-crimson { background: #F5DADA; }
.icon-gray    { background: #E8E5DE; }
.icon-forest  { background: #D6EDE4; }
.icon-amber   { background: #F5EDD0; }
body.dark .icon-crimson { background: #3A1520; }
body.dark .icon-gray    { background: #252015; }
body.dark .icon-forest  { background: #0F2518; }
body.dark .icon-amber   { background: #2A2010; }

/* ── Navigation ──────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(245,242,236,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), border-color var(--ease);
}
body.dark nav           { background: rgba(15,13,9,.97); }
.nav-logo               { display: flex; align-items: center; }
.nav-logo img           { height: 26px; }
body.dark .nav-logo img { filter: brightness(0) invert(1); }
.nav-links              { display: flex; list-style: none; gap: 36px; }
.nav-links a            { font-size: 14px; transition: color var(--ease); }
.nav-links a:hover      { color: var(--crimson); }
body.dark .nav-links a:hover { color: var(--gold); }
.nav-right              { display: flex; align-items: center; gap: 14px; }

.theme-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: none; cursor: pointer;
  font-size: 17px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.theme-btn:hover { background: var(--border); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 60px);
  padding: 80px 120px;
  max-width: 1400px;
  margin: 0 auto;
}
#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 22px;
}
#hero h1 .c-crimson { color: var(--crimson); }
#hero h1 .c-forest  { color: var(--forest); }
#hero > div > p     { color: var(--muted); max-width: 420px; margin-bottom: 34px; line-height: 1.75; }
.hero-btns          { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero image wrap — dot lives INSIDE the image */
.hero-img-wrap {
  position: relative;
  width: 100%;
}
.hero-img-wrap img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--sh-lg);
}
.hero-dot {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 3px rgba(255,255,255,.55);
}

/* ── Services ────────────────────────────────────────────── */
.free-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  transition: background var(--ease), border-color var(--ease);
}
.free-banner-left       { display: flex; align-items: flex-start; gap: 20px; }
.free-banner-text .badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 8px;
}
body.dark .free-banner-text .badge { color: var(--gold); }
.free-banner-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 400; line-height: 1.25; margin-bottom: 8px;
}
.free-banner-text p { color: var(--muted); font-size: 14px; max-width: 400px; line-height: 1.65; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: background var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
}
.service-card:hover   { transform: translateY(-4px); box-shadow: var(--sh-md); }
.service-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 500; margin: 14px 0 8px;
}
.service-card p       { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── Portfolio ───────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: background var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.portfolio-thumb {
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: rgba(0,0,0,.18);
  position: relative;
}
.t-pink  { background: linear-gradient(135deg, #F9EDE8, #EDD5CC); }
.t-amber { background: linear-gradient(135deg, #FAF3E0, #EDE5C8); }
.t-teal  { background: linear-gradient(135deg, #EAF2EE, #D2E8DC); }

.p-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.82);
  border-radius: 20px; padding: 4px 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  display: flex; align-items: center; gap: 5px;
  z-index: 1;
}
.p-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.portfolio-card-body   { padding: 20px 22px 24px; }
.portfolio-card-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 500; margin-bottom: 5px;
}
.portfolio-card-body p { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ── Team ────────────────────────────────────────────────── */
#team                  { text-align: center; }
#team .section-header h2,
#team .section-header p { margin-inline: auto; max-width: 100%; text-align: center; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.team-card             { text-align: center; cursor: pointer; }

.team-photo-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  box-shadow: var(--sh-sm);
  transition: transform .45s cubic-bezier(.34,1.3,.64,1), box-shadow .45s ease;
}
.team-photo-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.58) 0%, transparent 52%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .5s cubic-bezier(.34,1.2,.64,1);
}
.team-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.overlay-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 12px; font-family: 'Jost', sans-serif; font-weight: 500;
  border: none; cursor: pointer; letter-spacing: .02em;
  transition: background .2s, transform .15s;
}
.overlay-btn.solid        { background: var(--crimson); color: #fff; }
.overlay-btn.solid:hover  { background: var(--crimson-h); transform: scale(1.02); }
.overlay-btn.glass        { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.overlay-btn.glass:hover  { background: rgba(255,255,255,.26); transform: scale(1.02); }

/* Team hover states */
.team-card:hover .team-photo-wrap        { transform: translateY(-7px); box-shadow: var(--sh-lg); }
.team-card:hover .team-photo-wrap::after { opacity: 1; }
.team-card:hover .team-overlay           { opacity: 1; transform: translateY(0); }
.team-card:hover .team-photo             { transform: scale(1.05); }
.team-card:hover .team-name              { color: var(--crimson); }
.team-card:hover .team-info              { transform: translateY(-3px); }
.team-card:hover .role-dot               { transform: scale(1.7); }
body.dark .team-card:hover .team-name    { color: var(--gold); }

.team-info  { transition: transform .4s cubic-bezier(.34,1.2,.64,1); }
.team-name  { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 400; margin-bottom: 6px; transition: color var(--ease); }
.team-role  { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.role-dot   { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; transition: transform .3s ease; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-grid h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 400; line-height: 1.2; margin-bottom: 14px;
}
.contact-grid > div:first-child > p { color: var(--muted); line-height: 1.75; margin-bottom: 32px; }

.contact-item           { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ci-label               { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ci-value               { font-size: 14px; font-weight: 500; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px;
  transition: background var(--ease), border-color var(--ease);
}
.form-row               { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group             { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label                   { font-size: 13px; font-weight: 500; }
label .opt              { color: var(--muted); font-weight: 400; font-size: 12px; }
input, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 14px; font-family: 'Jost', sans-serif; color: var(--text);
  outline: none; width: 100%;
  transition: border-color var(--ease), background var(--ease);
}
input::placeholder,
textarea::placeholder   { color: #B0ADA6; }
input:focus,
textarea:focus          { border-color: var(--crimson); }
textarea                { resize: vertical; min-height: 100px; }
.form-footer            { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.form-note              { font-size: 12px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 120px 28px;
  transition: border-color var(--ease);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name      { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--crimson); color: #fff;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand-name span { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; }
.footer-brand p         { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 250px; margin-bottom: 16px; }
.footer-dots            { display: flex; gap: 6px; }
.footer-dot             { width: 9px; height: 9px; border-radius: 50%; }
.footer-col h4          { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul          { list-style: none; }
.footer-col ul li       { margin-bottom: 10px; }
.footer-col ul li a     { color: var(--muted); font-size: 14px; transition: color var(--ease); }
.footer-col ul li a:hover           { color: var(--text); }
body.dark .footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 13px;
  transition: border-color var(--ease);
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background .3s ease;
}
.modal-backdrop.open                  { background: rgba(0,0,0,.52); pointer-events: all; }
body.dark .modal-backdrop.open        { background: rgba(0,0,0,.76); }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px; max-width: 420px; width: 90%;
  opacity: 0;
  transform: scale(.92) translateY(14px);
  box-shadow: 0 32px 80px rgba(0,0,0,.22);
  transition: opacity .35s cubic-bezier(.34,1.2,.64,1),
              transform .35s cubic-bezier(.34,1.2,.64,1),
              background var(--ease), border-color var(--ease);
}
.modal-backdrop.open .modal-box       { opacity: 1; transform: scale(1) translateY(0); }
.modal-header                         { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--border); color: var(--muted);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  transition: background var(--ease), color var(--ease);
}
.modal-close:hover                    { background: var(--crimson); color: #fff; }
.modal-label                          { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); margin-bottom: 5px; }
body.dark .modal-label                { color: var(--gold); }
.modal-name                           { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500; }
.modal-bio                            { color: var(--muted); font-size: 14px; line-height: 1.78; margin-bottom: 22px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  nav                   { padding: 0 24px; }
  .nav-links            { display: none; }
  #hero                 { grid-template-columns: 1fr; padding: 60px 24px; min-height: auto; gap: 40px; }
  .section              { padding: 64px 24px; }
  .services-grid,
  .portfolio-grid,
  .team-grid            { grid-template-columns: 1fr; }
  .contact-grid         { grid-template-columns: 1fr; gap: 40px; }
  .free-banner          { flex-direction: column; align-items: flex-start; }
  .footer-grid          { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer                { padding: 48px 24px 24px; }
  .form-row             { grid-template-columns: 1fr; }
}

/* ── Portfolio download button ───────────────────────────── */
.card-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  background: var(--crimson);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background var(--ease), transform .15s;
}
.card-download-btn:hover {
  background: var(--crimson-h);
  transform: translateY(-1px);
}
