/* Cube Timber Main Stylesheet - Fully Responsive */

:root {
  --ct-bg: #faf8f1;
  --ct-dark: #28271d;
  --ct-dark-btn: #3f3e29;
  --ct-primary: #919757;
  --ct-primary-hover: #767d43;
  --ct-primary-dark: #5c6234;
  --ct-light-box: #f1ede1;
  --ct-border: #e7e2d2;
  --ct-input-border: #d8d3c0;
  --ct-muted: #6b6858;
  --ct-muted-light: #a7a494;
  --ct-cream: #faf8f1;
  --ct-font-heading: 'Archivo', sans-serif;
  --ct-font-body: 'Public Sans', sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--ct-bg);
  color: var(--ct-dark);
  font-family: var(--ct-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ct-primary-hover);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ct-primary-dark);
}

::selection {
  background: var(--ct-primary);
  color: #ffffff;
}

input, select, textarea, button {
  font-family: var(--ct-font-body);
}

input::placeholder, textarea::placeholder {
  color: #9a9788;
}

/* Layout Containers */
.ct-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
  width: 100%;
}

.ct-container-form {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) clamp(16px, 4vw, 32px) clamp(48px, 8vw, 110px);
  box-sizing: border-box;
  width: 100%;
}

.ct-container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
  width: 100%;
}

/* Navigation */
.ct-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 241, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7e2d2;
}

.ct-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 16px) clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ct-logo-link {
  flex: none;
  display: flex;
  align-items: center;
}

.ct-logo-img {
  height: clamp(32px, 5vw, 40px);
  width: auto;
  object-fit: contain;
  display: block;
}

.ct-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  flex: 1;
  justify-content: center;
}

.ct-nav-link {
  font: 600 14px 'Public Sans', sans-serif;
  color: #28271d;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.ct-nav-link:hover,
.ct-nav-link.active {
  color: #767d43;
}

.ct-header-btn {
  flex: none;
  white-space: nowrap;
  background: #3f3e29;
  color: #faf8f1 !important;
  font: 600 14px 'Public Sans', sans-serif;
  padding: 11px clamp(14px, 2.5vw, 22px);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ct-header-btn:hover {
  background: #28271d;
}

.ct-mobile-toggle {
  display: none;
  flex: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  color: #28271d;
}

.ct-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #faf8f1;
  border-bottom: 1px solid #e7e2d2;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  flex-direction: column;
  padding: 8px clamp(16px, 4vw, 32px) 24px;
  z-index: 99;
}

.ct-mobile-menu.is-open {
  display: flex;
}

.ct-mobile-nav-link {
  padding: 14px 0;
  border-bottom: 1px solid #e7e2d2;
  font: 600 15px 'Public Sans', sans-serif;
  color: #28271d;
  text-decoration: none;
  display: block;
}

.ct-mobile-nav-link:hover,
.ct-mobile-nav-link.active {
  color: #767d43;
}

.ct-mobile-cta-btn {
  margin-top: 16px;
  text-align: center;
  background: #3f3e29;
  color: #faf8f1 !important;
  font: 600 15px 'Public Sans', sans-serif;
  padding: 14px 22px;
  border-radius: 2px;
  text-decoration: none;
  display: block;
}

@media (max-width: 879px) {
  .ct-desktop-nav, .ct-header-btn {
    display: none !important;
  }
  .ct-mobile-toggle {
    display: flex !important;
  }
}

/* Hero Sections */
.ct-hero-home {
  position: relative;
  min-height: clamp(480px, 76vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #12140a;
}

.ct-hero-inner-page {
  position: relative;
  min-height: clamp(400px, 60vh, 540px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #12140a;
}

.ct-hero-bg-left {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  display: block;
}

.ct-hero-bg-right-home {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  mask-image: linear-gradient(100deg, transparent 0%, transparent 8%, black 42%, black 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 8%, black 42%, black 100%);
}

.ct-hero-bg-right-buy {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 20%;
  transform: scale(1.12);
  transform-origin: left 0%;
  display: block;
  mask-image: linear-gradient(100deg, transparent 0%, transparent 8%, black 45%, black 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 8%, black 45%, black 100%);
}

.ct-hero-bg-right-sell {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
  mask-image: linear-gradient(100deg, transparent 0%, transparent 8%, black 45%, black 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 8%, black 45%, black 100%);
}

.ct-hero-overlay-home {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,16,8,.92) 0%, rgba(14,16,8,.7) 28%, rgba(14,16,8,.3) 50%, rgba(14,16,8,.04) 70%), radial-gradient(circle at 82% 10%, rgba(255,255,255,.14), transparent 42%);
}

.ct-hero-overlay-page {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,16,8,.94) 0%, rgba(14,16,8,.75) 30%, rgba(14,16,8,.3) 55%, rgba(14,16,8,.05) 75%);
}

