/* global.css – professional, refined, and polished */

/* ----- reset & base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f5f3f0;
  --color-surface: #ffffff;
  --color-primary: #9d7a4b;
  --color-primary-dark: #7f623a;
  --color-primary-light: #d4b48c;
  --color-secondary: #1f2a36;
  --color-accent: #b8956a;
  --color-text: #1a1f26;
  --color-text-light: #3e4a56;
  --color-muted: #6f7b85;
  --color-border: #e4dfd8;
  --color-shadow: rgba(26, 31, 38, 0.06);
  --shadow-card: 0 8px 30px var(--color-shadow), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 16px 48px rgba(26, 31, 38, 0.10), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 24px 64px rgba(26, 31, 38, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

a:hover {
  color: var(--color-primary);
}

/* ----- container ----- */
.site-header,
.hero,
.section,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ----- header / nav (more refined) ----- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 0.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  background: rgba(245, 243, 240, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: -0.03em;
}

.brand strong {
  font-weight: 700;
  color: var(--color-secondary);
}

.brand small {
  font-size: 0.6rem;
  font-weight: 500;
  display: block;
  letter-spacing: 0.4px;
  color: var(--color-muted);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-light);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a:hover {
  color: var(--color-secondary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4.5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ----- hero (more elevated) ----- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
  position: relative;
}

.hero-content {
  grid-column: 1 / 2;
  padding-top: 0.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: rgba(157, 122, 75, 0.08);
  padding: 0.2rem 0.9rem;
  border-radius: var(--radius-full);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1.25rem;
  color: var(--color-secondary);
}

.hero-copy {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 36rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  text-align: center;
  gap: 0.4rem;
  min-height: 48px;
}

.button.primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(157, 122, 75, 0.25);
}

.button.primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(157, 122, 75, 0.3);
}

.button.secondary {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-border);
}

.button.secondary:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.button.secondary.light {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.button.secondary.light:hover {
  background: #fff;
  color: var(--color-secondary);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ----- hero panel (more premium) ----- */
.hero-panel {
  grid-column: 2 / 3;
  background: var(--color-surface);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(26, 31, 38, 0.12);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.panel-topline strong {
  color: var(--color-secondary);
  text-transform: none;
  font-weight: 600;
}

.hero-panel h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
}

.hero-panel > p {
  color: var(--color-text-light);
  margin: 0.15rem 0 1.4rem;
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.contact-list li:hover {
  color: var(--color-secondary);
}

.contact-list a {
  color: inherit;
}

.contact-list a:hover {
  color: var(--color-primary);
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.8;
}

.icon.phone {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.icon.mail {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.icon.office {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21v-9h14v9'/%3E%3Cpath d='M7 9l5-3 5 3'/%3E%3Crect x='9' y='12' width='6' height='6'/%3E%3C/svg%3E");
}

.icon.chat {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
}

.hero-visual {
  display: none;
}

/* ----- section common (more breathing) ----- */
.section {
  padding: 4.5rem 0 3.5rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0.4rem 0 0.7rem;
  color: var(--color-secondary);
}

.section-heading p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ----- services grid (more refined) ----- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-surface);
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.service-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: -0.03em;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.4rem 0 0.6rem;
  color: var(--color-secondary);
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ----- process (more structured) ----- */
.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.process-item {
  background: var(--color-surface);
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--color-primary);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.process-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.process-item span {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.process-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ----- representative (more premium dark) ----- */
.representative {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 3.5rem 3rem;
  color: #fff;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-elevated);
  margin: auto;
}

.rep-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.rep-card .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary-light);
  padding: 0.2rem 1rem;
  border-radius: var(--radius-full);
}

.rep-card h2 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0.4rem 0 0.5rem;
  color: #fff;
}

.rep-card > div > p {
  opacity: 0.8;
  max-width: 400px;
  line-height: 1.7;
  color: #e8e4de;
}

.rep-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rep-details a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.rep-details a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.rep-details .icon {
  background-color: #fff;
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* ----- contact (elevated) ----- */
.contact-card {
  background: var(--color-surface);
  padding: 3.5rem 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.contact-card .eyebrow {
  background: rgba(157, 122, 75, 0.08);
}

.contact-card h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0.4rem 0 0.8rem;
  color: var(--color-secondary);
}

.contact-card > p {
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-actions .button.primary {
  background: var(--color-primary);
  box-shadow: 0 4px 16px rgba(157, 122, 75, 0.25);
}

.contact-actions .button.primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 8px 28px rgba(157, 122, 75, 0.3);
}

#popupMessage {
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
  min-height: 2rem;
  font-size: 0.95rem;
}

/* ----- footer (clean) ----- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
  margin-top: 3.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  background: #d6cec5;
    padding: 20px;
}

.site-footer strong {
  color: var(--color-secondary);
  font-weight: 600;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ----- reveal animations (smoother) ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- responsive (professional) ----- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-content {
    grid-column: 1;
  }
  .hero-panel {
    grid-column: 1;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .rep-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .rep-details {
    width: 100%;
  }
}

@media (max-width: 700px) {
  body {
    padding: 0 1rem;
  }
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
    padding: 1.2rem 0 0.3rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.6rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-header {
    flex-wrap: wrap;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section-heading h2 {
    font-size: 1.9rem;
  }
  .representative {
    padding: 2.2rem 1.5rem;
  }
  .contact-card {
    padding: 2.2rem 1.5rem;
  }
  .contact-card h2 {
    font-size: 1.7rem;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .process-list {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
  .site-footer > div {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.15rem;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .rep-details a {
    width: 100%;
    justify-content: center;
  }
  .contact-actions .button {
    width: 100%;
    justify-content: center;
  }
  .hero-panel {
    padding: 1.5rem;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
}