/* ==========================================================
   SienaRisk — shared styles
   ========================================================== */

:root {
  /* Navy matches the logo artwork's background so the logo blends in */
  --navy: #0e1a2a;
  --navy-deep: #0a1422;
  --slate: #364357;
  --gold: #c8860f;
  --gold-section: #c4820e;
  --champagne: #dcb47e;
  --bronze: #cf9a5a;
  --white: #ffffff;
  --ink: #0f2340;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", Verdana, Geneva, sans-serif;

  --gutter: clamp(16px, 4vw, 72px);
  --header-h: 112px;
  --rule-h: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

/* ---------- Header / banner ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
}

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

.brand img {
  height: 76px;
  width: auto;
}

.header-rule {
  height: var(--rule-h);
  background: var(--slate);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(28px, 4.4vw, 84px);
}

.site-nav a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 6px 0;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--champagne);
  background-size: 100% 2px;
  outline: none;
}

.site-nav a[aria-current="page"] {
  background-size: 100% 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(200, 134, 15, 0.5);
  border-radius: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  color: var(--gold);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  flex: 1;
  overflow-x: clip; /* the enlarged hero photo may bleed past the screen edge */
}

/* ---------- Landing hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px);
  max-width: 1680px;
  margin: 0 auto;
}

.hero-copy {
  padding-left: clamp(0px, 4vw, 88px);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.3vw, 5.6rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 clamp(28px, 4vw, 64px);
}

.hero-title .line {
  display: block;
  white-space: nowrap;
}

.line-profits {
  color: var(--gold);
}

.line-risk {
  background: linear-gradient(90deg, #c99a5e 0%, #e3c494 55%, #d8b07a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.line-scale {
  color: var(--white);
}
.line-scale em {
  font-style: normal;
  color: var(--bronze);
}

.hero-sub {
  font-weight: 700;
  font-size: clamp(1.05rem, 1.55vw, 1.6rem);
  line-height: 1.9;
  text-align: center;
  margin: 0;
  max-width: 36ch;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 14px 28px;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: var(--navy);
  outline: none;
}
.btn .arrow {
  transition: transform 0.25s ease;
}
.btn:hover .arrow {
  transform: translateX(4px);
}

.hero-media {
  margin: 0 calc(-1 * var(--gutter)) 0 0; /* run out to the screen edge */
  position: relative;
}

/* The faded edges are transparent, so the photo can be drawn larger than
   its column without crowding the text. This makes it taller, closing the
   empty space above and below it. */

/* Full, uncropped photo: leaves ~13% of space left of the wolf's tail so
   the left edge can fade gradually instead of being cut off. */
.hero-media img {
  max-width: none;
  width: 116%;
  margin-left: -8%;
  height: auto;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
  border-radius: 18px;
  /* Feathered edges into the navy, built from four layers that multiply:
       1. radial  - rounds off the corners
       2. 135deg  - extra fade on the bright top-left sky
       3. top/bottom edges   4. left/right edges
     Keep the left stop (10%) and diagonal stop (22%) at or below these
     values or the wolf's tail starts to fade. The house ends at ~87%,
     so the right stop (90%) should stay at or above that. */
  -webkit-mask-image:
    radial-gradient(ellipse 72% 75% at 50% 50%, #000 58%, transparent 100%),
    linear-gradient(135deg, transparent 0%, #000 22%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 88%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 72% 75% at 50% 50%, #000 58%, transparent 100%),
    linear-gradient(135deg, transparent 0%, #000 22%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 88%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

/* ---------- About section ---------- */

.about {
  background: var(--gold-section);
  color: var(--ink);
  min-height: calc(100vh - var(--header-h) - var(--rule-h));
  padding: clamp(64px, 9vw, 128px) var(--gutter) clamp(72px, 10vw, 140px);
}

.about-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.about h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 3.9vw, 3.6rem);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 clamp(32px, 4vw, 52px);
}

.about p {
  font-weight: 700;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.6;
  margin: 0 auto 1.3em;
  max-width: 62em;
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 112px) var(--gutter) clamp(72px, 9vw, 128px);
}

.eyebrow {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.contact h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 28px;
  text-wrap: balance;
}
.contact h1 em {
  font-style: normal;
  color: var(--champagne);
}

.contact-lede {
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 40px;
  max-width: 46ch;
}

.contact-details {
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(200, 134, 15, 0.35);
  display: grid;
  gap: 20px;
}
.contact-details dt {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-details dd {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}
.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--champagne);
  border-color: var(--champagne);
  outline: none;
}

.contact-form {
  background: #13223a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 3px solid var(--gold);
  padding: clamp(24px, 3.5vw, 48px);
  display: grid;
  gap: 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
}
.req {
  color: var(--gold);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: 500 1rem/1.4 var(--sans);
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option {
  color: #111;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 134, 15, 0.22);
}
.field.has-error input,
.field.has-error textarea {
  border-color: #e0795f;
}
.field-error {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f0a38f;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 4px;
}

.btn-solid {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  cursor: pointer;
}
.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--champagne);
  border-color: var(--champagne);
}

.form-status {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--champagne);
}

@media (max-width: 960px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .form-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Services ---------- */

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.05;
  margin: 0;
  color: var(--white);
}

.partner {
  padding: clamp(28px, 3.5vw, 52px) var(--gutter) clamp(56px, 7vw, 96px);
}

.partner .section-title {
  margin-bottom: clamp(22px, 2.6vw, 40px);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
}

.partner-card {
  margin: 0;
}

.partner-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 24px;
}

.partner-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.partner-card p {
  font-weight: 700;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
  max-width: 34em;
}

.deliver {
  background: #082449;
  padding: clamp(40px, 4.5vw, 64px) var(--gutter) clamp(56px, 6vw, 88px);
}

.deliver .section-title {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.deliver-lede {
  font-weight: 700;
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
  line-height: 1.6;
  margin: 0 0 clamp(28px, 3.5vw, 48px);
  max-width: 64em;
}

.deliver-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
}

.deliver-list li {
  position: relative;
  padding: 22px 0 0 0;
  border-top: 2px solid var(--gold);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.5;
}

/* Scroll-triggered reveal (only hidden once JS is running) */
.js .scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 960px) {
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 640px;
  }
  .deliver-list {
    grid-template-columns: 1fr;
  }
}

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
  padding: 28px var(--gutter);
}

/* ---------- Load-in motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .reveal:nth-child(2) {
    animation-delay: 0.15s;
  }
  .reveal:nth-child(3) {
    animation-delay: 0.3s;
  }
  .reveal-late {
    animation-delay: 0.45s;
  }
  .reveal-img {
    animation-delay: 0.2s;
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    padding-left: 0;
  }
  /* Stacked: back to a normal full-width image */
  .hero-media {
    margin: 0;
  }
  .hero-media img {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 84px;
  }
  .brand img {
    height: 56px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + var(--rule-h));
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--slate);
    display: none;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    background-image: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav a[aria-current="page"] {
    color: var(--champagne);
  }
  .hero-title .line {
    white-space: normal;
  }
  .hero-sub {
    line-height: 1.9;
    text-wrap: balance;
  }
}

@media (max-width: 420px) {
  .hero-sub {
    font-size: 0.9rem;
  }
}
