/* ================================================
   SAMAYA CONSTRUCTION — Warm Architectural Theme
   Typography: Fraunces + Plus Jakarta Sans
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --copper:       #B87333;
  --copper-lt:    #D4A574;
  --copper-dk:    #8B5A2B;
  --sage:         #5C7A6B;
  --sage-lt:      #8FAF9C;
  --slate:        #3D4F5F;
  --slate-lt:     #5A6E80;
  --ink:          #2A2520;
  --ink-soft:     #4A433C;
  --muted:        #7A7268;
  --border:       #E0D8CC;
  --border-lt:    #EDE8E0;
  --white:        #FFFFFF;
  --linen:        #FAF7F2;
  --sand:         #F0EBE3;
  --mist:         #E8F0F4;
  --stone:        #E5DDD2;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-sm:  0 2px 8px rgba(42, 37, 32, 0.06);
  --shadow:     0 8px 24px rgba(42, 37, 32, 0.08);
  --shadow-lg:  0 20px 48px rgba(42, 37, 32, 0.12);
  --shadow-copper: 0 8px 28px rgba(184, 115, 51, 0.22);
  --trans:      all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast: all 0.2s ease;

  --gradient-copper: linear-gradient(135deg, #C98B45 0%, #8B5A2B 100%);
  --gradient-warm:   linear-gradient(160deg, #FAF7F2 0%, #F0EBE3 50%, #E8F0F4 100%);
  --gradient-hero:   linear-gradient(135deg, rgba(250,247,242,0.97) 0%, rgba(240,235,227,0.92) 60%, rgba(232,240,244,0.88) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--linen);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--trans-fast); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--copper-lt); border-radius: 4px; }

h1, h2, h3, h4, h5 { font-family: var(--ff-display); font-weight: 600; line-height: 1.15; color: var(--ink); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section-sm { padding: 72px 0; }
.section-lg { padding: 120px 0; }

.text-copper { color: var(--copper); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--copper); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--copper); border-radius: 1px; }
.eyebrow-center { justify-content: center; }

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--copper); }
.section-subtitle {
  font-size: 16px; color: var(--muted); max-width: 560px;
  line-height: 1.8; margin-top: 16px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 15px 30px; border: 2px solid transparent; border-radius: 50px;
  cursor: pointer; transition: var(--trans); white-space: nowrap;
}
.btn-copper { background: var(--gradient-copper); color: var(--white); box-shadow: var(--shadow-copper); }
.btn-copper:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(184, 115, 51, 0.35); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--copper); color: var(--copper); background: rgba(184, 115, 51, 0.06); }
.btn-outline-copper { background: transparent; color: var(--copper); border-color: var(--copper); }
.btn-outline-copper:hover { background: var(--gradient-copper); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-white:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-slate { background: var(--slate); color: var(--white); }
.btn-slate:hover { background: var(--slate-lt); transform: translateY(-2px); }

/* Page hero — light, warm */
.page-hero {
  padding: 148px 0 72px;
  background: var(--gradient-warm);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(184, 115, 51, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(92, 122, 107, 0.07) 0%, transparent 40%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 17px; color: var(--muted); max-width: 580px; line-height: 1.8;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--copper); }
.breadcrumb a:hover { color: var(--copper-dk); }
.breadcrumb span.sep { color: var(--border); }

/* Navbar */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: var(--trans);
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border-lt);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: 1240px; margin: 0 auto; padding: 0 28px;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 auto; min-width: 0; max-width: 100%;
  overflow: hidden;
}
.nav-logo--image { flex: 0 1 auto; }
.nav-logo-img {
  height: auto;
  max-height: 44px;
  width: auto;
  max-width: min(220px, 100%);
  object-fit: contain;
  object-position: left center;
  display: block;
  border-radius: 0;
}
.nav-logo-text { min-width: 0; }
.nav-logo-name {
  font-family: var(--ff-display); font-size: 18px; font-weight: 700; line-height: 1.1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.loader-logo-img {
  height: auto;
  max-height: 52px;
  max-width: min(200px, 85vw);
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
  border-radius: 0;
}
.nav-logo-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-copper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 22px; font-weight: 700; color: var(--white);
  box-shadow: var(--shadow-copper);
}
.nav-logo-sub { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: 6px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--copper); border-radius: 1px; transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--copper); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 11px 24px; border-radius: 50px;
  background: var(--gradient-copper); color: var(--white);
  box-shadow: var(--shadow-copper); transition: var(--trans);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(184, 115, 51, 0.35); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm); color: var(--ink);
  flex: 0 0 auto; margin-left: auto;
}
.hamburger span { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: var(--trans); }
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 14px; }
.hamburger span:nth-child(3) { width: 18px; }

