/* DEFORGE ENTERPRISES — Marina: Navy / Teal / Sand */
:root {
  --navy: #0c2340;
  --teal: #1a7a8c;
  --teal-light: #2ea3b8;
  --sand: #e8dcc8;
  --sand-light: #f5f0e6;
  --white: #ffffff;
  --text: #1a2e3b;
  --muted: #5a7184;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(12, 35, 64, 0.12);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sand-light);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-light); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.topbar a { color: var(--sand); }
.topbar a:hover { color: var(--white); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12,35,64,0.08);
  box-shadow: 0 2px 20px rgba(12,35,64,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.25rem;
}
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav a:hover, .nav a.active { color: var(--teal); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Hero — Split layout */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 120px);
  max-height: 720px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px max(24px, calc((100vw - 1180px)/2 + 24px));
  background: var(--sand-light);
}
.hero-visual {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--teal) 45%, #3aabbf 100%);
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(232,220,200,0.3), transparent);
}
.hero-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23e8dcc8' d='M0,64 C360,120 720,0 1080,48 C1260,72 1380,96 1440,80 L1440,120 L0,120 Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.hero-badge {
  display: inline-block;
  background: rgba(26,122,140,0.12);
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-card {
  position: absolute;
  bottom: 80px;
  left: 40px;
  right: 40px;
  background: rgba(255,255,255,0.95);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 8px; }
.hero-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Sections */
section { padding: 88px 0; }
.section-label {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.section-desc { color: var(--muted); max-width: 560px; margin-bottom: 48px; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(12,35,64,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* About strip */
.about-strip {
  background: var(--navy);
  color: var(--white);
}
.about-strip .section-title { color: var(--sand); }
.about-strip .section-desc { color: rgba(255,255,255,0.75); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text p { color: rgba(255,255,255,0.85); margin-bottom: 16px; font-size: 1.05rem; }

/* Stats */
.stats-bar {
  background: var(--sand);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* Contact */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-info h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 24px; }
.contact-item { margin-bottom: 20px; }
.contact-item strong { display: block; color: var(--navy); margin-bottom: 4px; }
.contact-item span, .contact-item a { color: var(--muted); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: 0.9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(12,35,64,0.15);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--teal); }
.form-group textarea { min-height: 140px; resize: vertical; }
.checkbox-group { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.form-msg {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.success { background: #ecfdf5; color: #065f46; }
.form-msg.error { background: #fef2f2; color: #991b1b; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand strong {
  font-family: var(--font-display);
  color: var(--sand);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 12px;
}
.footer-links h4 { color: var(--sand); margin-bottom: 16px; font-size: 0.9rem; }
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--sand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.page-content { padding: 64px 0; max-width: 800px; margin: 0 auto; }
.page-content h2 { font-family: var(--font-display); color: var(--navy); margin: 32px 0 12px; }
.page-content p, .page-content li { color: var(--muted); margin-bottom: 12px; }
.page-content ul { padding-left: 24px; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; max-height: none; }
  .hero-visual { min-height: 320px; }
  .hero-content { padding: 60px 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
