/* Coby Real Estate shared design system.
   Generated once from the markup that used to be copy-pasted into every page.
   Edit THIS file, not the pages. 116 rules.
   Page-specific CSS stays inline on its own page, after this file loads. */

/* fonts loaded via <link> in head */

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body { font-family: 'DM Sans', sans-serif; background: #F5F3EE; color: #1C1C1A; overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }

:root {
  --ink:      #1C1C1A;
  --dark:     #2A2A28;
  --mid:      #5A5955;
  --stone:    #8A8880;
  --rule:     #D8D5CE;
  --paper:    #F5F3EE;
  --white:    #FFFFFF;
  --teal:     #3A8E8C;
  --teal-dk:  #2A6E6C;
  --orange:   #C96B2E;
  --serif:    'EB Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 2.5rem;
  background: #F5F3EE; border-bottom: 1px solid #D8D5CE;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }

.nav-name {
  font-family: 'EB Garamond', Georgia, serif; font-size: 18px; color: #1C1C1A;
  letter-spacing: 0.01em; line-height: 1;
}

.nav-name span { font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 0.5rem; }

.nav-links a {
  font-size: 13px; color: #5A5955; padding: 6px 12px;
  border-radius: 4px; transition: color 0.15s;
}

.nav-links a:hover { color: #1C1C1A; }

.nav-links a.nav-contact {
  font-size: 13px; font-weight: 500; color: #FFFFFF;
  background: #3A8E8C; padding: 8px 18px; border-radius: 5px;
  margin-left: 8px; transition: background 0.15s;
}

.nav-links a.nav-contact:hover { background: #2A6E6C; color: #FFFFFF; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 14px; margin: -10px;
}

.hamburger span { display: block; width: 20px; height: 1.5px; background: #1C1C1A; }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: #F5F3EE; border-bottom: 1px solid #D8D5CE;
  z-index: 99; padding: 1rem 0;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block; padding: 0.9rem 2.5rem; font-size: 16px;
  color: #1C1C1A; border-bottom: 1px solid #D8D5CE;
}

.mobile-menu a:last-child { border: none; color: #3A8E8C; font-weight: 500; }

/* ─── PAGE SYSTEM ─── */
.page { display: none; padding-top: 72px; }

.page.active { display: block; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }

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

.fade-up   { opacity: 0; transform: translateY(20px); animation: fu 0.75s ease 0.05s forwards; }

.fade-up-2 { opacity: 0; transform: translateY(20px); animation: fu 0.75s ease 0.2s  forwards; }

.fade-up-3 { opacity: 0; transform: translateY(20px); animation: fu 0.75s ease 0.35s forwards; }

.fade-up-4 { opacity: 0; transform: translateY(20px); animation: fu 0.75s ease 0.5s  forwards; }

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

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px;
  font-weight: 500; padding: 12px 26px; border-radius: 5px;
  border: none; cursor: pointer; transition: all 0.15s;
}

.btn-teal  { background: #3A8E8C; color: #FFFFFF; }

.btn-teal:hover { background: #2A6E6C; color: #FFFFFF; }

.btn-outline { background: transparent; color: #1C1C1A; border: 1px solid #D8D5CE; }

.btn-outline:hover { border-color: #3A8E8C; color: #3A8E8C; }

.btn-dark  { background: #1C1C1A; color: #F5F3EE; }

.btn-dark:hover { background: #2A2A28; }

/* ─── SECTIONS ─── */
.section { max-width: 1080px; margin: 0 auto; padding: 5rem 2.5rem; }

.section-sm { max-width: 680px; margin: 0 auto; padding: 5rem 2.5rem; }

.eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: #3A8E8C; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}

.eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: #3A8E8C; }

h1, h2, h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; line-height: 1.05; }

.rule { height: 1px; background: #D8D5CE; }

.home-hero-left {
  padding: 5rem 4rem 5rem 5rem;
  display: flex; flex-direction: column; justify-content: center;
}

.home-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: #F5F3EE; line-height: 0.98;
  margin-bottom: 1.75rem;
}

.home-hero h1 em { font-style: italic; color: #3A8E8C; }

.home-hero p {
  font-size: 16px; color: #8A8880; line-height: 1.75;
  max-width: 440px; margin-bottom: 2.5rem; font-weight: 300;
}

.home-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.home-hero-right {
  height: calc(100vh - 60px); position: relative; overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.home-hero-right img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
}

.home-hero-right::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, #1C1C1A 0%, transparent 30%);
}

.hero-baseline {
  display: flex; gap: 3rem; margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap;
}

.hero-stat-val { font-family: 'EB Garamond', Georgia, serif; font-size: 28px; color: #F5F3EE; }

.hero-stat-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #5A5955; margin-top: 3px; }

/* ─── SERVICES ─── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: #D8D5CE; }

.service-card {
  background: #FFFFFF; padding: 2.5rem;
  cursor: pointer; transition: background 0.15s;
  border: none; text-align: left; width: 100%;
}

.service-card:hover { background: #F5F3EE; }

.service-num { font-family: 'EB Garamond', Georgia, serif; font-size: 48px; color: #D8D5CE; line-height: 1; margin-bottom: 1.25rem; }

.service-title { font-family: 'EB Garamond', Georgia, serif; font-size: 26px; color: #1C1C1A; margin-bottom: 0.75rem; }

.service-body { font-size: 14px; color: #5A5955; line-height: 1.7; margin-bottom: 1.5rem; }

.service-link { font-size: 13px; color: #3A8E8C; font-weight: 500; }

/* ─── ABOUT STRIP ─── */
.about-strip { background: #F5F3EE; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.about-photo { position: relative; }

.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 15%; border-radius: 2px; }

.about-photo-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, #3A8E8C, #C96B2E);
}

.about-copy h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); color: #1C1C1A; margin-bottom: 1.25rem; }

.about-copy p { font-size: 15px; color: #5A5955; line-height: 1.8; margin-bottom: 1rem; }

.about-credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }

.credential {
  font-size: 11px; color: #5A5955; padding: 5px 14px;
  border: 1px solid #D8D5CE; border-radius: 20px; background: #FFFFFF;
}

/* ─── DARK STRIP ─── */
.dark-strip { background: #1C1C1A; }

.dark-strip h2 { color: #F5F3EE; }

.dark-strip p { color: #8A8880; }

/* ─── FORMS ─── */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }

.form-field label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #5A5955; }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: #3A8E8C; }

.form-field textarea { resize: vertical; min-height: 100px; }

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-success { display: none; padding: 1rem; margin-top: 1rem; background: #E8F4F3; border-left: 3px solid #3A8E8C; color: #1C1C1A; font-size: 14px; border-radius: 2px; }

.form-submit {
  width: 100%; padding: 13px; background: #1C1C1A; color: #F5F3EE;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; font-weight: 500;
  border: none; border-radius: 4px; cursor: pointer;
  transition: background 0.15s; margin-top: 0.5rem;
}

.form-submit:hover { background: #2A2A28; }

/* ─── PAGE HERO (inner) ─── */
.page-hero { background: #1C1C1A; padding: 7rem 2.5rem 4rem; }

.page-hero-inner { max-width: 1080px; margin: 0 auto; }

.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #F5F3EE; margin-bottom: 1rem; }

.page-hero p { font-size: 16px; color: #8A8880; max-width: 520px; line-height: 1.7; font-weight: 300; }

/* ─── BLOG ─── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 0.5rem; }

.blog-card {
  background: #FFFFFF; border: 1px solid #D8D5CE; border-radius: 2px;
  cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}

.blog-card:hover { border-color: #3A8E8C; transform: translateY(-2px); }

.blog-card-top { height: 4px; }

.blog-card-body { padding: 2rem; }

.blog-tag { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #8A8880; margin-bottom: 0.75rem; }

.blog-title { font-family: 'EB Garamond', Georgia, serif; font-size: 19px; color: #1C1C1A; line-height: 1.2; margin-bottom: 0.75rem; }

.blog-excerpt { font-size: 13px; color: #5A5955; line-height: 1.65; }

.blog-date { font-size: 11px; color: #8A8880; margin-top: 1rem; }

/* ─── FOOTER ─── */
footer { background: #1C1C1A; padding: 4rem 2.5rem 2rem; }

.footer-inner { max-width: 1080px; margin: 0 auto; }

.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }

.footer-brand-name { font-family: 'EB Garamond', Georgia, serif; font-size: 20px; color: #F5F3EE; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 12px; }

.footer-brand-name .ftext em { font-style: italic; font-family: 'EB Garamond', Georgia, serif; }

.footer-brand p { font-size: 13px; color: #8A8880; line-height: 1.7; max-width: 280px; }

.footer-col h4 { font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #8A8880; margin-bottom: 1rem; }

.footer-col li { list-style: none; margin-bottom: 8px; }

.footer-col li a { font-size: 13px; color: #6A6865; transition: color 0.15s; }

.footer-col li a:hover { color: #F5F3EE; }

.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

.footer-bottom p { font-size: 11px; color: #8A8880; }

/* ─── CALCULATOR ─── */
.calc-box { background: #FFFFFF; border: 1px solid #D8D5CE; border-radius: 2px; padding: 2rem; }

.calc-result-box { background: #1C1C1A; border-radius: 2px; padding: 1.5rem; text-align: center; margin-top: 1.5rem; }

.calc-total { font-family: 'EB Garamond', Georgia, serif; font-size: 48px; color: #F5F3EE; line-height: 1; }

.calc-rows { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0; }

.calc-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 13px; }

.calc-row:last-child { border: none; }

.calc-row span:first-child { color: #8A8880; }

.calc-row span:last-child { color: #F5F3EE; font-weight: 500; }

/* Tablet tweaks */
@media (min-width: 769px) and (max-width: 1024px) {
  .section    { padding: 4rem 2rem !important; }
  .section-sm { padding: 4rem 2rem !important; }
  .home-hero-left { padding: 4rem 3rem !important; }
  .home-hero-right { min-width: 340px; }
  .blog-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr !important; gap: 2.5rem !important; }
  #page-about .section > div[style*="grid-template-columns:360px"] {
    grid-template-columns: 280px 1fr !important;
  }
}

/* Make sure hamburger never shows on desktop */
@media (min-width: 769px) {
  .hamburger { display: none !important; }
}
