/* =========================
   BASE
========================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #1f2933;
  --muted: #6b7280;
  --primary: #0f4c81;
  --primary-dark: #0b3a63;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.section {
  padding: 3rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

/* =========================
   HEADER
========================= */
.header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand span {
  font-size: 0.85rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

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

.btn.secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn.secondary:hover {
  background: var(--bg-alt);
}

.btn.large {
  padding: 0.9rem 1.3rem;
  font-size: 1rem;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 3.5rem 0;
}

.hero h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-text {
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* =========================
   SERVICES
========================= */
.services {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.services li {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.services li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* =========================
   CARDS
========================= */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

/* =========================
   FORM
========================= */
.form {
  max-width: 520px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* =========================
   FOOTER
========================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================
   TABLET (≥ 640px)
========================= */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   DESKTOP (≥ 960px)
========================= */
@media (min-width: 960px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
