/* Tideframe layouts for Modulos Design. */
:root {
  --cms-shade: #10171588;
  --cms-rule-light: #fafaf45c;
  --cms-quiet: #dce1d5;
}

.tideframe-cms {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}
.tideframe-cms .site-navbar-wrap,
.tideframe-cms .site-mobile-menu { display: none; }
.tideframe-cms h1,
.tideframe-cms h2,
.tideframe-cms h3 { font-family: var(--font); font-weight: 400; overflow-wrap: break-word; }
.tideframe-cms h2 { font-size: clamp(2.3rem, 4.5vw, 5rem); }
.tideframe-cms h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -.04em; line-height: 1.14; }
.tideframe-cms .hero h1 { max-width: 16ch; font-size: clamp(3.35rem, 8.4vw, 8.75rem); line-height: .93; }
.tideframe-cms .hero-sub { max-width: 22rem; }
.tideframe-cms .masthead .brand,
.tideframe-cms .masthead .mast-action,
.tideframe-cms .dock a { color: var(--white); }
.tideframe-cms .masthead .cms-brand-logo {
  display: block;
  width: clamp(8.5rem, 32vw, 13.75rem);
  height: auto;
}
.tideframe-cms .dock-label { color: var(--white); }
.tideframe-cms .dock a:hover { color: var(--accent); }
.tideframe-cms .nav-panel {
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - max(1.25rem, env(safe-area-inset-bottom)) - 4rem);
  overflow-y: auto;
}
.tideframe-cms .nav-services > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding: .7rem .9rem;
  cursor: pointer;
  list-style: none;
}
.tideframe-cms .nav-services > summary::-webkit-details-marker { display: none; }
.tideframe-cms .nav-services > summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  margin-right: .15rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.tideframe-cms .nav-services[open] > summary::after { transform: rotate(225deg); }
.tideframe-cms .nav-service-links { margin-left: .9rem; border-left: 1px solid var(--fog); }
.tideframe-cms .nav-service-links > a { display: block; }
.tideframe-cms .nav-panel :focus-visible { outline-offset: -3px; }
.tideframe-cms .button { text-decoration: none; }
.tideframe-cms .skip:focus { position: fixed; z-index: 20; }
.tideframe-cms :is(main, section)[id] { scroll-margin-top: .75rem; }
.cms-opening {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(42rem, 78svh);
  background: var(--night);
  color: var(--white);
}
.cms-opening.has-image::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(175deg, var(--hero-top), var(--cms-shade) 55%, var(--hero-bottom));
  content: "";
}
.cms-opening-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cms-opening .hero-frame { grid-template-rows: auto 1fr; }
.cms-opening-copy {
  align-self: end;
  padding: clamp(3.5rem, 10svh, 8rem) 0 clamp(4.5rem, 11svh, 7rem);
}
.tideframe-cms .cms-opening h1 {
  max-width: 17ch;
  font-size: clamp(3.25rem, 7.4vw, 8rem);
  line-height: .97;
}
.cms-opening-copy p {
  max-width: 39rem;
  margin-top: 1.2rem;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.45;
}
.cms-back-link { display: inline-block; margin-bottom: 1.25rem; color: var(--white); }
.cms-byline { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--cms-quiet); }
.cms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.2rem; }
.cms-actions > a:not(.button) { color: var(--white); }
.hero-sub .cms-actions { margin-top: 0; }
.cms-band { padding-block: clamp(3.5rem, 7vw, 7rem); }
.cms-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.cms-prose { font-size: clamp(1rem, 1.55vw, 1.14rem); line-height: 1.7; }
.cms-service-detail { margin-top: 1.5rem; }
.tideframe-cms .cms-service-detail h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.14; }
.cms-service-detail p + h2 { margin-top: 1.25rem; }
.cms-split h2 + *, .cms-split h3 + * { margin-top: 1rem; }
.cms-split .button, .cms-feature-copy .button { margin-top: 1.35rem; }
.cms-module-image { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; }
.cms-split > .cms-module-image { aspect-ratio: 5 / 4; }
.cms-checklist {
  margin: 1.3rem 0 0;
  padding: .8rem 0 .8rem 1.2rem;
  border-block: 1px solid var(--line);
}
.cms-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-block: clamp(2.75rem, 5vw, 5rem);
}
.cms-points article,
.cms-features article { padding-top: 1rem; border-top: 1px solid var(--line); }
.cms-points h3, .cms-features h3 { margin: 0 0 .65rem; }
.cms-feature-band { isolation: isolate; position: relative; color: var(--white); background: var(--night); }
.cms-feature-backdrop { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cms-feature-band::after { position: absolute; z-index: -1; inset: 0; background: var(--hero-bottom); content: ""; }
.cms-feature-copy .cms-prose { max-width: 42rem; margin-top: 1rem; }
.cms-sage { color: var(--white); background: var(--moss); }
.cms-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.cms-section-head p { max-width: 17rem; }
.cms-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.cms-features article { border-color: var(--cms-rule-light); }
.cms-features ul { padding-left: 1.15rem; margin: .6rem 0 0; }
.cms-features li + li { margin-top: .4rem; }
.cms-card-grid,
.cms-article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.6rem; margin-top: 1.8rem; }
.cms-card { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
.cms-card img { margin-bottom: 1.1rem; }
.cms-card h3 { margin: .35rem 0 .6rem; }
.cms-card h3 a { text-decoration: none; }
.cms-card h3 a:hover, .cms-text-link:hover { text-decoration: underline; }
.cms-card time { font-size: .875rem; color: var(--muted); }
.cms-text-link { display: inline-block; margin-top: .85rem; color: var(--ink); text-decoration: underline; text-underline-offset: .26em; }
.cms-article-grid > article:first-child { grid-column: span 2; }
.cms-article-grid > article:first-child img { aspect-ratio: 2 / 1; }
.cms-blog-intro { max-width: 54rem; padding-bottom: 0; margin-left: max(0rem, calc((100% - var(--width)) / 2)); }
.cms-article { max-width: 58rem; }
.cms-article :is(p, ul, ol, figure, table) { margin-bottom: 1.25rem; }
.cms-article :is(h2, h3) { margin-block: 2.2rem .85rem; }
.tideframe-cms .cms-article h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cms-article img { max-width: 100%; height: auto; }
.cms-article table { display: block; max-width: 100%; overflow-x: auto; }
.cms-article th, .cms-article td { border: 1px solid var(--line); padding: .45rem .65rem; }
.cms-tags { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; list-style: none; }
.cms-tags a { display: block; padding: .2rem .65rem; border: 1px solid var(--line); }
.tideframe-cms .cms-native-portfolio > section {
  padding-block: clamp(2rem, 5vw, 4rem);
  background: var(--paper);
}
.cms-native-portfolio > section > .container-fluid { max-width: var(--width); }
.cms-native-portfolio [aria-label="Portfolio filters"] { gap: .5rem; }
.tideframe-cms .cms-native-portfolio [data-filter] {
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.tideframe-cms .cms-native-portfolio [data-filter]:is(.active, :hover) {
  border-color: var(--night);
  background: var(--night);
  color: var(--white);
}
.cms-native-portfolio .portfolio-card .card-img-frame {
  display: flex;
  flex-direction: column;
}
.cms-native-portfolio .portfolio-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.cms-native-portfolio .portfolio-card .card-img-overlay {
  position: static;
  flex: 1;
  padding: 0;
  background: var(--night) !important;
}
.cms-native-portfolio .portfolio-card .card-img-overlay > div { position: static !important; }
.tideframe-cms .cms-native-property #property-module { background: var(--mist) !important; color: var(--ink); }
.tideframe-cms #property-module > .container > .container > .row { padding-top: 0 !important; }
.tideframe-cms #property-module h2 { color: var(--ink) !important; }
.tideframe-cms #property-module h2.lh-lg { line-height: 1.08 !important; }
.tideframe-cms #property-module .bg-light { border: 1px solid var(--line); background: var(--white) !important; }
.tideframe-cms #property-module .bg-light h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.14; }
.tideframe-cms #property-module .bg-light p + h2 { margin-top: 1rem; }
.tideframe-cms #property-module .bg-light p + p { margin-top: .65rem; }
.tideframe-cms #property-module .bg-light a { color: var(--ink); text-decoration: underline; }
.tideframe-cms #property-lookup { width: 100%; max-width: 42rem; }
.tideframe-cms #property-lookup .map-autocomplete { border: 1px solid var(--line); }
.tideframe-cms #property-lookup #lookup-btn:enabled { border-color: var(--night); background: var(--night); color: var(--white); }
.tideframe-cms #property-lookup #lookup-btn:enabled:hover { background: var(--moss); }
.tideframe-cms .cms-native #contact-us,
.tideframe-cms .cms-native #our-process { color: var(--ink); background: var(--mist) !important; }
.tideframe-cms .cms-native :is(#contact-us, #our-process) :is(h2, h3, h4, h5) { color: var(--ink) !important; }
.tideframe-cms .cms-native :is(#contact-us, #our-process) :is(.form-control, .dropzone) { border: 1px solid var(--line); border-radius: 0; }
.tideframe-cms :is(#contact-form, #design-process, #property-lookup) .form-label label { display: block; }
.tideframe-cms #contact-form .dropzone[data-file-field-name="file_field"] {
  height: auto;
  min-height: 3.5rem;
  margin: .25rem 0 .35rem;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.tideframe-cms #contact-form .dropzone[data-file-field-name="file_field"].dz-clickable { cursor: pointer; }
.tideframe-cms #contact-form .dropzone[data-file-field-name="file_field"] .dz-message {
  min-height: 3.4rem;
  margin: 0;
  padding: 0;
  align-content: center;
  color: var(--ink);
  text-align: left;
}
.tideframe-cms #contact-form .dropzone[data-file-field-name="file_field"] .dz-message button {
  display: block;
  width: 100%;
  min-height: 3.4rem;
  padding: .65rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.tideframe-cms #contact-form .dropzone[data-file-field-name="file_field"] .dz-message strong { font-weight: 500; }
.tideframe-cms #contact-form .dropzone[data-file-field-name="file_field"]:focus-within,
.tideframe-cms #contact-form .dropzone[data-file-field-name="file_field"].dz-drag-hover {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.tideframe-cms #contact-form .dropzone[data-file-field-name="file_field"]:focus-within .dz-message button:focus-visible {
  outline: 0;
}
.tideframe-cms .cms-native :is(#contact-us, #our-process) button[type="submit"] { border: 1px solid var(--night); background: var(--night); color: var(--white); }
.tideframe-cms .cms-native :is(#contact-us, #our-process) button[type="submit"]:hover { background: var(--moss); }
.tideframe-cms .footer { background: var(--night); color: var(--white); }
.tideframe-cms .footer > .container { padding-block: 2rem 4.25rem; }
.tideframe-cms .footer :is(a, p, .brown-five) { color: var(--cms-quiet); }
.tideframe-cms :is(.cms-opening, .cms-sage, .cms-feature-band) :focus-visible { outline-color: var(--accent); }

@media (max-width: 58rem) {
  .cms-card-grid, .cms-article-grid, .cms-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .tideframe-cms .hero h1 { font-size: clamp(2.65rem, 9vw, 5rem); }
  .tideframe-cms .hero-copy { padding-top: 2rem; }
  .tideframe-cms .hero-caption { min-height: 6.6rem; font-size: .8rem; }
  .cms-opening { min-height: min(33rem, 73svh); }
  .cms-split, .cms-points, .cms-card-grid, .cms-article-grid, .cms-features { grid-template-columns: minmax(0, 1fr); }
  .cms-split.is-reversed > img { grid-row: 2; }
  .cms-section-head { display: grid; }
  .cms-article-grid > article:first-child { grid-column: auto; }
  .cms-article-grid > article:first-child img { aspect-ratio: 3 / 2; }
}
