/* ===== Palmer Marine — Site Styles ===== */

:root {
  --navy: #14314d;
  --navy-dark: #0c2234;
  --navy-light: #1f4a6e;
  --ink: #16324a;
  --white: #ffffff;
  --off-white: #f6f8fa;
  --gray: #5c6b77;
  --light-gray: #e6eaee;
  --accent: #c9a24b;
  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 67, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(15, 42, 67, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 56px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding-top: 84px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,162,75,0.12), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

/* Blurred photo band — covers the top ~40% of the page (behind/above the header).
   Swap the background-image on .media-bg for a real photo once you have one. */
.media-bg {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  height: calc(40% + 80px);
  background-image: url("../assets/images/placeholders/hero-placeholder.svg");
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  z-index: 0;
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(12,34,52,0.45) 0%, var(--navy-dark) 95%);
  z-index: 0;
}

/* Inner pages: the page-header band is short, so the photo covers it fully */
.page-header .media-bg {
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  height: auto;
}
.page-header .media-overlay {
  height: 100%;
  background: linear-gradient(135deg, rgba(20,49,77,0.82) 0%, rgba(12,34,52,0.9) 100%);
}

/* Home hero: the photo covers the full hero, lightly blurred, so it reads clearly */
.hero .media-bg {
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  height: auto;
  filter: blur(3px);
}
.hero .media-overlay {
  height: 100%;
  background: linear-gradient(135deg, rgba(12,34,52,0.6) 0%, rgba(12,34,52,0.75) 100%);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 720px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  background: var(--navy-dark);
  color: var(--white);
  padding: 170px 0 70px;
  text-align: center;
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-alt { background: var(--off-white); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 14px; }
.section-head p { color: var(--gray); margin: 0; }

/* ---------- Services / feature grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media.img-placeholder {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 16 / 10;
}

.card-body { padding: 24px 28px 32px; }

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  border-top: 3px solid var(--accent);
  padding-top: 16px;
}
.card p { margin: 0; color: var(--gray); font-size: 0.95rem; }

/* ---------- About / split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split img, .split .img-placeholder {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.img-placeholder {
  background: var(--light-gray);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 24px;
  aspect-ratio: 4 / 3;
}

.split h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 18px; }
.split p { color: var(--gray); margin: 0 0 16px; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat-row .stat strong {
  display: block;
  font-size: 2rem;
  color: var(--navy);
}
.stat-row .stat span {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Values list ---------- */
.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.values-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
}
.values-list .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}
.values-list strong { display: block; margin-bottom: 4px; }
.values-list p { margin: 0; color: var(--gray); font-size: 0.92rem; }

/* ---------- Portfolio ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.portfolio-item .img-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
}

.portfolio-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(12,34,52,0.88), transparent);
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}
.portfolio-item:hover .portfolio-caption { opacity: 1; transform: translateY(0); }
.portfolio-caption h4 { margin: 0 0 4px; font-size: 1rem; }
.portfolio-caption span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }

/* ---------- Testimonial / CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 16px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 32px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.contact-info-item h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-info-item p { margin: 0; color: var(--gray); font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--off-white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.site-footer h5 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px 24px; box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-120%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: flex; }
  .hero-actions, .form-row { flex-direction: column; }
  .form-row { display: block; }
  .form-row .form-group { margin-bottom: 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* Touch devices have no hover, so keep portfolio captions visible */
@media (hover: none) {
  .portfolio-caption { opacity: 1; transform: none; }
}
