@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap&display=swap');

:root {
  --bg: #0f0f0f;
  --bg-alt: #1a1a1a;
  --dark: #0a0a0a;
  --text: #e8e6e3;
  --muted: #a39e97;
  --accent: #c9a46b;
  --accent-dark: #a88852;
  --white: #ffffff;
  --border: #2a2a2a;
  --card: #161616;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p { overflow-wrap: break-word; word-wrap: break-word; }
a { color: inherit; text-decoration: none; }
a[href^="mailto:"] {
  color: #4a9eff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a[href^="mailto:"]:hover {
  color: #7ab8ff;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.logo span { color: var(--accent); }
nav { display: flex; gap: 2.2rem; align-items: center; }
nav a { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.03em; transition: color 0.2s; }
nav a:hover { color: var(--accent); }
.cta-btn {
  background: transparent;
  color: var(--accent);
  padding: 0.75rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,161,74,0.25);
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 620px;
  background: linear-gradient(rgba(20,20,20,0.35), rgba(20,20,20,0.55)), url('comfort-suites-hero.webp') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0 6% 8%;
  color: var(--white);
  margin-top: 0;
}
.hero-content { max-width: 640px; }
.hero h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); margin-bottom: 0.8rem; }
.hero p { font-size: 1.05rem; font-weight: 300; max-width: 460px; margin-bottom: 0; opacity: 0.95; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 1rem 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: #d4b07a; }

/* Sections */
section { padding: 6.5rem 6%; }
.section-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 0.6rem;
}
.section-sub {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--card);
  padding: 2.2rem;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.service-card h3 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  height: 380px;
  background: #ddd;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover img { transform: scale(1.04); }
.project-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
  padding: 2rem 1.5rem 1.4rem;
}
.project-overlay h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.project-overlay span { font-size: 0.85rem; opacity: 0.85; letter-spacing: 0.04em; }

/* Trust strip */
.trust-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 6%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: left;
}
.trust-strip div {
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-left: 2px solid var(--accent);
}
.trust-strip div h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.trust-strip div p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.trust {
  background: var(--dark);
  color: var(--white);
  padding: 3.5rem 6%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}
.trust div h4 { font-size: 1.8rem; color: var(--accent); margin-bottom: 0.3rem; }
.trust div p { font-size: 0.9rem; opacity: 0.85; }

/* Footer */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 4rem 6% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-grid h4 { color: var(--white); font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin-bottom: 1rem; }
.footer-grid a, .footer-grid p { font-size: 0.92rem; color: #bbb; display: block; margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cf-badge {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  max-height: 18px;
}
.cf-badge img {
  height: 16px !important;
  width: auto !important;
  max-height: 16px;
  display: inline-block;
}
.cf-badge .cf-light { display: none; }
.cf-badge .cf-dark { display: inline; }
[data-theme="light"] .cf-badge .cf-light { display: inline; }
[data-theme="light"] .cf-badge .cf-dark { display: none; }

/* Page hero (inner pages) */
.page-hero {
  height: 48vh;
  min-height: 340px;
  background: linear-gradient(rgba(20,20,20,0.5), rgba(20,20,20,0.4)), url('images/midrise-hotel.jpg') center/cover;
  display: flex;
  align-items: center;
  padding: 0 6%;
  color: white;
  margin-top: 72px;
}
.page-hero h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); }

/* Contact form */
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; letter-spacing: 0.03em; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; }

/* Filters */
.filters { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.55rem 1.2rem;
  border: 1px solid #555;
  background: #1f1f1f;
  color: #e8e6e3;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

/* Chat panel */
.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: var(--accent);
  color: var(--dark);
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
}
.chat-body {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text);
}
.chat-body p { margin-bottom: 0.8rem; color: var(--muted); }
.chat-body a.btn-primary {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
}
.chat-float { cursor: pointer; }
.chat-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: var(--accent);
  color: var(--dark);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.chat-float:hover {
  background: #d4b07a;
  transform: scale(1.05);
}
.chat-float svg {
  width: 26px;
  height: 26px;
  fill: var(--dark);
}

/* Light theme */
[data-theme="light"] {
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --dark: #1a1a1a;
  --text: #1a1a1a;
  --muted: #5a5550;
  --accent: #a88852;
  --accent-dark: #8a6d3e;
  --white: #ffffff;
  --border: #e0ddd8;
  --card: #ffffff;
}
[data-theme="light"] header {
  background: rgba(247,245,242,0.92);
}
[data-theme="light"] .trust,
[data-theme="light"] footer {
  background: #1a1a1a;
  color: #ccc;
}
[data-theme="light"] .trust div p,
[data-theme="light"] .footer-grid a,
[data-theme="light"] .footer-grid p {
  color: #bbb;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 1rem;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.menu-toggle:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15,15,15,0.98);
    flex-direction: column;
    padding: 1.5rem 6%;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  nav.open { display: flex; }
  nav a { font-size: 1.05rem; padding: 0.6rem 0; }
  .cta-btn { display: none; }
  .hero { padding: 0 6% 8%; height: 85vh; align-items: flex-end; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.15; word-wrap: break-word; }
  .hero p { font-size: 0.95rem; max-width: 100%; line-height: 1.5; }
  section { padding: 3.5rem 5%; }
  .section-title { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .trust { flex-direction: column; gap: 1.8rem; }
  .trust-strip { padding: 2.5rem 5%; gap: 1.5rem; }
  .trust-strip div { padding-left: 1rem; }
  .chat-panel { right: 0.75rem; bottom: 5rem; width: calc(100vw - 1.5rem); }
  .project-overlay h3 { font-size: 1.3rem; }
  .project-overlay span { font-size: 0.8rem; }
}
@media (max-width: 600px) {
  header { height: 64px; padding: 0 3%; }
  .logo { font-size: 0.95rem; max-width: 48%; line-height: 1.2; }
  .logo span { display: block; font-size: 0.85rem; }
  .page-hero { margin-top: 64px; padding: 0 5%; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card { height: 260px; }
  .hero { padding: 0 5% 10%; }
  .hero h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .theme-toggle { padding: 0.3rem 0.5rem; font-size: 0.68rem; margin-left: 0.3rem; }
  .menu-toggle { width: 36px; height: 36px; }
  footer { padding: 3rem 5% 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
