/* Colour palette based on the Di Marco crest */
:root {
  --dm-navy: #0e1f31;
  --dm-gold: #d4a037;
  --dm-light: #f5f5f3;
  --dm-dark-text: #1c2330;
}

* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--dm-dark-text);
  line-height: 1.65;
}
a {
  color: var(--dm-navy);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  height: 80px;
  width: auto;
}
.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--dm-navy);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-links a {
  font-weight: 600;
  padding: 6px 8px;
  transition: color 0.2s;
}
.nav-links .nav-cta {
  background: var(--dm-gold);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
}

/* Hero */
.hero {
  background: var(--dm-light);
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.hero-copy .tag {
  display: inline-block;
  background: rgba(212, 160, 55, 0.12);
  border: 1px solid rgba(212, 160, 55, 0.4);
  color: var(--dm-navy);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 38px;
  margin: 0 0 12px;
  color: var(--dm-navy);
}
.lead {
  font-size: 18px;
  max-width: 60ch;
  margin-bottom: 20px;
}
.btn-primary {
  display: inline-block;
  background: var(--dm-gold);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #c79733;
}
.hero-image .crest-large {
  max-width: 480px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.08));
}

/* Sections */
.section {
  padding: 60px 0;
}
.section.alt-bg {
  background: var(--dm-light);
}
.section h2 {
  margin: 0 0 20px;
  color: var(--dm-navy);
  font-size: 28px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--dm-navy);
}
.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Chat section */
.chat-section .chat-note {
  font-size: 14px;
  margin-bottom: 12px;
  color: #586174;
}
.chatbox {
  border: 1px solid #d1d7e0;
  border-radius: 12px;
  overflow: hidden;
}
.chat-messages {
  height: 420px;
  overflow-y: auto;
  padding: 16px;
  background: #fbfcfd;
  font-size: 14px;
}
.msg {
  margin-bottom: 12px;
}
.msg .who {
  font-weight: 700;
  color: var(--dm-navy);
}
.chat-input {
  display: flex;
  border-top: 1px solid #e0e5ee;
  padding: 12px;
  background: #fff;
}
.chat-input input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccd2dc;
  border-radius: 8px;
  font-size: 14px;
}
.chat-input button {
  margin-left: 10px;
  padding: 10px 16px;
  background: var(--dm-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-input button:hover {
  background: #c79733;
}

/* Footer */
.site-footer {
  background: var(--dm-navy);
  color: #fff;
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.footer-text, .footer-contact {
  font-size: 14px;
}
.footer-contact a {
  color: #ffecb3;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .nav-links {
    display: none;
  }
  .brand-name {
    font-size: 18px;
  }
}