/* Sam Mitchell Fabrications - site styles */
:root {
  --navy: #0e1821;      /* main background, as on the original site */
  --navy-2: #14222e;    /* slightly lighter band for alternate sections */
  --text: #e8edf5;
  --muted: #a7b3c2;
  --blue: #5b7ee0;      /* the site's blue: buttons, labels, outlines */
  --blue-dark: #4466c8;
  --pale: #a5b7ea;
  --radius: 0;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
}
img { max-width: 100%; display: block; }
a { color: var(--pale); }
h1, h2, h3 {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: #fff;
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

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

/* Thin blue line round photos and boxes */
.framed { border: 1px solid var(--blue); }

/* Header */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(91,126,224,.35);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  color: #fff; text-decoration: none;
  font-family: "Raleway", sans-serif; font-weight: 600;
  font-size: 1.15rem; letter-spacing: .01em; line-height: 1.15;
}
.brand small { display: block; font-weight: 400;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pale); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: #c5d0d9; text-decoration: none; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: var(--radius); padding: 11px 20px; font-size: .95rem;
}
.btn-primary { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.nav .btn { padding: 8px 14px; font-size: .78rem; letter-spacing: .1em; color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Hero */
.hero {
  position: relative; color: #fff;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  background: var(--navy-2) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,24,33,.15) 20%, rgba(14,24,33,.8) 100%);
}
.hero .wrap { position: relative; padding-bottom: 64px; padding-top: 120px; width: 100%; }
.hero h1 { font-family: "Roboto", sans-serif; font-weight: 300; letter-spacing: .01em; font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: .2em; }
.hero p.tag { font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: .08em; margin-bottom: 1.6em; color: #e6ecfb; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-small { min-height: 300px; }
.hero-small .wrap { padding-bottom: 48px; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--navy-2); }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: .6em; }
.lead { font-size: 1.1rem; color: #d3dbe6; max-width: 62ch; }

/* About: photo and text side by side */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; align-items: center; }
.about img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Services, over the faded joint photo */
.services-sec {
  background: linear-gradient(rgba(14,24,33,.72), rgba(14,24,33,.72)), url("img/front-02.jpg") center/cover no-repeat;
}
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 32px; padding: 0; list-style: none; }
.services li {
  background: rgba(14,24,33,.85); border: 1px solid var(--blue); border-radius: var(--radius);
  padding: 20px 22px; font-weight: 600; color: #fff;
}
.services li::before { content: ""; display: block; width: 28px; height: 2px; background: var(--blue); margin-bottom: 12px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.gallery button {
  padding: 0; border: 1px solid var(--blue); background: var(--navy); cursor: zoom-in; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery.four { grid-template-columns: repeat(4, 1fr); }
.more { text-align: center; margin-top: 36px; }
.btn-lg { padding: 15px 36px; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.quotes figure { margin: 0; background: var(--navy); border-radius: var(--radius); padding: 28px; border: 1px solid var(--blue); }
.quotes blockquote { margin: 0 0 1em; font-style: italic; font-size: 1.05rem; line-height: 1.55; color: #fff; }
.quotes figcaption { color: var(--pale); font-size: .92rem; }

/* Contact */
.contact { background: var(--navy); border-top: 1px solid rgba(91,126,224,.35); }
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact dl { margin: 0; display: grid; gap: 18px; border: 1px solid var(--blue); padding: 28px; }
.contact dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.contact dd { margin: 2px 0 0; font-size: 1.2rem; }
.contact dd a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact dd a:hover { border-color: #fff; }

/* Project sections */
.project { padding: 72px 0; border-top: 1px solid rgba(91,126,224,.3); }
.project:first-of-type { border-top: 0; }
.project .lead { margin-bottom: 0; }

/* Footer */
footer { background: #08111a; color: #8b97a6; font-size: .88rem; padding: 26px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Lightbox (full-size photo viewer) */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,11,15,.97);
  display: none; align-items: center; justify-content: center; padding: 56px 64px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--blue);
  width: 48px; height: 48px; border-radius: 0; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(91,126,224,.35); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #9aa3ad; font-size: .85rem; }

/* Tablets */
@media (max-width: 860px) {
  .contact .grid { grid-template-columns: 1fr; gap: 32px; }
  .about { gap: 28px; }
  .services { grid-template-columns: 1fr 1fr; }
  .gallery, .gallery.four { grid-template-columns: repeat(2, 1fr); }
  section, .project { padding: 56px 0; }
}
/* Phones */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { padding: 0 16px; gap: 10px; min-height: 60px; }
  .brand { font-size: 1rem; white-space: nowrap; }
  .brand small { display: none; }
  .nav { gap: 12px; }
  .nav a { font-size: .72rem; letter-spacing: .08em; }
  .nav .btn { padding: 7px 10px; font-size: .7rem; white-space: nowrap; }
  .nav a.hide-sm { display: none; }
  .about { grid-template-columns: 1fr; }
  .about img { aspect-ratio: 1/1; max-width: 360px; }
  .services, .quotes { grid-template-columns: 1fr; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* Photo-specific crops: which part of the photo shows in the grid */
.gallery img[src$="greece-09.jpg"] { object-position: 50% 8%; }
