/* -----------------------------
   Brand Colour Variables
--------------------------------*/
:root {
  --brand-dark: #243447;          /* softened navy */
  --brand-main: #2f4c6e;          /* lighter navy blue */
  --brand-light: #4f6f97;         /* mid blue */
  --brand-accent: #e7edf4;        /* soft blue background */
  --brand-accent-light: #f5f8fc;  /* very pale section background */

  --text-color: #222;
  --text-light: #ffffff;
}

/* -----------------------------
   Base Reset & Typography
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: #f8f8f8;
  scroll-behavior: smooth;
}

body {
  color: var(--text-color);
  background: #fff;
}

/* Utility containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* -----------------------------
   Header & Navigation
--------------------------------*/
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--brand-main);
  margin-left: 1.5rem;
  font-size: 1rem;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand-dark);
}

.main-nav a.button-primary {
  margin-left: 2rem;
}

/* Mobile nav fallback */
@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
}

/* -----------------------------
   Buttons
--------------------------------*/
.button,
.button-primary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.button-primary {
  background: var(--brand-main);
  color: var(--text-light);
}

.button-primary:hover {
  background: var(--brand-dark);
}

.text-link {
  color: var(--brand-main);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* -----------------------------
   Hero Sections
--------------------------------*/
.hero {
  background: var(--brand-accent);
  padding: 4rem 0;
}

.hero-small {
  padding: 3rem 0;
  background: var(--brand-accent);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--brand-dark);
}

.hero-text p {
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.hero-media {
  flex: 1;
}

.hero-placeholder {
  background: var(--brand-light);
  height: 250px;
  border-radius: 12px;
  opacity: 0.25;
}

/* Responsive hero */
@media (max-width: 720px) {
  .hero-inner {
    flex-direction: column;
  }
}

/* -----------------------------
   Sections
--------------------------------*/
.section {
  padding: 3rem 0;
  background: #fff;
}

.section-alt {
  background: var(--brand-accent-light);
}

.section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--brand-dark);
}

/* -----------------------------
   Grid System
--------------------------------*/
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* -----------------------------
   Cards
--------------------------------*/
.card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--brand-main);
}

/* -----------------------------
   Contact Page Layout
--------------------------------*/
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 0.3rem;
  font-size: 1rem;
}

.contact-form .checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.contact-side h3 {
  margin-bottom: 1rem;
  color: var(--brand-main);
}

/* -----------------------------
   Footer
--------------------------------*/
.site-footer {
  background: var(--brand-dark);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links a {
  display: block;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* -----------------------------
   Case Study Layout
--------------------------------*/
.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--brand-main);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 0.35rem;
  color: #666;
}

.case-overview {
  align-items: flex-start;
}

/* Project details panel */
.case-meta h3 {
  margin-bottom: 0.75rem;
}

.case-meta dl {
  margin-top: 0.5rem;
}

.case-meta dl div {
  margin-bottom: 0.5rem;
}

.case-meta dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-light);
}

.case-meta dd {
  margin-left: 0;
}

/* Key stats */
.key-stats .card p strong {
  display: block;
  font-size: 1.2rem;
}

/* Gallery */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.case-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.case-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Responsive video embed */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin-top: 1.5rem;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* -----------------------------
   Case Studies Listing
--------------------------------*/
.case-filters {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.case-filters span {
  margin-right: 0.35rem;
}

.case-listing {
  margin-top: 1.5rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.case-card-image img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}

.case-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.case-card-body h3 {
  margin-bottom: 0.25rem;
}

.case-card-body h3 a {
  text-decoration: none;
  color: var(--brand-main);
}

.case-card-body h3 a:hover {
  text-decoration: underline;
}

.case-meta-line {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}
