/* MM Drafting — static site styles */

:root {
  --brand: #2991d6;
  --brand-dark: #1f6ea1;
  --ink: #1c2733;
  --ink-soft: #4a5866;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --border: #e2e8ef;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #eaf4fc; }
.topbar .social a { margin-left: 14px; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 46px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav { position: relative; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav a:hover,
.main-nav a.active { color: var(--brand); text-decoration: none; }
.main-nav .dropdown a { text-transform: none; letter-spacing: normal; }

.main-nav .dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 190px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: none;
}
.main-nav li:hover > .dropdown { display: block; }
.main-nav .dropdown a {
  display: block;
  padding: 8px 16px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 70px 0;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
}
.hero p {
  font-size: 1.1rem;
  max-width: 640px;
  color: #eaf4fc;
}
.hero .cta {
  margin-top: 24px;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero photo carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 700;
  max-height: 70vh;
  overflow: hidden;
  background: #0b1e2d;
}
.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-carousel .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-carousel .dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.35);
  padding: 0;
  cursor: pointer;
}
.hero-carousel .dots button.active { background: #fff; }

.welcome-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 44px 0 8px;
  text-align: center;
}
.welcome-heading .rule {
  flex: 1;
  max-width: 260px;
  height: 1px;
  background: var(--border);
}
.welcome-heading h2 {
  margin: 0;
  color: var(--brand);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .welcome-heading { flex-direction: column; gap: 10px; }
  .welcome-heading .rule { display: none; }
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-primary {
  background: #fff;
  color: var(--brand-dark);
}
.btn-primary:hover { background: #eaf4fc; text-decoration: none; }
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* Section basics */
section.block { padding: 64px 0; }
.block-soft { background: var(--bg-soft); }
.block h2 {
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.block .lede {
  color: var(--ink-soft);
  max-width: 700px;
  margin-bottom: 32px;
}
.page-header {
  background: var(--ink);
  color: #fff;
  padding: 48px 0;
}
.page-header h1 { margin: 0; font-size: 2rem; }
.page-header p { color: #c7d2dc; margin: 8px 0 0; }

/* Cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.card h3 { margin-top: 0; }
.card .btn { margin-top: 12px; }

.list-style-check {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.list-style-check li {
  padding-left: 26px;
  position: relative;
}
.list-style-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.photo-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.photo-card img { width: 100%; height: 220px; object-fit: cover; cursor: zoom-in; }
.photo-card figcaption {
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 18, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  overflow: auto;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  margin: auto;
}
.lightbox-overlay.zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}
.lightbox-overlay.zoomed img {
  max-width: none;
  max-height: none;
  width: auto;
  cursor: grab;
}
.lightbox-overlay.zoomed.dragging img { cursor: grabbing; }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: #14181c;
  border: 2px solid #fff;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.lightbox-close:hover { background: var(--brand); border-color: var(--brand); }

/* Service cards (photo + dark caption bar) */
.service-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #14181c;
}
.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover img { transform: scale(1.05); }
.service-card .cap {
  background: #24282c;
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Contact strip */
.contact-strip {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-strip .grid-3 { padding: 40px 0; text-align: center; }
.contact-strip .icon { font-size: 1.6rem; margin-bottom: 8px; }
.contact-strip p.label {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e0;
  padding: 48px 0 20px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 0;
}
.site-footer a { color: #cbd5e0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #33414f;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }

/* Forms */
form.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
form.contact-form label.field-label {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form input[type="file"] {
  padding: 8px;
  background: var(--bg-soft);
}
.conditional-field { margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

/* Gallery tabs */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 32px;
}
.gallery-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 20px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
}
.gallery-tabs button .num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.gallery-tabs button.active {
  background: var(--brand);
  color: #fff;
}
.gallery-tabs button.active .num { background: var(--ink); }

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .main-nav .dropdown {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 12px;
  }
  .main-nav li:hover > .dropdown { display: block; }
  .site-header .container { position: relative; flex-wrap: wrap; }
}
