/* Trent Accountancy — public website */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1B3A6B;
  --navy-dark: #142d54;
  --orange: #E8751A;
  --blue: #4BBDE0;
  --grey-bg: #f0f4f8;
  --text: #333;
  --muted: #6b7280;
}

body {
  font-family: 'Segoe UI', -apple-system, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--navy); }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER ---------- */
header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  color: white; font-size: 20px; font-weight: 700;
  text-decoration: none; letter-spacing: 0.3px;
}
.brand span { color: var(--orange); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 15px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: white !important;
  padding: 9px 18px; border-radius: 6px; font-weight: 600;
}
.nav-cta:hover { background: #cf6315; color: white !important; }
.menu-btn { display: none; background: none; border: none; color: white; font-size: 26px; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy), #2a5298);
  color: white; padding: 80px 0 90px;
}
.hero h1 { font-size: 42px; line-height: 1.2; margin-bottom: 18px; font-weight: 700; }
.hero p { font-size: 19px; color: rgba(255,255,255,0.9); max-width: 640px; margin-bottom: 30px; }
.hero .accent { color: var(--blue); }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 6px;
  font-weight: 700; text-decoration: none; font-size: 16px; transition: all 0.2s;
}
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: #cf6315; }
.btn-ghost {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.5); margin-left: 12px;
}
.btn-ghost:hover { border-color: var(--orange); background: rgba(232,117,26,0.15); }

/* ---------- SECTIONS ---------- */
section { padding: 70px 0; }
.section-grey { background: var(--grey-bg); }
.section-title { font-size: 30px; color: var(--navy); margin-bottom: 12px; font-weight: 700; }
.section-sub { color: var(--muted); font-size: 17px; margin-bottom: 40px; max-width: 680px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- CARDS ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: white; border-radius: 10px; padding: 28px 26px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 4px solid var(--blue); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.11); }
.card.orange { border-top-color: var(--orange); }
.card.navy   { border-top-color: var(--navy); }
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { margin-top: 10px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card ul li { margin-bottom: 5px; }

/* ---------- LOGOS ---------- */
.logo-row {
  display: flex; flex-wrap: wrap; gap: 40px;
  align-items: center; justify-content: center;
}
.logo-row img { height: 46px; width: auto; opacity: 0.75; filter: grayscale(30%); }
.logo-row img:hover { opacity: 1; filter: none; }

/* ---------- CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.info-icon { font-size: 21px; }
.info-item strong { display: block; color: var(--navy); margin-bottom: 2px; }
.info-item a { color: var(--muted); text-decoration: none; }
.info-item a:hover { color: var(--orange); }
.info-item span { color: var(--muted); }

form label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 5px; }
form input, form textarea, form select {
  width: 100%; padding: 11px 13px; border: 1px solid #d0d7e0;
  border-radius: 6px; font-size: 15px; font-family: inherit;
  margin-bottom: 16px; outline: none; transition: border-color 0.2s;
}
form input:focus, form textarea:focus, form select:focus { border-color: var(--blue); }
form textarea { min-height: 130px; resize: vertical; }
form button {
  background: var(--orange); color: white; border: none;
  padding: 13px 30px; border-radius: 6px; font-size: 16px;
  font-weight: 700; cursor: pointer; font-family: inherit; width: 100%;
}
form button:hover { background: #cf6315; }
form button:disabled { background: #bbb; cursor: not-allowed; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-msg { padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; display: none; font-size: 15px; }
.form-msg.ok  { background: #e8f5e9; color: #256b2a; border: 1px solid #a5d6a7; display: block; }
.form-msg.err { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #2a5298);
  color: white; text-align: center; padding: 60px 0;
}
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 26px; font-size: 17px; }

/* ---------- FOOTER ---------- */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 50px 0 26px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; margin-bottom: 32px; }
footer h4 { color: white; font-size: 16px; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--orange); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 13.5px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; gap: 0;
    padding: 10px 24px 20px; box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
}
