/* =========================================================
   Holus Creative Ltd - Draft Stylesheet
   www.holus.biz
   NOTE: This is a working draft. Colours, spacing and type
   can all be refined once branding is finalised.
   ========================================================= */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-primary: #0f172a;
  --color-accent: #14b8a6;
  --color-accent-2: #7c3aed;
  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

a {
  color: var(--color-accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* A wider container used for the 4-card services grid, so each card has
   enough room for its heading to sit on a single line. */
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  color: #e2e8f0;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

.main-nav > ul > li.has-dropdown {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 0.75em;
  line-height: 1;
  padding: 0.25rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.dropdown-toggle:hover {
  color: var(--color-accent);
}

.has-dropdown.open .dropdown-toggle {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  min-width: 260px;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.has-dropdown.open .dropdown {
  display: flex;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--color-text);
  white-space: nowrap;
}

.dropdown li a:hover {
  background: var(--color-bg);
  color: var(--color-accent-2);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--color-primary), #1e293b);
  color: #fff;
  padding: 4rem 0;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 340px;
}

.hero-image {
  flex: 1 1 400px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #0f172a;
  font-weight: 600;
  border-radius: var(--radius);
}

.btn:hover {
  background: #0d9488;
  color: #fff;
  text-decoration: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-surface);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--color-muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

/* ---------- Cards / Service grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  border-radius: 0;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin-top: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.card-body a {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- Content rows (image + text) ---------- */

.content-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-row .media,
.content-row .copy {
  flex: 1 1 380px;
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-form {
  flex: 2 1 400px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.btn-form {
  align-self: flex-start;
  margin-top: 1.5rem;
  border: none;
  font: inherit;
  cursor: pointer;
}

.contact-info {
  flex: 1 1 220px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.contact-info h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.contact-info a {
  font-weight: 600;
}

/* ---------- Links page ---------- */

.links-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.links-list li {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.links-list a {
  font-weight: 600;
  font-size: 1.05rem;
}

.links-note {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary);
  color: #94a3b8;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #cbd5e1;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    display: none;
    padding-left: 1rem;
  }

  .has-dropdown.open .dropdown {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .content-row.reverse {
    flex-direction: row;
  }
}

@media (max-width: 420px) {
  /* Let long card headings wrap again on very narrow phones, where even a
     single-column card isn't quite wide enough for them on one line. */
  .card-body h3 {
    white-space: normal;
  }
}

/* ---------- Links page: slide content (resource groups) ---------- */
.resource-group { margin-bottom: 2.5rem; }
.resource-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.resource-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.resource-head h2 { margin: 0; font-size: 1.5rem; }
.resource-sub { color: var(--color-muted); margin: 0 0 1rem 0; max-width: 780px; }
.resource-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.resource-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.resource-card .badge { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.75rem; display: grid; place-items: center; letter-spacing: 0; }
.resource-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.resource-card p { margin: 0 0 0.4rem; color: var(--color-text); font-size: 0.95rem; }
.resource-card .meta { color: var(--color-muted); font-size: 0.85rem; }
.resource-card a { font-weight: 600; word-break: break-word; }
.resource-card .url { display: block; font-size: 0.82rem; font-weight: 400; color: var(--color-muted); }
.company-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.company-chips span { background: var(--color-surface); border-radius: 999px; box-shadow: var(--shadow); padding: 0.3rem 0.9rem; font-size: 0.9rem; font-weight: 600; }

.section h2.topic-title { font-size: 1.9rem; margin: 3rem 0 1.5rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--color-accent); }
.section h2.topic-title:first-of-type { margin-top: 1rem; }
