/*
Theme Name: iGlobal Advisory
Theme URI: https://iglobaladvisory.example/
Author: Mica (built for iGlobal Advisory, Inc.)
Description: Custom WordPress theme rebuilt from the iGlobal Advisory Wix site. Four pages: Home, About, Work, Contact.
Version: 1.4.3
License: GNU General Public License v2 or later
Text Domain: iglobal-advisory
*/

:root {
  --black: #111111;
  --ink: #1c1c1c;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-200: #e9e9e9;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --red: #e65250;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

a { color: var(--black); }

img { max-width: 100%; height: auto; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-brand {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.site-brand img.site-logo,
.site-brand .custom-logo {
  height: 45px;
  width: auto;
  max-width: none;
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 156px 24px 144px;
  overflow: hidden;
  perspective: 1200px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -4%;
  background: url('assets/images/hero-bg.jpg') center top / cover no-repeat;
  animation: hero-drift 8s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(230, 82, 80, 0.15);
}

@keyframes hero-drift {
  from { transform: scale(1.03) rotateY(-7deg); }
  to   { transform: scale(1.08) rotateY(7deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.64rem, 6.6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.3em;
}

.hero .tagline {
  font-size: clamp(1.2rem, 2.64vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 1.6em;
  color: #f0f0f0;
}

.hero h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 0.5em;
}

.hero p.lead {
  color: #e6e6e6;
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto;
}

/* Text below the hero picture (home page) */
.hero-below {
  background: #eeeeee;
  text-align: center;
  padding: 64px 24px;
}

.hero-below h2 {
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 0.6em;
}

.hero-below p.lead {
  color: var(--gray-600);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto;
}

/* Enlarged page title (used where the picture banner was removed) */
.page-title {
  color: var(--ink);
  font-size: clamp(2.4rem, 5.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 0.8em;
}

/* Contact page opening line: 8pt smaller than the standard page title */
.contact-wrap .page-title {
  font-size: clamp(1.74rem, 4.5vw, 2.54rem);
}

/* ---------- Service cards ---------- */
.services {
  padding: 84px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-top: 12px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.service-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  margin-bottom: 0;
}

.service-card h2 {
  font-size: 1.12rem;
  margin-bottom: 0.6em;
}

.service-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.4em;
}

.cta-band p {
  color: #d9d9d9;
  max-width: 680px;
  margin: 0 auto 1.6em;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 14px 38px;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: transparent;
  color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover {
  background: transparent;
  color: var(--black);
}

.btn-rose {
  background: linear-gradient(90deg, #f08682 0%, #e65250 100%);
  color: var(--white);
  border-color: transparent;
}

.btn-rose:hover {
  color: var(--white);
  filter: brightness(0.96);
}

/* ---------- Wix-mirror details ---------- */
.btn-readmore {
  display: inline-block;
  background: linear-gradient(90deg, #f08682 0%, #e65250 100%);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 14px 44px;
  border: none;
  cursor: pointer;
}

.btn-readmore:hover { color: var(--white); filter: brightness(0.96); }

.readmore-wrap {
  text-align: center;
  margin-top: 48px;
}

.form-heading {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.4rem;
  margin-top: 2.5em;
}

/* Work page practice titles */
.prose.work-prose h3 {
  color: var(--black);
  text-align: center;
  font-size: 1.81rem;
  font-weight: 400;
}

/* Work page sub-headings (paragraph lead-ins) */
.prose.work-prose p strong {
  font-weight: 400;
  font-size: 1.17rem;
}

.contact-email {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-bottom: 1.5em;
}

/* Underline-only form fields, as on the original site */
.form-lines {
  background: transparent;
  padding: 0;
  text-align: left;
}

.form-lines label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
  color: var(--gray-700);
}

.form-lines input[type="text"],
.form-lines input[type="email"],
.form-lines input[type="tel"],
.form-lines textarea {
  width: 100%;
  padding: 10px 2px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid #555555;
  border-radius: 0;
  margin-bottom: 19px;
}

.form-lines textarea {
  min-height: 120px;
  resize: vertical;
}

.form-lines input:focus,
.form-lines textarea:focus {
  outline: none;
  border-bottom-color: var(--black);
}

/* Two-column Contact Us / Subscribe sections (Wix format) */
.contact-block { background: #eeeeee; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 56px;
  align-items: start;
}

.contact-side .form-heading { margin-top: 0; }

.form-lines .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-main .btn {
  display: block;
  width: 100%;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 84px 24px 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-bg.jpg') center / cover no-repeat;
  opacity: 0.85;
}

.page-hero .container { position: relative; }

.page-hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  color: #cfcfcf;
  margin-bottom: 1em;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0;
}

/* ---------- Content sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--gray-100); }
/* Soft radial red background: denser at the left, fading out gradually */
.section.red-bg {
  background: radial-gradient(circle at 18% 45%, #f6c2c2 10%, #fef5f4 50%);
}

.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.9em; color: var(--gray-700); }
.prose p { color: var(--gray-700); }
.prose p strong, .prose li strong { color: var(--ink); }

.advisory-note {
  border-left: 3px solid var(--black);
  background: transparent;
  padding: 20px 24px;
  margin-top: 2.5em;
  font-size: 0.78rem;
  color: var(--gray-700);
}
.section.alt .advisory-note { background: var(--white); }

/* ---------- Contact / subscribe ---------- */
.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-form {
  margin-top: 2em;
  text-align: left;
  background: var(--gray-100);
  padding: 36px;
}

.subscribe-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"],
.subscribe-form input[type="tel"],
.subscribe-form textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--gray-200);
  background: var(--white);
  margin-bottom: 18px;
}

.subscribe-form textarea {
  min-height: 150px;
  resize: vertical;
}

.subscribe-form input:focus,
.subscribe-form textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-success {
  background: #eef7ee;
  border: 1px solid #bfe0bf;
  color: #2c6e2c;
  padding: 18px 22px;
  margin-top: 2em;
  text-align: center;
}

.form-error {
  background: #fdf0f0;
  border: 1px solid #eecaca;
  color: #a33333;
  padding: 18px 22px;
  margin-top: 2em;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 40px 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.site-footer nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0;
  margin: 0 0 16px;
}

.site-footer nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer nav a:hover { color: var(--black); }

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

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 108px 20px 96px; }
  .hero-below { padding: 44px 20px; }
  /* Shrink logo and nav buttons proportionally on small screens */
  .site-header .container { min-height: 56px; padding-left: 12px; padding-right: 12px; }
  .site-brand img.site-logo,
  .site-brand .custom-logo { height: 34px; }
  .site-nav ul { gap: 8px; }
  .site-nav a { font-size: 0.72rem; white-space: nowrap; }
  .subscribe-form { padding: 24px; }
  /* Contact headline smaller still on phones */
  .contact-wrap .page-title { font-size: 1.4rem; }
  /* Service cards: tighter rows on phones */
  .service-card { gap: 18px; }
  .service-card img { width: 76px; height: 76px; }
  /* Contact sections stack on phones */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-lines .field-row { grid-template-columns: 1fr; }
}
