/* ==========================================================
   505 Rigging — site styles
   ========================================================== */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --blue: #1d6fb8;
  --blue-light: #4ea3e0;
  --sail: #f5f7fa;
  --white: #ffffff;
  --text: #24313f;
  --text-muted: #5c6b7a;
  --accent: #e8a13d;
  --border: #dde4ec;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(11, 37, 69, 0.10);
  --max-width: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--sail);
  line-height: 1.6;
}

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

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

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

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

.brand {
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand .brand-mark {
  color: var(--accent);
  font-size: 1.1em;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.site-nav a.active {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 55%, #123a63 100%);
  color: var(--white);
  padding: 5rem 0 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* simple wave accent along the bottom */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background: var(--sail);
  clip-path: ellipse(75% 100% at 50% 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 .accent {
  color: var(--accent);
}

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

.hero .btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 161, 61, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Sections ---------- */

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ---------- Service cards ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(11, 37, 69, 0.16);
}

.service-card .icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Image placeholders ---------- */

.placeholder {
  background: repeating-linear-gradient(
    45deg,
    #d7e1ec,
    #d7e1ec 14px,
    #c9d6e5 14px,
    #c9d6e5 28px
  );
  border: 2px dashed #9fb3c8;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5c7590;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  min-height: 200px;
}

.placeholder .ph-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}

.placeholder small {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- About strip ---------- */

.about-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-strip h2 {
  color: var(--navy);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.about-strip p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Past work / project cards ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(11, 37, 69, 0.16);
}

.project-card .placeholder {
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed #9fb3c8;
  min-height: 210px;
}

.project-card > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.project-card .project-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.project-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
}

.project-card .tag {
  align-self: flex-start;
  background: #e3eefb;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Featured project: spans the full grid width */

.project-card--featured {
  grid-column: 1 / -1;
}

/* Before / after photo pair */

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.ba-item {
  position: relative;
}

.ba-item img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

.ba-item .ba-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(7, 26, 51, 0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.ba-item--after .ba-label {
  background: var(--accent);
  color: var(--navy-dark);
}

@media (max-width: 560px) {
  .ba-pair {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
}

.contact-list .icon {
  font-size: 1.3rem;
}

.contact-list a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--sail);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--blue-light);
  outline-offset: 1px;
  background: var(--white);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-band h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .site-header .container {
    flex-direction: column;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .about-strip .container,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 4.5rem;
  }
}