.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(250, 247, 242, 0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--ff-display); font-size: 28px; font-weight: 600;
  color: var(--ink-soft); transition: var(--trans);
}
.nav-mobile a:hover { color: var(--copper); }
.nav-mobile-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sand); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); font-size: 18px; transition: var(--trans);
}
.nav-mobile-close:hover { background: var(--copper); color: var(--white); }

/* Footer */
#footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.75);
}
.footer-top {
  padding: 72px 0; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px;
}
.footer-brand-name { font-family: var(--ff-display); font-size: 22px; font-weight: 700; color: var(--white); }
.footer-brand-sub { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-lt); margin: 6px 0 18px; }
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 24px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.7); transition: var(--trans);
}
.footer-social a:hover { background: var(--copper); border-color: var(--copper); color: var(--white); transform: translateY(-2px); }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--copper-lt); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.footer-contact-item i { color: var(--copper-lt); width: 16px; margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--copper-lt); }
.footer-bottom a:hover { color: var(--white); }

#btt {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--copper); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0; visibility: hidden; transition: var(--trans); cursor: pointer;
  box-shadow: var(--shadow-copper);
}
#btt.show { opacity: 1; visibility: visible; }
#btt:hover { background: var(--copper-dk); transform: translateY(-3px); }

/* Forms */
.form-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--border);
  background: var(--white); font-size: 15px; color: var(--ink);
  border-radius: var(--radius-sm); outline: none; transition: var(--trans);
}
.form-input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.12); }
textarea.form-input { resize: vertical; min-height: 130px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.alert { padding: 14px 18px; margin-bottom: 20px; font-size: 14px; border-radius: var(--radius-sm); border-left: 4px solid; }
.alert-success { background: #EDF7F0; border-color: var(--sage); color: #2D5A3D; }
.alert-error { background: #FDF0ED; border-color: #C45C4A; color: #8B3A2E; }

/* Loader */
#loader {
  position: fixed; inset: 0; background: var(--linen); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  animation: loaderHide 1.4s ease forwards;
}
@keyframes loaderHide {
  0%, 70% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader-content { text-align: center; }
.loader-mark {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-copper); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 26px; font-weight: 700;
  margin: 0 auto 16px; box-shadow: var(--shadow-copper);
}
.loader-name { font-family: var(--ff-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.loader-line { width: 160px; height: 3px; background: var(--border); margin: 14px auto 0; border-radius: 2px; overflow: hidden; }
.loader-progress { height: 100%; background: var(--copper); animation: loadbar 1.2s ease forwards; border-radius: 2px; }
@keyframes loadbar { from { width: 0; } to { width: 100%; } }

/* Reveal animations */
[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* CTA band */
.cta-band {
  background: var(--mist);
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  padding: 80px 0; text-align: center;
}
.cta-band-dark {
  background: var(--slate);
  color: rgba(255,255,255,0.8);
  padding: 80px 0;
}
.cta-band-dark .section-title { color: var(--white); }
.cta-band-dark .section-subtitle { color: rgba(255,255,255,0.65); margin: 16px auto 0; }

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-logo--image { max-width: calc(100% - 52px); }
  .nav-logo-img {
    max-height: 40px;
    max-width: min(200px, calc(100vw - 80px));
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-lg { padding: 88px 0; }
  .page-hero { padding: 120px 0 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  #navbar .nav-inner { height: 68px; }
  .nav-logo-img {
    max-height: 38px;
    max-width: min(170px, calc(100vw - 72px));
  }
  .nav-logo-name { font-size: 16px; }
  .nav-logo-mark { width: 40px; height: 40px; font-size: 20px; }
  .loader-logo-img { max-height: 46px; max-width: min(170px, 78vw); }
  .loader-name { font-size: 16px; padding: 0 24px; text-align: center; line-height: 1.35; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 12px; }
  .nav-logo--image { max-width: calc(100% - 44px); }
  .nav-logo-img {
    max-height: 34px;
    max-width: calc(100vw - 60px);
  }
  .loader-logo-img { max-height: 40px; max-width: 70vw; }
}