.ct-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 60px) clamp(16px, 4vw, 32px) clamp(44px, 8vw, 96px);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.ct-hero-content-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(16px, 4vw, 32px);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.ct-badge {
  font: 700 12px 'Public Sans', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8cc9e;
  margin-bottom: 16px;
  display: block;
}

.ct-hero-heading {
  font: 800 clamp(28px, 5.2vw, 46px)/1.15 'Archivo', sans-serif;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: #faf8f1;
}

.ct-hero-heading-page {
  font: 800 clamp(24px, 4.4vw, 42px)/1.16 'Archivo', sans-serif;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: #faf8f1;
}

.ct-hero-p {
  font: 400 clamp(15px, 2.2vw, 17px)/1.6 'Public Sans', sans-serif;
  color: #e7e4d6;
  margin: 0 0 30px;
  max-width: 440px;
}

.ct-hero-p-page {
  font: 400 clamp(15px, 2.2vw, 16px)/1.6 'Public Sans', sans-serif;
  color: #e7e4d6;
  margin: 0 0 28px;
  max-width: 480px;
}

/* Hero responsive adjustments for mobile screens */
@media (max-width: 767px) {
  .ct-hero-overlay-home, .ct-hero-overlay-page {
    background: linear-gradient(180deg, rgba(14,16,8,.94) 0%, rgba(14,16,8,.86) 65%, rgba(14,16,8,.96) 100%);
  }
  .ct-hero-bg-right-home, .ct-hero-bg-right-buy, .ct-hero-bg-right-sell {
    width: 100%;
    opacity: 0.35;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Buttons */
.ct-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #919757;
  color: #1c1c12 !important;
  font: 700 14px 'Public Sans', sans-serif;
  padding: 14px 26px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.1s ease;
  min-height: 44px;
}

.ct-btn-primary:hover {
  background: #a3aa62;
}

.ct-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #3f3e29;
  color: #faf8f1 !important;
  font: 600 14px 'Public Sans', sans-serif;
  padding: 14px 26px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
  min-height: 44px;
}

.ct-btn-secondary:hover {
  background: #4f4e34;
}

@media (max-width: 479px) {
  .ct-hero-content .ct-btn-primary,
  .ct-hero-content .ct-btn-secondary,
  .ct-hero-content-page .ct-btn-primary {
    width: 100%;
  }
}

/* Highlights */
.ct-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.5vw, 32px);
  align-items: center;
  padding-top: 8px;
}

.ct-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.ct-highlight-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #6e7345;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c8cc9e;
  background: rgba(200, 204, 158, 0.04);
}

.ct-highlight-label {
  font: 700 11px/1.3 'Public Sans', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #faf8f1;
}

@media (max-width: 640px) {
  .ct-highlights-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px 10px;
  }
}

/* Route Cards Section */
.ct-route-section {
  position: relative;
  padding: clamp(48px, 8vw, 100px) 0;
  overflow: hidden;
}

.ct-route-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-route-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 241, 0.94);
}

.ct-route-title {
  font: 800 clamp(22px, 3.8vw, 32px)/1.2 'Archivo', sans-serif;
  color: #28271d;
  margin: 0 0 clamp(24px, 4vw, 40px);
}

.ct-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.ct-route-card {
  background: #f1ede1;
  border: 1px solid #e7e2d2;
  border-radius: 2px;
  padding: clamp(24px, 4vw, 36px);
}

.ct-route-card-title {
  font: 700 clamp(18px, 2.5vw, 20px) 'Archivo', sans-serif;
  color: #28271d;
  margin-bottom: 12px;
}

.ct-route-card-p {
  font: 400 15px/1.6 'Public Sans', sans-serif;
  color: #6b6858;
  margin: 0 0 24px;
}

/* Form Styles */
.ct-form-card {
  background: #ffffff;
  border: 1px solid #e7e2d2;
  border-radius: 2px;
  padding: clamp(24px, 5vw, 44px);
}

.ct-form-title {
  font: 700 22px 'Archivo', sans-serif;
  color: #28271d;
  margin-bottom: 8px;
}

.ct-form-subtitle {
  font: 400 15px/1.6 'Public Sans', sans-serif;
  color: #6b6858;
  margin: 0 0 28px;
}

.ct-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.ct-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.ct-form-group:last-child {
  margin-bottom: 0;
}

.ct-label {
  font: 600 13px 'Public Sans', sans-serif;
  color: #3a3928;
}

.ct-req {
  color: #a45a3a;
}

.ct-input, .ct-select, .ct-textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  font-family: var(--ct-font-body);
  padding: 12px 14px;
  border: 1px solid #d8d3c0;
  border-radius: 2px;
  background: #ffffff;
  color: #28271d;
  outline: none;
  transition: border-color 0.2s ease;
  min-height: 46px;
}

.ct-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.ct-input:focus, .ct-select:focus, .ct-textarea:focus {
  border-color: #919757;
}

.ct-phone-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.ct-phone-code-select {
  width: 140px;
  flex: none;
  min-width: 130px;
  max-width: 160px;
  font-size: 14px;
  padding: 12px 10px;
}

