/* Arcadem — Webdesign & Media Studio | style.css */
/* Mobile-first, responsive, WCAG AA compliant, performance optimized */

:root {
  --ink: #101418;
  --ink-soft: #3d454e;
  --paper: #faf9f6;
  --card: #ffffff;
  --accent: #e8503a;
  --accent-dark: #c93d29;
  --line: #e7e3dc;
  --radius: 14px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography — responsive and accessible */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.12; margin-bottom: 0.5em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0.25em 0 0.5em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin-bottom: 0.5em; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1em; }

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ===== Layout ===== */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav a:hover,
nav a:focus {
  color: var(--accent);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: 0.3s;
}

.nav-toggle.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover,
.btn:focus {
  background: var(--accent-dark);
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn.ghost:hover,
.btn.ghost:focus {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ===== Hero ===== */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16,20,24,.75) 0%, rgba(16,20,24,.45) 45%, rgba(16,20,24,.15) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 96px 0; }
.hero-content h1, .hero-content .lede { color: #fff; }
.hero-content .kicker { color: #ff8f77; }
.hero-content .btn.ghost { color: #fff; border-color: #fff; }
.hero-content .btn.ghost:hover, .hero-content .btn.ghost:focus { background: #fff; color: var(--ink); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.lede {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
section {
  padding: 50px 0;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.sub {
  color: var(--ink-soft);
  max-width: 46em;
  font-size: 1rem;
}

/* ===== Cards ===== */
.grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 20, 24, 0.06);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: #fdeee9;
  color: var(--accent);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-block;
  margin-top: 12px;
}

.card a:hover {
  text-decoration: underline;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: #fdeee9;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Gallery cards */
.card.gallery {
  padding: 0;
  overflow: hidden;
}

.card.gallery .thumb {
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
}

.card.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.card.gallery:hover img {
  transform: scale(1.05);
}

.card.gallery .content {
  padding: 18px 20px;
}

.card.gallery h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card.gallery p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ===== Projects Section ===== */
.projects {
  background: #101418;
  color: #f4f1ea;
}

.projects .eyebrow {
  color: #ff8f77;
}

.projects .sub {
  color: #b9bfc6;
}

.proj {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: #191f26;
  border: 1px solid #232a33;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}

.proj .thumb {
  aspect-ratio: 16/10;
  border-radius: 10px;
  background: linear-gradient(140deg, #31404e, #1a222b);
  display: grid;
  place-items: center;
  color: #8fa0af;
  font-size: 0.8rem;
  overflow: hidden;
}

.proj .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj h3 {
  color: #fff;
  font-size: 1.1rem;
}

.proj p {
  color: #b9bfc6;
  font-size: 0.95rem;
}

.proj ul {
  list-style: none;
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.proj li {
  font-size: 0.78rem;
  background: #232a33;
  border: 1px solid #303944;
  border-radius: 999px;
  padding: 4px 12px;
  color: #d7dce1;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 28px;
}

.contact-grid form {
  display: grid;
  gap: 14px;
}

.contact-grid label {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

.contact-grid input,
.contact-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: outline 0.15s ease, border-color 0.15s ease;
}

.contact-grid input:focus,
.contact-grid textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

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

.contact-grid textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-grid button {
  margin-top: 8px;
}

.details p {
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.details strong {
  color: var(--ink);
}

.form-message {
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.foot a {
  color: inherit;
}

.foot a:hover {
  color: var(--accent);
}

/* ===== Image handling ===== */
picture {
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

picture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Lazy loading placeholder */
.ph-img {
  background: linear-gradient(140deg, #2e3a46 0%, #4a3a2e 100%);
  display: grid;
  place-items: center;
  color: #cbb8a0;
  font-size: 0.82rem;
  text-align: center;
  padding: 14px;
}

/* Background images with overlays */
.bg-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(16, 20, 24, 0.6), rgba(16, 20, 24, 0.3));
  pointer-events: none;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-image .content {
  position: relative;
  z-index: 1;
  padding: 40px 32px;
  color: #fff;
}

/* ===== Service Page Layout ===== */
.service-hero {
  background: var(--ink);
  color: #fff;
  padding: 60px 0;
  margin-bottom: 40px;
}

.service-hero .wrap {
  color: #fff;
}

.service-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}

.service-hero .subtitle {
  color: #b9bfc6;
  font-size: 1.1rem;
}

.service-section {
  margin-bottom: 48px;
}

.service-section h2 {
  margin-bottom: 16px;
}

.process-steps {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.process-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.process-step .step-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 12px;
}

.process-step h3 {
  display: inline;
}

.price-indication {
  background: #fdeee9;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
  text-align: center;
}

.price-indication .label {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.price-indication .price {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--accent);
}

.price-indication .note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ===== Responsive: Tablet ===== */
@media (min-width: 640px) {
  :root {
    --radius: 16px;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero-content {
    padding: 96px 0;
  }
  
  section {
    padding: 60px 0;
  }
  
  .wrap {
    padding: 0 24px;
  }
  
  h1 { font-size: clamp(2rem, 4.2vw, 2.6rem); }
  
  .grid.services {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .proj {
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 26px;
  }
  
  .proj .thumb {
    display: block;
  }
}

/* ===== Responsive: Desktop ===== */
@media (min-width: 820px) {
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero-actions {
    margin-top: 28px;
  }
  
  .kicker {
    margin-bottom: 14px;
    font-size: 0.8rem;
  }
  
  .lede {
    margin-top: 18px;
    font-size: 1.15rem;
  }
  
  .grid.services {
    gap: 22px;
    margin-top: 36px;
  }
  
  .card {
    padding: 28px;
  }
  
  .sub {
    font-size: 1.05rem;
  }
  
  .eyebrow {
    font-size: 0.8rem;
  }
  
  .grid.services {
    gap: 22px;
  }
  
  .contact-grid {
    gap: 40px;
    margin-top: 30px;
  }
  
  .proj {
    gap: 26px;
    margin-top: 22px;
  }
  
  .proj .thumb {
    aspect-ratio: 16/10;
  }
  
  .service-section {
    margin-bottom: 56px;
  }
  
  nav ul {
    gap: 26px;
  }
}

/* ===== Responsive: Large Desktop ===== */
@media (min-width: 1024px) {
  .wrap {
    padding: 0 32px;
  }
  
  h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
  h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
  
  .hero {
    padding: 90px 0 70px;
  }
}

/* ===== Mobile Navigation ===== */
@media (max-width: 820px) {
  .nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }
  
  .nav ul.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .grid.services,
  .contact-grid,
  .proj {
    grid-template-columns: 1fr;
  }
  
  .proj .thumb {
    display: none;
  }
  
  .nav .btn {
    display: none;
  }
}

/* ===== Mobile Hero ===== */
@media (max-width: 639px) {
  .hero { min-height: auto; }
  .hero-content { padding: 120px 0 80px; }
}

/* ===== Print Styles ===== */
@media print {
  header,
  .hero-actions,
  .btn,
  .nav-toggle,
  footer {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .wrap {
    padding: 0;
  }
  
  .card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in {
  animation: slideIn 0.4s ease forwards;
}
