/* style.css
   Global reset, typography, layout & shared components
   Used by: index.html, services.html, contact.html
*/

/* ========= RESET ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Remove default list & heading margin */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

/* ========= LAYOUT ========= */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
}

/* Sections */
.section {
  padding: 4.5rem 0;
  background-color: transparent;
}

.section--tight {
  padding: 3rem 0;
}

.section--muted {
  background-color: var(--color-bg);
}

.section--bordered {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ========= TYPOGRAPHY ========= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 400;
}

h1 {
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 2.5vw, 2.3rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.3;
}

p {
  color: var(--color-muted);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-gold {
  color: var(--color-primary);
}

.text-muted {
  color: var(--color-muted);
}

.mt-xs {
  margin-top: 0.25rem;
}
.mt-sm {
  margin-top: 0.75rem;
}
.mt-md {
  margin-top: 1.5rem;
}
.mt-lg {
  margin-top: 2.25rem;
}

/* ========= HEADER & NAV ========= */

.header {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 100%;
  padding: 1rem 0;
  background: linear-gradient(
    to bottom,
    rgba(241, 243, 248, 0.98),
    rgba(241, 243, 248, 0.95),
    rgba(241, 243, 248, 0.9)
  );
  backdrop-filter: blur(10px);
  transition: background-color var(--transition-normal),
    box-shadow var(--transition-normal), padding var(--transition-normal);
}

.header--scrolled {
  background-color: #ffffff;
  box-shadow: 0 10px 25px -16px rgba(57, 59, 68, 0.35);
  padding: 0.7rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: var(--color-primary);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding-left: 0;
}

.nav-link {
  position: relative;
  padding-bottom: 0.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: var(--color-primary);
}

.nav-link--active::after {
  width: 100%;
}

/* Right side meta + CTA in header */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted-soft);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 147, 171, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  background-color: #ffffff;
}

.nav-toggle ion-icon {
  font-size: 1.1rem;
}

/* ========= BUTTONS ========= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 147, 171, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  background-color: #ffffff;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast), color var(--transition-fast);
}

.btn:hover {
  background-color: #f9fafb;
  border-color: var(--color-primary-soft);
}

.btn-primary {
  border-color: transparent;
  background-image: linear-gradient(135deg, #393b44, #8d93ab);
  color: #ffffff;
  box-shadow: 0 14px 30px -18px rgba(57, 59, 68, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -20px rgba(57, 59, 68, 0.65);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-ghost:hover {
  background-color: #e5e7f3;
  border-color: var(--color-primary-soft);
}

.btn-icon {
  font-size: 1rem;
}

/* ========= GENERIC CARDS (for services / features) ========= */

.card,
.service-card {
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: 0 16px 35px -28px rgba(57, 59, 68, 0.35);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-normal), border-color var(--transition-fast),
    background var(--transition-fast);
}

.card:hover,
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-soft);
  box-shadow: 0 20px 45px -30px rgba(57, 59, 68, 0.5);
}

/* Service icon block */
.service-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #d6e0f0;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.service-icon ion-icon {
  font-size: 1.6rem;
}

.service-title {
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.service-body {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Generic list style for "Why us" etc. */
.icon-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.85rem;
}

.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.icon-list-item ion-icon {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-top: 0.1rem;
}

/* ========= FORMS (contact page) ========= */

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.input,
.textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(141, 147, 171, 0.9);
  background-color: #ffffff;
  color: var(--color-text);
  font: inherit;
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-muted-soft);
}

.input:focus,
.textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(57, 59, 68, 0.4);
  background-color: #ffffff;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========= FOOTER (CLEAN + RESPONSIVE) ========= */

.footer {
  background-color: #1f232a;
  color: #e5e7eb;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

/* Brand area */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
}

/* BIGGER LOGO (desktop) */
.footer-logo-image {
  display: block;
  height: 170px; /* adjust if you want even bigger */
  width: auto;
}

/* Tagline & global text */
.footer-tagline,
.footer-global {
  color: var(--color-muted);
  max-width: 260px;
  font-size: 0.9rem;
}

.footer-global {
  margin-top: 0.6rem;
}

/* Generic footer columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #f9fafb;
  margin-bottom: 0.8rem;
}

/* Links & contact */
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #d6e0f0;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #e5e7f3;
}

.footer-contact ion-icon {
  font-size: 1.1rem;
  color: #d6e0f0;
}

/* Social icons */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(214, 224, 240, 0.7);
  margin-right: 0.5rem;
  transition: all 0.25s ease;
}

.footer-social a ion-icon {
  font-size: 1.2rem;
  color: #f1f3f8;
}

.footer-social a:hover {
  background-color: #d6e0f0;
  border-color: #d6e0f0;
  color: #393b44;
}

/* Bottom row */
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-legal {
  opacity: 0.8;
}

/* Website Designed By */
.footer-designed-by {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.footer-designed-by span {
  color: #d1d5db;
}

.footer-designed-by a {
  display: inline-flex;
  align-items: center;
}

.footer-designed-by-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
}

/* ========= RESPONSIVE NAV / LAYOUT ========= */

@media (max-width: 960px) {
  .section {
    padding: 3.5rem 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.9rem 0;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Mobile menu as dropdown overlay */
  body.nav-open .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: #ffffff;
    border-top: 1px solid rgba(141, 147, 171, 0.4);
    padding: 0.75rem 0 0.6rem;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem var(--container-padding-x);
  }

  body.nav-open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem var(--container-padding-x) 0.85rem;
    border-top: 1px dashed rgba(141, 147, 171, 0.3);
    margin-top: 0.3rem;
    gap: 0.5rem;
  }

  .nav-meta {
    font-size: 0.72rem;
  }

  /* Footer mobile layout */
  .footer {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
  }

  .footer-brand,
  .footer-col {
    align-items: center;
  }

  .footer-tagline,
  .footer-global {
    max-width: 100%;
  }

  /* Slightly smaller but still big logo on mobile */
  .footer-logo-image {
    height: 120px;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-designed-by {
    justify-content: center;
  }
}

/* ========= EXTRA SMALL FOOTER TWEAKS ========= */
@media (max-width: 600px) {
  .footer-social a {
    margin-right: 0.3rem;
  }
}

/* ---------------------------------------------------------- */
/* HERO: Boardroom image layout (desktop + mobile)           */
/* ---------------------------------------------------------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr); /* text wider, image slightly narrower */
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* Right column wrapper so the card hugs the right edge nicely */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

/* Boardroom card */
.hero-photo-card {
  width: 100%;
  max-width: 560px;
  border-radius: 1.6rem;
  overflow: hidden;
  background-color: #393b44;
  border: 1px solid rgba(214, 224, 240, 0.9);
  box-shadow: 0 26px 60px -30px rgba(57, 59, 68, 0.7);
}

/* Actual image */
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* ---------- Responsive behaviour ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;         /* stack text + image */
  }

  .hero-visual {
    order: -1;                          /* image on top on mobile */
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .hero-photo-card {
    max-width: 100%;
  }
}

