/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #1f2933;
  background-color: #f5f7fb;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #1e3a8a;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  left: 0;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-text {
  margin: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.site-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-subtitle {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
}

/* NAV */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}
.main-nav a {
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}
.main-nav a:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 3px;
}

/* SECTIONS */
.section {
  padding: 4.5rem 1.25rem;
}
.section-content {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2.75rem 2.25rem;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin: 0 0 1rem;
  color: #111827;
}
.section-intro {
  margin: 0 0 2rem;
  color: #4b5563;
}

/* HERO */
.hero-section {
  padding-top: 5rem;
  background: radial-gradient(circle at top left, #e0ecff, transparent 55%);
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 2.25rem 3.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #e5e7eb;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
}
.hero-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  margin: 0.4rem 0 0.75rem;
  color: #f9fafb;
}
.hero-eyebrow {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93c5fd;
}
.hero-lead {
  margin: 0 0 1.6rem;
  color: #d1d5db;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* HERO CARD */
.hero-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 1.5rem 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.hero-card-title {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: #e5e7eb;
}
.hero-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #cbd5f5;
  font-size: 0.95rem;
}
.hero-list li {
  margin-bottom: 0.3rem;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}
.btn-primary:focus-visible {
  outline: 3px solid #bfdbfe;
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e5e7eb;
  background: transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: #e5e7eb;
}
.btn-ghost:focus-visible {
  outline: 3px solid #bfdbfe;
  outline-offset: 3px;
}

/* GENERIC GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* SERVICES */
.service-card {
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}
.service-card h3 {
  margin: 0 0 0.3rem;
}
.service-tag {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: #6b7280;
}
.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: #374151;
}
.service-card li {
  margin-bottom: 0.35rem;
}

/* PORTFOLIO */
.portfolio-grid {
  margin-top: 1.5rem;
}
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
  gap: 1rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #f9fafb;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-body {
  padding: 1.4rem 1.4rem 1.2rem;
}
.project-body h3 {
  margin: 0 0 0.2rem;
}
.project-type {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #6b7280;
}
.project-text {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #374151;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.project-tags span {
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e0ecff;
  color: #1d4ed8;
}
.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.project-link:hover,
.project-link:focus-visible {
  text-decoration: underline;
}

/* ABOUT */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
}
.about-text p {
  margin: 0 0 1rem;
  color: #374151;
}
.about-sidebar h3 {
  margin: 0 0 0.5rem;
}
.about-list {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: #4b5563;
}
.about-list li {
  margin-bottom: 0.3rem;
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr);
  gap: 2rem;
}
.contact-list {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.95rem;
}
.contact-list li {
  margin-bottom: 0.5rem;
}
.contact-list a {
  color: #2563eb;
  text-decoration: none;
}
.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration: underline;
}

/* CONTACT FORM */
.contact-form {
  background: #f9fafb;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.3rem;
  border: 1px solid #e5e7eb;
}
.field {
  margin-bottom: 0.9rem;
}
.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #4b5563;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  color: #111827;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid #2563eb;
  border-color: #2563eb;
}
.contact-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 1.75rem 1rem 2rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .about-layout,
  .contact-layout,
  .project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-inner {
    padding: 2.5rem 1.7rem;
  }
  .section-content {
    padding: 2.3rem 1.6rem;
  }
}

.about-photo {
  margin-bottom: 1.5rem;
}
.about-photo img {
  width: 100%;
  max-width: 180px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}