@media (max-width: 480px) {
  .ct-phone-row {
    flex-direction: column;
    gap: 8px;
  }
  .ct-phone-code-select {
    width: 100%;
    max-width: 100%;
  }
}

.ct-file-input {
  width: 100%;
  box-sizing: border-box;
  font: 400 14px 'Public Sans', sans-serif;
  padding: 10px 0;
  color: #3a3928;
}

.ct-toggle-btn-group {
  display: flex;
  gap: 12px;
}

.ct-toggle-btn {
  cursor: pointer;
  padding: 11px 24px;
  border-radius: 2px;
  font: 600 14px 'Public Sans', sans-serif;
  background: #faf8f1;
  color: #3a3928;
  border: 1px solid #d8d3c0;
  transition: all 0.2s ease;
  min-height: 44px;
  flex: 1;
  max-width: 120px;
  text-align: center;
}

.ct-toggle-btn.is-active {
  background: #3f3e29;
  color: #faf8f1;
  border-color: #3f3e29;
}

.ct-submit-btn {
  cursor: pointer;
  text-align: center;
  background: #919757;
  color: #28271d;
  font: 700 14px 'Public Sans', sans-serif;
  padding: 15px 30px;
  border-radius: 2px;
  border: none;
  width: 100%;
  box-sizing: border-box;
  display: inline-block;
  transition: opacity 0.2s ease, background 0.2s ease;
  min-height: 48px;
}

.ct-submit-btn:hover {
  opacity: 0.9;
}

.ct-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success Card */
.ct-success-card {
  background: #f1ede1;
  border: 1px solid #e7e2d2;
  border-radius: 2px;
  padding: clamp(36px, 6vw, 56px) clamp(20px, 4vw, 40px);
  text-align: center;
}

.ct-success-title {
  font: 800 clamp(20px, 3.5vw, 24px) 'Archivo', sans-serif;
  color: #28271d;
  margin-bottom: 12px;
}

.ct-success-p {
  font: 400 16px/1.6 'Public Sans', sans-serif;
  color: #6b6858;
  margin: 0 0 24px;
}

/* Sticky Mobile CTA */
.ct-sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
  text-align: center;
  background: #3f3e29;
  color: #faf8f1 !important;
  font: 700 14px 'Public Sans', sans-serif;
  padding: 14px 20px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

/* Modal Popup */
.ct-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 20, 10, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ct-modal-backdrop.is-open {
  display: flex;
}

.ct-modal-box {
  position: relative;
  background: #faf8f1;
  border: 1px solid #e7e2d2;
  border-radius: 2px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 40px);
  box-sizing: border-box;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.ct-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6858;
  background: none;
  border: none;
  padding: 0;
}

.ct-modal-close:hover {
  color: #28271d;
}

/* Footer */
.ct-footer {
  background: #28271d;
  color: #e7e4d6;
  padding: clamp(44px, 7vw, 80px) 0 36px;
}

.ct-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(28px, 4vw, 40px);
}

.ct-footer-brand-title {
  font: 800 22px 'Archivo', sans-serif;
  color: #faf8f1;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.ct-footer-brand-p {
  font: 400 15px/1.6 'Public Sans', sans-serif;
  color: #a7a494;
  max-width: 320px;
  margin: 0;
}

.ct-footer-col-title {
  font: 700 13px 'Public Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f8c7a;
  margin-bottom: 16px;
}

.ct-footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct-footer-nav-link {
  font: 500 15px 'Public Sans', sans-serif;
  color: #e7e4d6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ct-footer-nav-link:hover {
  color: #c8cc9e;
}

.ct-footer-email {
  display: inline-block;
  font: 600 15px 'Public Sans', sans-serif;
  color: #c8cc9e;
  margin-bottom: 12px;
  text-decoration: none;
}

.ct-footer-bottom {
  max-width: 1200px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 24px clamp(16px, 4vw, 32px) 0;
  border-top: 1px solid #3a3928;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.ct-footer-legal-links {
  display: flex;
  gap: 20px;
}

.ct-footer-legal-link {
  font: 400 13px 'Public Sans', sans-serif;
  color: #a7a494;
  text-decoration: none;
}

.ct-footer-legal-link:hover {
  color: #e7e4d6;
}

.ct-footer-copyright {
  font: 400 13px 'Public Sans', sans-serif;
  color: #7a7768;
}

/* Page & Article Fallbacks */
.ct-standard-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 32px);
  font: 400 16px/1.7 'Public Sans', sans-serif;
  color: #3a3928;
}

.ct-standard-page-content h1,
.ct-standard-page-content h2,
.ct-standard-page-content h3 {
  font-family: 'Archivo', sans-serif;
  color: #28271d;
}

.ct-form-status {
  font-size: 14px;
}
.ct-form-status.error {
  background: #fdf0ed;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-size: 14px;
}
.ct-form-status.success {
  background: #eafaf1;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-size: 14px;
}
