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

:root {
  --navy: #0f1f3d;
  --navy-light: #1a3260;
  --slate: #334155;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-warm: #f8f7f4;
  --border: #e2e0db;
  --accent: #b8952a;
  --accent-hover: #a07e1e;
  --white: #ffffff;
}

[data-theme="dark"] {
  --navy: #c9d6e8;
  --navy-light: #a3b8d4;
  --slate: #94a3b8;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --bg: #0a0f1a;
  --bg-warm: #0f1520;
  --border: #1e293b;
  --accent: #d4aa3c;
  --accent-hover: #e0ba50;
  --white: #0a0f1a;
}

[data-theme="dark"] nav {
  background: #0a0f1a;
}

[data-theme="dark"] nav .nav-accent {
  background: linear-gradient(90deg, #c9d6e8, #a3b8d4);
}

[data-theme="dark"] nav .nav-links a.nav-poignant {
  color: #E07A66;
}

[data-theme="dark"] nav .nav-links a.nav-poignant:hover {
  color: #F09585;
}

[data-theme="dark"] .project-thumb {
  background: linear-gradient(145deg, #1a2540, #0f1a30);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: #0f1520;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
  color: #475569;
}

[data-theme="dark"] .tag {
  background: #1a2540;
  color: #94a3b8;
}

[data-theme="dark"] .service-card:hover {
  background: rgba(200, 220, 255, 0.03);
}

[data-theme="dark"] .hero-photo img {
  border-color: #c9d6e8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav .nav-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
}

nav .nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav .nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

nav .nav-links a.nav-poignant {
  color: #D4614A;
  font-style: italic;
}

nav .nav-links a.nav-poignant:hover {
  color: #b8503d;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.3rem;
  transition: transform 0.2s;
  position: fixed;
  top: 18px;
  right: 1.5rem;
  z-index: 101;
}

.theme-toggle:hover { transform: scale(1.15); }

/* --- SECTIONS --- */
section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem 0 0 0;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

.hero-photo {
  width: 300px;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  display: block;
  filter: grayscale(15%);
  border: 6px solid var(--navy);
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* --- SERVICES --- */
#services {
  background: var(--bg-warm);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#services .services-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--border);
}

.service-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.service-card:last-child { border-right: none; }

.service-card:hover { background: rgba(15, 31, 61, 0.03); }

.service-card .service-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- PORTFOLIO --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.project-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.project-thumb {
  width: 100%;
  height: 200px;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-info {
  padding: 1.75rem;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-warm);
  color: var(--slate);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- CONTACT --- */
#contact {
  background: var(--bg-warm);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#contact .contact-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.contact-text .contact-email {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.contact-text .contact-email:hover { color: var(--navy-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: -0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  nav .nav-links { gap: 1.5rem; }

  section { padding: 4rem 1.5rem; }

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

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service-card:last-child { border-bottom: none; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-photo {
    width: 220px;
    order: -1;
  }

  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  nav .nav-inner { padding: 0.8rem 1rem; }
  nav .nav-links { display: none; }
}
