/*
Theme Name: THRY Group
Theme URI: https://www.thrygroup.com
Author: THRY Group
Description: A refined WordPress theme for luxury surface, stone, mosaic, and finishing projects.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: thrygroup
*/

:root {
  --ink: #171717;
  --brand-blue: #080b2a;
  --muted: #6d6961;
  --paper: #f7f4ee;
  --stone: #e6dfd3;
  --clay: #9b7b58;
  --deep: #1f3430;
  --line: rgba(23, 23, 23, 0.16);
  --white: #ffffff;
  --max: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(8, 11, 42, 0.12);
  background: rgba(247, 244, 238, 0.92);
  color: var(--brand-blue);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-brand img {
  width: clamp(158px, 19vw, 238px);
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-menu a {
  opacity: 0.72;
}

.nav-menu a:hover {
  opacity: 1;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.language-switcher a {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 11, 42, 0.16);
  color: var(--brand-blue);
}

.language-switcher a.is-current {
  background: var(--brand-blue);
  color: var(--paper);
}

.site-header .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(8, 11, 42, 0.16);
  background: transparent;
  color: var(--brand-blue);
  cursor: pointer;
}

.site-header .menu-toggle-line {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.button.light {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 12, 11, 0.84) 0%, rgba(10, 12, 11, 0.58) 38%, rgba(10, 12, 11, 0.18) 72%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 150px 0 76px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  max-width: 790px;
  font-size: clamp(52px, 7vw, 96px);
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-strip div {
  padding: 22px 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-strip strong {
  display: block;
  color: var(--white);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.quote-band {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--brand-blue);
  text-align: center;
}

.quote-band p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
}

.section {
  padding: 104px 0;
}

.section.alt {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.section h2 {
  max-width: 620px;
  font-size: clamp(38px, 5vw, 64px);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

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

.core-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}

.core-card {
  min-height: 340px;
  padding: 28px;
  background: var(--white);
}

.core-card span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.core-card h3 {
  margin-top: 72px;
  color: var(--brand-blue);
  font-size: 28px;
}

.core-card p {
  color: var(--muted);
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.material-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  color: var(--white);
}

.material-card::before,
.material-card::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -2;
}

.material-card::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.08), rgba(7, 8, 11, 0.78));
}

.material-stone::before {
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(80, 73, 64, 0.24) 29%, transparent 31% 48%, rgba(255, 255, 255, 0.78) 49%, transparent 52%),
    linear-gradient(27deg, transparent 0 42%, rgba(98, 86, 75, 0.20) 43%, transparent 46%),
    linear-gradient(145deg, #f8f5ee, #d8d0c2 44%, #948a7c);
}

.material-ceramic::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.30) 1px, transparent 1px),
    linear-gradient(135deg, #343a38, #8f958e 48%, #d5d1c7);
  background-size: 100% 100%, 82px 82px, 100% 100%;
}

.material-mosaic::before {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.22) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.22) 75%),
    linear-gradient(135deg, #1f3430, #566b64 45%, #b6aa92);
  background-position: 0 0, 16px 16px, 0 0;
  background-size: 32px 32px, 32px 32px, 100% 100%;
}

.card h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

.card p,
.card li {
  color: var(--muted);
}

.material-card p {
  color: rgba(255, 255, 255, 0.82);
}

.material-card h3 {
  font-size: 34px;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li + li {
  margin-top: 10px;
}

.project-band {
  background: var(--deep);
  color: var(--white);
}

.design-support {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.design-support .split {
  align-items: center;
}

.design-support p:not(.eyebrow):not(.lead) {
  margin: 18px 0 0;
  color: var(--muted);
}

.interior-note {
  padding: 34px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.interior-note-inner {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 42px;
  align-items: start;
}

.interior-note span {
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.interior-note p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.project-band .eyebrow {
  color: #c6a374;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 46px;
}

.project-grid-five {
  grid-template-columns: repeat(6, 1fr);
}

.project-grid-five .project-item {
  min-height: 360px;
}

.project-grid-five .project-item h3 {
  font-size: 29px;
}

.project-item {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02)),
    var(--deep);
}

.project-visual-grid {
  background: transparent;
}

.project-visual-grid .project-item:nth-child(1) {
  grid-column: span 2;
}

.project-visual-grid .project-item:nth-child(2) {
  grid-column: span 2;
}

.project-visual-grid .project-item:nth-child(3) {
  grid-column: span 2;
}

.project-visual-grid .project-item:nth-child(4) {
  grid-column: span 3;
}

.project-visual-grid .project-item:nth-child(5) {
  grid-column: span 3;
}

.project-page-grid .project-item {
  min-height: 390px;
}

.project-page-grid .project-item:nth-child(1),
.project-page-grid .project-item:nth-child(2),
.project-page-grid .project-item:nth-child(3),
.project-page-grid .project-item:nth-child(4) {
  grid-column: span 1;
}

.project-visual-item::before,
.project-visual-item::after {
  position: absolute;
  inset: 0;
  content: "";
}

.project-visual-item::before {
  background: linear-gradient(135deg, #2f3330, #8a8275);
  transform: scale(1.03);
}

.project-visual-item::after {
  background:
    linear-gradient(180deg, rgba(6, 8, 8, 0.00) 0 34%, rgba(6, 8, 8, 0.76) 82%),
    linear-gradient(90deg, rgba(6, 8, 8, 0.50), transparent 64%);
}

.project-visual-1::before {
  background:
    linear-gradient(118deg, transparent 0 24%, rgba(94, 82, 72, 0.42) 25%, transparent 28% 52%, rgba(255, 255, 255, 0.54) 53%, transparent 57%),
    linear-gradient(36deg, transparent 0 38%, rgba(78, 72, 64, 0.30) 39%, transparent 43%),
    linear-gradient(145deg, #f0e8dc, #beb3a3 48%, #514940);
}

.project-visual-2::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.20) 1px, transparent 1px),
    linear-gradient(145deg, #312f2d, #74675b 46%, #d1c4b4);
  background-size: 96px 96px, 96px 96px, 100% 100%;
}

.project-visual-3::before {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.24) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.22) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.22) 75%),
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #102e37, #315c62 48%, #8ba9a4);
  background-position: 0 0, 18px 18px, 0 0, 0 0;
  background-size: 36px 36px, 36px 36px, 100% 100%, 100% 100%;
}

