/* ===== Fonts (self-hosted) ===== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/playfair-700.woff2') format('woff2'); }

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #2d3748; line-height: 1.65; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: #1a2b4a; line-height: 1.2; }
h4, h5 { color: #1a2b4a; line-height: 1.3; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

section { padding: 84px 0; }
.section-kicker { display: inline-block; color: #0d7377; font-weight: 700; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 2.3rem; margin-bottom: 14px; }
.section-sub { color: #64748b; max-width: 760px; font-size: 1.08rem; margin-bottom: 44px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 14px 32px; border-radius: 6px; font-weight: 600; font-size: 1rem; transition: all .3s ease; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: #e8a838; color: #fff; border-color: #e8a838; }
.btn-primary:hover { background: #d4952e; border-color: #d4952e; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-teal { background: #0d7377; color: #fff; border-color: #0d7377; }
.btn-teal:hover { background: #0a5a5d; border-color: #0a5a5d; }

/* ===== Header ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); box-shadow: 0 1px 12px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { height: 42px; width: auto; }
.logo-tag { font-size: .72rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #0d7377; border-left: 2px solid #cbd5e1; padding-left: 12px; line-height: 1.3; }
.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: .95rem; font-weight: 600; color: #334155; transition: color .2s; }
.main-nav a:hover { color: #0d7377; }
.main-nav .nav-cta a { background: #0d7377; color: #fff; padding: 9px 20px; border-radius: 6px; box-shadow: 0 2px 8px rgba(13,115,119,.35); transition: all .3s; white-space: nowrap; }
.main-nav .nav-cta a:hover { background: #0a5a5d; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #1a2b4a; margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero { padding: 0; margin-top: 68px; background: linear-gradient(135deg, #0a3d40 0%, #0d7377 55%, #14919b 100%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; min-height: 560px; padding: 72px 24px; }
.hero h1 { color: #fff; font-size: 3.2rem; margin: 18px 0 20px; }
.hero-kicker { color: #ffd98a; font-weight: 700; font-size: .85rem; letter-spacing: 2.5px; text-transform: uppercase; }
.hero-lede { font-size: 1.22rem; color: #d7f0f0; max-width: 540px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media img { border-radius: 14px; box-shadow: 0 22px 60px rgba(0,0,0,.35); width: 100%; object-fit: cover; }
.hero-stats { display: flex; gap: 40px; margin-top: 42px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.65rem; font-weight: 700; color: #fff; }
.hero-stat span { font-size: .88rem; color: #b8dedf; }

/* ===== Pillars ===== */
.pillars { background: #f8fafb; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pillar { background: #fff; border: 1px solid #e6edf0; border-radius: 12px; padding: 30px 26px; box-shadow: 0 3px 14px rgba(15,52,54,.05); transition: transform .25s, box-shadow .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(15,52,54,.1); }
.pillar .icon { width: 52px; height: 52px; border-radius: 50%; background: #e6f4f4; color: #0d7377; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pillar h3 { font-family: 'Inter', sans-serif; font-size: 1.06rem; margin-bottom: 8px; }
.pillar p { font-size: .95rem; color: #5b6b7b; }

/* ===== Markets (residential / commercial) ===== */
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.market-card { border-radius: 14px; overflow: hidden; border: 1px solid #e6edf0; background: #fff; box-shadow: 0 4px 18px rgba(15,52,54,.06); }
.market-card img { height: 300px; width: 100%; object-fit: cover; }
.market-body { padding: 28px 30px 32px; }
.market-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.market-body ul { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.market-body li { background: #e6f4f4; color: #0a5a5d; font-weight: 600; font-size: .87rem; padding: 6px 14px; border-radius: 100px; }

/* ===== Framing comparison ===== */
.framing { background: #f8fafb; }
.frame-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.frame-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e6edf0; box-shadow: 0 4px 18px rgba(15,52,54,.06); }
.frame-card img { height: 280px; width: 100%; object-fit: cover; }
.frame-body { padding: 26px 30px 30px; }
.frame-body h3 { font-size: 1.35rem; margin-bottom: 12px; }
.check-list li { padding-left: 28px; position: relative; margin: 8px 0; color: #44566b; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: #0d7377 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="white"><path d="M6.6 11.6 3.4 8.4l1.2-1.2 2 2 4.8-4.8 1.2 1.2z"/></svg>') center/12px no-repeat; }

/* ===== System (technical accordion-ish alternating rows) ===== */
.sys-row { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 38px 0; border-top: 1px solid #eef2f5; }
.sys-row:first-of-type { border-top: 0; }
.sys-row img { border-radius: 12px; box-shadow: 0 8px 30px rgba(15,52,54,.12); width: 100%; }
.sys-row h3 { font-size: 1.55rem; margin-bottom: 14px; }
.sys-row .tag { display: inline-block; background: #e6f4f4; color: #0a5a5d; font-weight: 700; font-size: .78rem; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }
.sys-row.flip .sys-media { order: 2; }

/* ===== Finishes / galleries ===== */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 16px rgba(15,52,54,.08); }
.tile img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.045); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(10,30,32,.82)); color: #fff; font-weight: 600; font-size: .95rem; }
.tile-grid.four { grid-template-columns: repeat(4, 1fr); }
.tile-grid.four img { height: 190px; }
.tile-grid.two { grid-template-columns: repeat(2, 1fr); }
.tile-grid.two img { height: 260px; }

/* ===== Homes ===== */
.homes { background: #f8fafb; }
.home-card { background: #fff; border-radius: 16px; border: 1px solid #e6edf0; box-shadow: 0 5px 22px rgba(15,52,54,.07); overflow: hidden; margin-bottom: 34px; display: grid; grid-template-columns: 1.05fr .95fr; }
.home-card .home-photo { min-height: 340px; background-size: cover; background-position: center; }
.home-info { padding: 34px 38px; display: flex; flex-direction: column; }
.home-info .size { color: #0d7377; font-weight: 700; font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; }
.home-info h3 { font-size: 1.6rem; margin: 6px 0 14px; }
.home-info .check-list { margin-bottom: 18px; }
.home-plan { margin-top: auto; }
.home-plan img { max-height: 210px; width: auto; max-width: 100%; border: 1px solid #eef2f5; border-radius: 8px; padding: 8px; background: #fff; }
.home-card.flip .home-photo { order: 2; }

/* ===== Styles gallery ===== */
.styles-note { color: #64748b; font-size: .95rem; margin-top: 18px; }

/* ===== Compliance ===== */
.compliance { background: linear-gradient(135deg, #0a3d40, #0d7377); color: #e8f6f6; }
.compliance .section-title, .compliance h3 { color: #fff; }
.compliance .section-kicker { color: #ffd98a; }
.comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; max-width: 900px; }
.comp-item { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 20px 22px; border-radius: 12px; }
.comp-item .icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #ffd98a; }
.comp-item b { display: block; color: #fff; margin-bottom: 2px; }
.comp-item.comp-wide { grid-column: 1 / -1; border-color: rgba(255,217,138,.45); background: rgba(255,217,138,.1); }
.comp-item span { font-size: .93rem; color: #cfeaea; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; margin: 20px 0; font-size: 1.06rem; }
.contact-list .icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: #e6f4f4; color: #0d7377; display: flex; align-items: center; justify-content: center; }
.contact-list a:hover { color: #0d7377; }
.contact-media img { border-radius: 14px; box-shadow: 0 14px 44px rgba(15,52,54,.16); }

/* ===== Contact form ===== */
.contact-form { background: #fff; border: 1px solid #e6edf0; border-radius: 16px; box-shadow: 0 8px 30px rgba(15,52,54,.1); padding: 34px 32px; }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: #334155; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-family: inherit; font-size: .98rem; color: #2d3748; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #0d7377; box-shadow: 0 0 0 3px rgba(13,115,119,.15);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .btn { width: 100%; }
.form-status { display: none; padding: 16px 18px; border-radius: 10px; margin-bottom: 18px; font-size: .97rem; }
.form-status.success { display: block; background: #e6f6ec; border: 1px solid #9fd8b4; color: #1c6b3c; }
.form-status.error { display: block; background: #fdeaea; border: 1px solid #f2b8b8; color: #9b2c2c; }
.recaptcha-note { font-size: .78rem; color: #8a99a8; margin-top: 12px; line-height: 1.5; }
.recaptcha-note a { color: #0d7377; text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: #10222c; color: #9fb3bd; padding: 44px 0 34px; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-inner a { color: #cfe3ea; font-weight: 600; }
.footer-inner a:hover { color: #fff; }

/* ===== SVG icon default ===== */
.icon svg { width: 24px; height: 24px; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 860px) {
  section { padding: 60px 0; }
  .hero-grid, .market-grid, .frame-grid, .sys-row, .contact-grid, .comp-grid { grid-template-columns: 1fr; }
  .sys-row.flip .sys-media { order: 0; }
  .home-card, .home-card.flip { grid-template-columns: 1fr; }
  .home-card.flip .home-photo { order: 0; }
  .home-card .home-photo { min-height: 240px; }
  .tile-grid, .tile-grid.four { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.8rem; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.12); padding: 12px 24px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid #eef2f5; }
  .main-nav a { display: block; padding: 13px 4px; }
  .main-nav .nav-cta { border-bottom: 0; padding-top: 12px; }
  .main-nav .nav-cta a { text-align: center; }
  .nav-toggle { display: block; }
  .logo-tag { display: none; }
}
@media (max-width: 520px) {
  .tile-grid, .tile-grid.four, .tile-grid.two { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .hero-grid { padding: 48px 24px; min-height: 0; }
}
