/* ============================================================
 * Tailor Experience — static port of the OnePress / WordPress site.
 * Visual choices follow wp-content/themes/onepress/style.css so the
 * rebuild reads like the real theme:
 *
 *   - .hero-slideshow-wrapper: dark bg #222, full-bleed image,
 *     .hero-slideshow-wrapper:after = rgba(0,0,0,0.3) overlay
 *   - .hero-content-style1 h2: 35px, white, uppercase, letter-spacing 2px,
 *     font-weight 800, text-shadow 0 2px 8px rgba(0,0,0,.15)
 *   - .hero-content-style1 p: 14px, italic, white, weight 100
 *   - .section-padding: 70px 0
 *   - .section-title: 30px, font-weight 800, letter-spacing 2px,
 *     uppercase, centered, with underline-accent
 *   - .section-subtitle: 12px, color #aaa, uppercase
 *   - .btn-success: Bootstrap green #28a745 (final hero btn style in DB)
 *   - Body font: Roboto; headings: Roboto Slab
 * ============================================================ */

:root {
  --color-brand: #28a745;
  --color-brand-strong: #1e7e34;
  --color-brand-warm: #c7b198;
  --color-brand-warm-strong: #a4906f;
  --color-nav: #596e79;
  --color-text: #4d5258;
  --color-heading: #232323;
  --color-muted: #aaaaaa;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8f6;
  --color-border: #e6e8eb;
  --color-hero-bg: #222222;

  --font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;

  --container: 1140px;
  --header-h: 70px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 991px) {
  html {
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-brand-strong);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-heading);
}

p {
  margin: 0 0 1.25em;
}

em,
i {
  font-style: italic;
  color: var(--color-brand-strong);
  font-weight: 500;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- Buttons (OnePress / Bootstrap pattern) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.85rem 1.85rem;
}

.btn-success {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.btn-success:hover {
  background-color: var(--color-brand-strong);
  border-color: #1c7430;
  color: #fff;
  transform: translateY(-1px);
}

.btn-success:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

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

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--color-nav);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.4rem 0;
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-brand-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--color-brand-warm-strong);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (warm tan with image as full-bleed background) ---------- */
.hero-slideshow-wrapper {
  width: 100%;
  position: relative;
  isolation: isolate;
  background: #dfd3c3;
  overflow: hidden;
  min-height: clamp(560px, 70vh, 780px);
  padding: clamp(6rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-slideshow-wrapper > .container,
.hero-slideshow-wrapper > .scroll-hint {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  color: var(--color-heading);
}

.hero-content-style1 {
  text-align: center;
}

.hero-content-style1 .hero-large-text {
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 2.1875rem; /* 35px */
  letter-spacing: 2px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.hero-content-style1 .hero-large-text strong {
  font-weight: 900;
}

@media (min-width: 768px) {
  .hero-content-style1 .hero-large-text {
    font-size: 2.75rem; /* 44px */
  }
}

@media (min-width: 1200px) {
  .hero-content-style1 .hero-large-text {
    font-size: 3.25rem; /* 52px */
  }
}

.hero-content-style1 .hero-small-text {
  font-size: 0.875rem; /* 14px */
  font-style: italic;
  letter-spacing: 0.4px;
  color: #111418;
  text-align: center;
  font-weight: 500;
  margin: 0 auto 1.875rem;
  max-width: 560px;
}

@media (min-width: 768px) {
  .hero-content-style1 .hero-small-text {
    font-size: 1.0625rem;
  }
}

.hero-content-style1 .hero-small-text strong {
  letter-spacing: -0.6px;
  font-weight: 600;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

@media (max-width: 767px) {
  .hero-actions .btn {
    display: inline-block;
  }
}

/* Rotating headline (replicates .js-rotating from OnePress + morphext) */
.js-rotating {
  display: inline-grid;
  vertical-align: bottom;
}

.js-rotating > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  animation: rotate-word 6s infinite;
  font-style: italic;
  font-weight: 700;
  color: var(--color-brand-warm-strong);
}

.js-rotating > span:nth-child(1) {
  animation-delay: 0s;
}
.js-rotating > span:nth-child(2) {
  animation-delay: 2s;
}
.js-rotating > span:nth-child(3) {
  animation-delay: 4s;
}

@keyframes rotate-word {
  0%,
  28%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
  4%,
  24% {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-hint {
  align-self: center;
  margin-top: 0.5rem;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(89, 110, 121, 0.55);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  z-index: 3;
}

.scroll-hint span {
  width: 3px;
  height: 7px;
  background: rgba(89, 110, 121, 0.85);
  border-radius: 2px;
  margin-top: 6px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* ---------- Section base (OnePress .section-padding) ---------- */
.section-padding {
  padding: 4.375rem 0; /* 70px 0 */
}

.onepage-section {
  position: relative;
}

/* ---------- Section title area (OnePress pattern) ---------- */
.section-title-area {
  margin-bottom: 60px;
  text-align: center;
}

.section-title-area .section-subtitle {
  color: var(--color-muted);
  font-size: 0.75rem; /* 12px */
  display: inline-block;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.section-title-area .section-title {
  font-family: var(--font-body);
  color: var(--color-heading);
  font-size: 1.875rem; /* 30px */
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  margin: 0 0 1rem;
  padding-bottom: 1.25rem;
  display: inline-block;
}

.section-title-area .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--color-brand-warm);
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-desc {
  font-size: 1.0625rem; /* ~17px */
  color: var(--color-text);
  margin-top: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-desc h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

/* ---------- About section ---------- */
.section-about {
  background: #ffffff;
}

.about-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.about-box {
  text-align: center;
  padding: 0 1rem;
}

.about-box .about-image {
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-box .about-image img {
  margin: 0 auto;
  max-height: 220px;
  width: auto;
  border-radius: 4px;
}

.about-box h3 {
  font-family: var(--font-body);
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin: 0 0 0.75rem;
}

.about-box p {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

/* ---------- Contact section ---------- */
.section-contact {
  background: var(--color-bg-alt);
}

.contact-info {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.contact-info h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.address-contact {
  display: flex;
  align-items: flex-start;
  margin: 0 0 1rem;
  gap: 0.85rem;
}

.address-contact:last-of-type {
  margin-bottom: 0;
}

.address-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: grid;
  place-items: center;
}

.address-content {
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  font-size: 0.95rem;
  padding-top: 0.25rem;
}

.address-content a {
  color: var(--color-brand-strong);
}

.contact-cta {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.contact-cta .btn {
  min-width: 180px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #dfd3c3;
  color: var(--color-nav);
  padding: 1.75rem 0;
  text-align: center;
}

.site-info {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-nav);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js-rotating > span,
  .scroll-hint span {
    animation: none;
  }
  .js-rotating > span:first-child {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }
  .primary-nav.is-open {
    max-height: 480px;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .primary-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav li:last-child a {
    border-bottom: 0;
  }
}