.project-visual-4::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(135deg, #0d3748, #1f6b77 50%, #a2c6c1);
  background-size: 42px 42px, 42px 42px, 100% 100%;
}

.project-visual-5::before {
  background:
    linear-gradient(108deg, transparent 0 30%, rgba(198, 163, 116, 0.30) 31%, transparent 35%),
    linear-gradient(36deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #080b2a, #243932 48%, #9c8b72);
}

.project-item-content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-marine {
  background:
    linear-gradient(145deg, rgba(198, 163, 116, 0.18), rgba(255, 255, 255, 0.03)),
    linear-gradient(45deg, rgba(8, 11, 42, 0.32), transparent),
    var(--deep);
}

.project-item span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-item h3 {
  margin-top: 18px;
  font-size: 34px;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.28);
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.process-five {
  grid-template-columns: repeat(5, 1fr);
}

.process-five .process-step {
  min-height: 320px;
}

.process-five .process-step h3 {
  margin-top: 62px;
  font-size: 26px;
}

.process-step {
  counter-increment: step;
  min-height: 270px;
  padding: 28px;
  background: var(--paper);
}

.process-step::before {
  content: "0" counter(step);
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.process-step h3 {
  margin-top: 70px;
  font-size: 28px;
}

.cta {
  padding: 110px 0;
  background: var(--ink);
  color: var(--white);
}

.cta .section-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.cta p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-box {
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  padding-left: 34px;
}

.contact-box a {
  display: block;
  margin-top: 14px;
  color: var(--white);
  font-size: 20px;
}

.site-footer {
  padding: 36px 0;
  background: #111;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.page-hero {
  position: relative;
  padding: 120px 0 82px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero-image {
  min-height: 420px;
  display: grid;
  align-items: end;
  background: var(--ink);
  color: var(--white);
}

.page-hero-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 12, 11, 0.82), rgba(10, 12, 11, 0.32)),
    var(--page-hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.page-hero .section-inner {
  position: relative;
}

.page-hero h1 {
  color: var(--brand-blue);
}

.page-hero-image h1 {
  color: var(--white);
}

.page-content {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
}

.page-content h2,
.page-content h3 {
  margin: 34px 0 14px;
  color: var(--brand-blue);
}

.page-content p {
  margin: 0 0 18px;
}

.page-content ul,
.page-content ol {
  padding-left: 22px;
}

.page-content li + li {
  margin-top: 8px;
}

.compact-page-intro {
  padding: 76px 0;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 70px;
  }

  .logo-brand img {
    width: 168px;
  }

  .site-header .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    border-top: 1px solid rgba(8, 11, 42, 0.12);
    border-bottom: 1px solid rgba(8, 11, 42, 0.12);
    background: rgba(247, 244, 238, 0.98);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
    padding: 18px 0;
  }

  .nav-menu li + li {
    border-top: 1px solid rgba(8, 11, 42, 0.1);
  }

  .nav-menu a {
    display: block;
    padding: 16px 0;
    opacity: 1;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero {
    min-height: 760px;
  }

  .hero-strip,
  .split,
  .grid,
  .core-grid,
  .project-grid,
  .process,
  .interior-note-inner,
  .cta .section-inner {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    gap: 14px;
  }

  .hero-strip div {
    padding-top: 16px;
  }

  .section {
    padding: 74px 0;
  }

  .contact-box {
    border-left: 0;
    padding-left: 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .project-visual-grid .project-item,
  .project-page-grid .project-item {
    grid-column: auto;
    min-height: 300px;
  }
}
