/* ===========================
   Digital Graft — style.css
   =========================== */

:root {
  --white: #ffffff;
  --charcoal: #1a1a1a;
  --charcoal-mid: #333333;
  --accent: #1a56db;
  --accent-hover: #1544b8;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #f9fafb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Page fade-in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeInUp 0.45s ease both;
  flex: 1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.section-heading { margin-bottom: 1.25rem; }

.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--charcoal); }

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.25s ease;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.15s ease, box-shadow 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 1rem; }

.page-hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

/* ===== FEATURE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ===== WHO SECTION ===== */
.who-section {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.who-section p {
  max-width: 700px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--charcoal-mid);
}

/* ===== PROJECT CARDS ===== */
.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  max-width: 460px;
}

.project-card:hover {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}

.project-thumb {
  background: var(--charcoal);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-inner {
  border: 2px solid rgba(255,255,255,0.12);
  padding: 1.25rem 2.5rem;
  border-radius: 4px;
}

.project-thumb-inner span {
  font-family: 'Syne', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

.project-body {
  padding: 1.75rem;
}

.project-body h3 { margin-bottom: 0.5rem; }

.project-body p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.project-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.project-link:hover {
  gap: 0.6rem;
  color: var(--accent-hover);
}

.project-link .arrow { font-style: normal; }

.coming-soon {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: 8px;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 0.625rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.7;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.photo-placeholder {
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: 8px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  order: -1;
}

.photo-placeholder-icon {
  font-size: 2rem;
  opacity: 0.4;
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--charcoal-mid);
}

.built-different {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.built-different h3 { margin-bottom: 1rem; }

.built-different ul { list-style: none; }

.built-different li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 0.625rem;
}

.built-different li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CONTACT FORM ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.25rem; }

.contact-info p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.75;
}

.contact-detail {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-detail p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-detail strong { color: var(--charcoal); }

.form-group { margin-bottom: 1.5rem; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

select option[value=""] { color: #9ca3af; }

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-note strong { color: var(--charcoal); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-left p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

.footer-left a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-left a:hover { color: var(--accent); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-right a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-right a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid .photo-placeholder { order: 0; height: 280px; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .page-hero { padding: 3.5rem 0 2.75rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
  }

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

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .pricing-grid { max-width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .project-card { max-width: 100%; }
}
