@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  color-scheme: light;
  --ink: #123451;
  --muted: #4e5966;
  --paper: #f9f7f1;
  --stone: #efeade;
  --line: #d9d5c8;
  --gold: #ecc276;
  --accent: #82531f;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 102px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #a35f13; outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
p { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.11; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.9rem); letter-spacing: -.042em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.025em; }
.wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 7.3vw, 6rem); }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow + h1, .eyebrow + h2 { margin-top: .65rem; }
.section-heading { max-width: 690px; margin-bottom: 2rem; }
.section-heading > p:last-child { margin-top: .85rem; max-width: 58ch; }
.skip-link { position: fixed; z-index: 5; top: .5rem; left: .5rem; background: var(--gold); padding: .7rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 4; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.15rem; }
.brand { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; }
.brand img { height: auto; }
.brand-mark { width: 54px; }
.brand-wordmark { width: 118px; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: clamp(.7rem, 2.5vw, 2rem); }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 600; }
.site-header nav a:hover, .site-footer nav a:hover, .inline-link:hover { text-decoration: underline; text-underline-offset: .27em; }
.button { display: inline-flex; min-height: 48px; padding: .75rem 1.15rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: .42rem; text-align: center; font-size: .94rem; font-weight: 700; line-height: 1.22; text-decoration: none; }
.primary, .header-quote { background: var(--ink); color: #fffdf7; }
.primary:hover, .header-quote:hover { background: #214665; border-color: #214665; }
.outline { border-color: #8592a0; }
.outline:hover { background: #dfdacb; }
.header-quote { min-height: 44px; white-space: nowrap; }

.hero { background: var(--stone); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: .97fr 1.03fr; align-items: center; gap: clamp(1.5rem, 4.3vw, 4rem); padding-block: clamp(2.8rem, 6vw, 5.2rem); }
.hero h1 { font-size: clamp(3.25rem, 6.5vw, 6.1rem); line-height: 1.01; letter-spacing: -.06em; }
.hero h1 em { color: var(--accent); font-weight: inherit; }
.hero-description { max-width: 37ch; margin-top: 1.25rem; font-size: clamp(1.03rem, 1.6vw, 1.19rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-photo { position: relative; border-radius: .25rem; overflow: hidden; background: #b6b3a4; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.18; object-fit: cover; object-position: 52% 55%; }
.hero-photo figcaption { position: absolute; bottom: 0; width: 100%; padding: 1.8rem 1rem .75rem; background: linear-gradient(transparent, #0c2239d9); color: white; font-weight: 600; font-size: .86rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.3vw, 1.6rem); }
.service { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: .32rem; }
.service img { width: 100%; aspect-ratio: 1.85; height: auto; object-fit: cover; }
.service:first-child img { object-position: 50% 39%; }
.service:nth-child(2) img { object-position: 70% center; }
.service-copy { padding: clamp(1rem, 2.45vw, 1.7rem); }
.service-copy p { margin-top: .6rem; }

/* Restoration gallery */
.gallery { background: #f3efe6; border-block: 1px solid var(--line); }
.gallery-heading h2 { font-size: clamp(2.5rem, 5.3vw, 4.65rem); }
.gallery-grid, .gallery-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.7rem, 4vw, 3.2rem) clamp(1rem, 3vw, 2.4rem);
}
.gallery-grid > .gallery-project:first-child { grid-column: 1 / -1; }
.gallery-project { min-width: 0; }
.gallery-project-title { margin-bottom: .65rem; font-size: clamp(1.2rem, 2.6vw, 1.7rem); overflow-wrap: anywhere; }
.gallery-project-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.45rem, 1.5vw, .95rem); }
.gallery-photo {
  display: block;
  overflow: hidden;
  border-radius: .45rem;
  background: #e8e2d6;
  cursor: zoom-in;
}
.gallery-photo img { width: 100%; aspect-ratio: 1.1; object-fit: cover; }
.gallery-grid > .gallery-project:first-child .gallery-photo img { aspect-ratio: 1.46; }
.gallery-project-pair figcaption { margin-top: .48rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.gallery-more { margin-top: clamp(1.4rem, 3.5vw, 2.7rem); border-block: 1px solid #c9c2b6; }
.gallery-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: .55rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}
.gallery-more summary::-webkit-details-marker { display: none; }
.gallery-more summary::after { content: '+'; padding-inline: .35rem; font-size: 1.35rem; font-weight: 500; }
.gallery-more[open] summary::after { content: '−'; }
.gallery-more-grid { padding: .85rem 0 1.3rem; }
.gallery-lightbox {
  width: min(60rem, calc(100% - 1.25rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: clamp(.75rem, 2vw, 1.15rem);
  border: 0;
  border-radius: .55rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 16px 75px #0005;
}
.gallery-lightbox::backdrop { background: #0c202de8; }
.gallery-lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.gallery-lightbox-header h3 { font-size: clamp(1.2rem, 2.9vw, 1.65rem); overflow-wrap: anywhere; }
.gallery-lightbox-close { flex: none; min-height: 44px; padding: .5rem .75rem; border: 1px solid #8592a0; border-radius: .35rem; background: transparent; font-weight: 700; cursor: pointer; }
.gallery-lightbox-close:hover { background: #eae5da; }
.gallery-lightbox-photo { max-height: calc(100dvh - 8rem); margin-inline: auto; object-fit: contain; }
body:has(.gallery-lightbox[open]) { overflow: hidden; }

.contact .eyebrow { color: var(--gold); }
.contact p, .site-footer p { color: #e6e6d9; }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.reviews { background: var(--paper); border-bottom: 1px solid var(--line); }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .85rem clamp(1.35rem, 6vw, 5rem); }
.reviews-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin-top: .8rem; }
.reviews-rating strong { color: var(--ink); }
.reviews-link { justify-self: start; white-space: normal; }
.review-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: .75rem; }
.review-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .85rem;
  padding: clamp(1.2rem, 3.8vw, 2rem);
  border: 1px solid var(--line);
  border-top: 3px solid #aa742d;
  border-radius: .65rem;
  background: #fff;
}
.review-stars { color: #82531f; font-size: 1.075rem; letter-spacing: .14em; }
.review-card blockquote { margin: 0; }
.review-card blockquote p { color: var(--ink); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; }
.review-card figcaption { margin-top: auto; padding-top: .4rem; color: var(--muted); font-weight: 700; }

.yachts { display: grid; grid-template-columns: 1fr .95fr; gap: clamp(1.4rem, 6vw, 5.6rem); align-items: center; }
.yachts img { width: 100%; height: auto; aspect-ratio: 1.24; object-fit: cover; border-radius: .32rem; }
.yachts p:not(.eyebrow), .contact p:not(.eyebrow) { margin-top: 1rem; }
.yachts .button { margin-top: 1.4rem; }

.videos { background: var(--stone); border-block: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.3vw, 1.6rem); }
.video-grid figure { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: .32rem; }
.video-grid video { display: block; width: 100%; aspect-ratio: 1; background: var(--ink); }
.video-grid figcaption { padding: .75rem 1rem; font-weight: 600; }

.faq { display: grid; grid-template-columns: .65fr 1fr; gap: clamp(1.3rem, 5vw, 5rem); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 56px; padding: .85rem .2rem; list-style: none; cursor: pointer; font-weight: 700; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ''; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: none; margin-right: .3rem; }
.accordion details[open] summary::after { transform: rotate(225deg); }
.accordion p { padding: 0 1.5rem 1rem .2rem; }

.contact, .site-footer { background: var(--ink); color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 1.15fr minmax(230px, .65fr); align-items: center; gap: clamp(1.4rem, 9vw, 8rem); }
.contact-options { display: grid; align-items: start; gap: .65rem; }
.contact-options .primary { color: var(--ink); background: var(--gold); }
.contact-options .primary:hover { background: #f6d99f; }
.contact-options .outline:hover { background: #294c6c; }
.inline-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; text-underline-offset: .27em; }
.inline-link svg { flex: none; }
.contact-email { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; font-size: .95rem; text-decoration: none; }
.contact-email:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid #849caf; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .15rem 1rem; padding-block: .65rem; }
.site-footer p { font-size: .9rem; }

@media (max-width: 760px) {
  html { scroll-padding-top: 115px; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .5rem; padding-top: .48rem; }
  .brand-mark { width: 45px; }
  .brand-wordmark { width: 100px; }
  .header-quote { grid-column: 2; grid-row: 1; min-height: 42px; padding-inline: .73rem; }
  .site-header nav { grid-column: 1 / -1; justify-content: space-between; gap: .45rem; }
  .site-header nav a { font-size: .875rem; }
  .hero-inner, .yachts, .faq, .contact-inner, .reviews-layout, .review-cards { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 2.5rem 1.15rem; }
  .hero h1 { font-size: clamp(2.9rem, 9.5vw, 4.5rem); }
  .desktop-break { display: none; }
  .hero-photo img { aspect-ratio: 1.5; }
  .service-grid, .video-grid { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: 30% 1fr; }
  .service img { height: 100%; aspect-ratio: auto; }
  .section-heading { margin-bottom: 1.35rem; }
  .gallery-grid, .gallery-more-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-photo img, .gallery-grid > .gallery-project:first-child .gallery-photo img { aspect-ratio: .94; }
  .yachts > div { grid-row: 1; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid video { aspect-ratio: 3 / 4; }
  .video-grid figcaption { padding: .55rem .6rem; font-size: .9rem; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 1.4rem); }

  .site-header nav a { font-size: .83rem; }
  .actions .button { width: 100%; }
}
