/* Fonts loaded via <link> in HTML (preconnect) — avoids render-blocking @import */

/* ─── CSS DESIGN SYSTEM VARIABLES ─────────────────────────── */
:root {
  --primary:       #0077b6;      /* Ocean / Sky Blue */
  --primary-light: #48cae4;      /* Cyan / Light Blue */
  --primary-dark:  #005f86;      /* Deep Ocean */
  --accent:        #e0f7ff;      /* Ice/Foam Blue */
  --mist:          #f0fbff;      /* Soft Grey-Blue Tint */
  --bg-light:      #f8fdff;      /* Background Tint */
  --bg-pure:       #ffffff;      /* Pure White */
  
  --text-main:     #0a2540;      /* Dark Navy for high-end luxury feel */
  --text-muted:    #4a5568;      /* Slate for body text readability */
  --text-light:    #718096;      /* Cool Grey */
  --border:        #dbeaf6;      /* Delicate Blue-Grey Border */
  
  --font-heading:  'Poppins', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  --shadow-sm:     0 4px 12px rgba(0, 119, 182, 0.04);
  --shadow-md:     0 8px 30px rgba(0, 119, 182, 0.08);
  --shadow-lg:     0 20px 60px rgba(0, 119, 182, 0.12);
  --shadow-xl:     0 40px 100px rgba(0, 119, 182, 0.16);

  --transition:    0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Spacing rhythm */
  --section-y:     clamp(4.5rem, 8vw, 6.5rem);
  --section-x:     clamp(1.25rem, 4vw, 2rem);
  --section-y-sm:  clamp(3rem, 6vw, 4.5rem);
  --gap-xs:        0.75rem;
  --gap-sm:        1.25rem;
  --gap-md:        2rem;
  --gap-lg:        3rem;
  --gap-xl:        4.5rem;
  --container-max: 1140px;
}

/* ─── RESET & BASE STYLES ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-pure);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: color var(--transition), background var(--transition);
}

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

/* Cinematic media — scoped to frames, not every inline image */
.media-frame img,
.media-frame video,
.media-cover,
.about-img-placeholder img,
.img-placeholder img,
.hero-img img,
.service-img img,
.portfolio-card{
  padding:16px;
  border-radius:24px;
  background:#dff5ff;
  border:1px solid #cfe8f3;
}

/* Image */

.portfolio-card .portfolio-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:20px;
  display:block;
  box-shadow:none;
}

.reel-placeholder .reel-video,
.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.media-frame:hover img,
.media-frame:hover video,
.about-img-placeholder:hover img,
.img-placeholder:hover img,
.hero-img:hover img {
  transform: scale(1.015);
  box-shadow: var(--shadow-xl);
}

/* ─── KEYFRAMES ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes borderRotate {
  from { --angle: 0deg; }
  to   { --angle: 360deg; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── SCROLL REVEAL UTILITY ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── LAYOUTS & CONTAINERS ──────────────────────────────────── */
section {
  padding: var(--section-y) var(--section-x);
  position: relative;
}

section + section:not(.section-alt):not(.section-compact) {
  margin-top: 0;
}

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

.section-compact {
  padding-top: 0;
  padding-bottom: var(--section-y-sm);
}

.section-header {
  margin-bottom: var(--gap-lg);
}

.section-header .section-sub {
  margin-bottom: 0;
}

.section-note {
  margin-top: var(--gap-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 42rem;
}

.section-note a {
  color: var(--primary);
  font-weight: 600;
}

.section-note a:hover {
  color: var(--primary-dark);
}

.section-note--wide {
  max-width: 36rem;
  margin-bottom: var(--gap-md);
}

.section-sub--tight {
  margin-bottom: var(--gap-md);
}

.section-cta {
  margin-top: var(--gap-lg);
}

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

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: var(--gap-lg);
  line-height: 1.8;
}

/* Grids */
.about-grid,
.two-col,
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
  align-items: stretch;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-md);
  align-items: stretch;
}

.why-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-md);
  align-items: stretch;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-md);
  align-items: stretch;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-sm);
}

.content-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
  align-items: start;
}

.content-grid .container > .section-title,
.content-grid .container > .section-label,
.content-grid .container > .benefit-grid,
.content-grid .container > .list-grid,
.content-grid .container > .location-list {
  grid-column: 1 / -1;
}

.list-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

.list-item,
.benefit-item {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.list-item:hover,
.benefit-item:hover {
  border-color: rgba(0, 119, 182, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap-sm);
}

.locations-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: var(--gap-md);
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.about-text a:hover {
  color: var(--primary-dark);
  gap: 0.55rem;
}

/* Prose for Blog and Service Articles */
.prose {
  max-width: 760px;
}

.prose p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.prose h3 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.prose strong {
  color: var(--text-main);
  font-weight: 600;
}

.prose a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px dashed var(--primary-light);
  padding-bottom: 1px;
}

.prose a:hover {
  color: var(--primary-dark);
  border-bottom-style: solid;
}

/* Blog / guide content blocks */
.content-block {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.content-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 119, 182, 0.14);
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.content-block p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.location-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

.location-item {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.location-item:hover {
  border-color: rgba(0, 119, 182, 0.2);
  box-shadow: var(--shadow-md);
}

.expertise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.expertise-list li {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 1.35rem;
  position: relative;
}

.expertise-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.expertise-list strong {
  color: var(--text-main);
  font-weight: 600;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--gap-sm);
}

.related-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
}

.related-link:hover {
  background: var(--accent);
  border-color: rgba(0, 119, 182, 0.2);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
