/*
  AGD INNERPATH SRL - Minimal, responsive styles
  Brand: deep blue + gold accent. Accessible contrast, mobile-first.
*/
:root {
  --brand: #0b3d60;
  --brand-2: #0e5a92;
  --accent: #22c55e; /* green */
  --hero-3: #1277c5;
  --text: #0f172a;
  --heading: #0b3d60;
  --link: #0e5a92;
  --muted: #475569;
  --surface: #ffffff;
  --surface-2: #f1f5f9; /* tinted light gray */
  --page-bg: #f4f7fb; /* overall page tint */
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
}

/* Themes: ocean (default), gold, forest, dark, sunset, grape, slate */
html[data-theme="ocean"] {
  --brand: #0b3d60;
  --brand-2: #0e5a92;
  --accent: #22c55e;
  --hero-3: #1277c5;
  --text: #0f172a;
  --heading: #0b3d60;
  --link: #0e5a92;
  --muted: #475569;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --page-bg: #f4f7fb;
  --border: #e5e7eb;
}
html[data-theme="gold"] {
  --brand: #0b3d60;
  --brand-2: #d4a017;
  --accent: #d4a017;
  --hero-3: #f59e0b;
  --text: #0f172a;
  --heading: #0b3d60;
  --link: #b45309;
  --muted: #475569;
  --surface: #ffffff;
  --surface-2: #f0f8ff;
  --page-bg: #f0f9ff;
  --border: #e5e7eb;
}
html[data-theme="forest"] {
  --brand: #064e3b;
  --brand-2: #0f766e;
  --accent: #22c55e;
  --hero-3: #16a34a;
  --text: #0b1220;
  --heading: #065f46;
  --link: #0f766e;
  --muted: #365261;
  --surface: #ffffff;
  --surface-2: #e8f5f1;
  --page-bg: #eef8f4;
  --border: #d1fae5;
}
html[data-theme="dark"] {
  --brand: #1f2a44;
  --brand-2: #2d3f6c;
  --accent: #22c55e;
  --hero-3: #3b82f6;
  --text: #e5e7eb;
  --heading: #e2e8f0;
  --link: #93c5fd;
  --muted: #94a3b8;
  --surface: #0b1220;
  --surface-2: #0f172a;
  --page-bg: #0b1220;
  --border: #334155;
}
html[data-theme="sunset"] {
  --brand: #9d174d;   /* rose-800 */
  --brand-2: #c2410c; /* orange-700 */
  --accent: #f97316;  /* orange-500 */
  --hero-3: #f43f5e;  /* rose-500 */
  --text: #1f2937;
  --heading: #9d174d;
  --link: #c2410c;
  --muted: #475569;
  --surface: #ffffff;
  --surface-2: #fff1f2;
  --page-bg: #fff7ed;
  --border: #fde68a;
}
html[data-theme="grape"] {
  --brand: #5b21b6;  /* violet-800 */
  --brand-2: #7c3aed; /* violet-600 */
  --accent: #a78bfa;  /* violet-300 */
  --hero-3: #22d3ee;  /* cyan-400 */
  --text: #0b1220;
  --heading: #5b21b6;
  --link: #7c3aed;
  --muted: #4b5563;
  --surface: #ffffff;
  --surface-2: #f3e8ff;
  --page-bg: #faf5ff;
  --border: #e9d5ff;
}
html[data-theme="slate"] {
  --brand: #0f172a;  /* slate-900 */
  --brand-2: #334155; /* slate-700 */
  --accent: #38bdf8;  /* sky-400 */
  --hero-3: #64748b;  /* slate-500 */
  --text: #e2e8f0;
  --heading: #f1f5f9;
  --link: #38bdf8;
  --muted: #94a3b8;
  --surface: #0b1220;
  --surface-2: #0f172a;
  --page-bg: #0b1220;
  --border: #1e293b;
}

/* Global links and headings */
a { color: var(--link) }
a:hover { text-decoration: underline }
h1, h2 { color: var(--heading) }

* { box-sizing: border-box }

html, body { height: 100% }
body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; background: #fff; padding: .5rem .75rem; border-radius: 6px; box-shadow: var(--shadow); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem }

/* Header / Nav */
header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border) }
.nav { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 0 }
.nav .brand { display:flex; align-items:center; gap:.75rem; text-decoration:none }
.nav img { height: 68px; width: auto; border-radius: 10px }
.brand-name { font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--heading) }

.nav-links { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap }
.nav-links a { display:inline-block; padding: .5rem .6rem; border-radius: 6px; text-decoration:none; color: var(--text); font-weight:600 }
.nav-links a:hover { background: var(--surface-2) }

.nav-toggle { display:none; border:1px solid var(--border); background: var(--surface); padding:.45rem .6rem; border-radius: 8px }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block }
  .nav-links { display:none; position:absolute; top:64px; left:0; right:0; background:var(--surface); border-bottom:1px solid var(--border); padding: .5rem 1rem }
  .nav-links.open { display:flex; flex-direction:column; align-items:flex-start; gap:.25rem }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 60%, var(--hero-3) 100%); color: #fff; padding: 6rem 0 4rem }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1 }
.hero-content { display: grid; grid-template-columns: 1fr 200px; gap: 2rem; align-items: center }
.hero-image { display: flex; justify-content: center }
.hero-profile { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.3) }
@media (max-width: 768px) { 
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 1.5rem } 
  .hero-profile { width: 140px; height: 140px }
}
.hero .actions .btn { margin-right: .25rem }

/* Sections */
section { padding: 2.25rem 0; scroll-margin-top: 84px }
main > section:not(.hero):nth-of-type(even) {
  background: linear-gradient(180deg, rgba(11,61,96,0.03), rgba(14,90,146,0.02)), var(--surface-2);
}
section .muted { color: var(--muted) }
.small { font-size: .9rem }

/* Cards and grid */
.grid { display:grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) }
.card { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1rem; 
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
}
.card h3 { margin-top: 0; color: var(--heading) }
/* Profile block */
.profile-header { display:flex; align-items:center; gap:.9rem; margin-bottom:.5rem }
.profile-photo { width:88px; height:88px; border-radius:50%; object-fit:cover; border:2px solid var(--border); box-shadow: var(--shadow) }
.card h4 { margin:.25rem 0; color: var(--heading); font-size: 1.05rem }
.two-col { column-count: 2; column-gap: 1.25rem }
@media (max-width: 820px) { .two-col { column-count: 1 } }

/* Buttons */
.btn { display:inline-block; background: var(--accent); color: #ffffff; padding:.75rem 1rem; border-radius: 10px; text-decoration:none; font-weight:700; border: none }
.btn:hover { filter: brightness(0.95) }
.btn.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.85) }
.btn.btn-outline:hover { background: rgba(255,255,255,0.1) }

/* Forms */
form .form-row { display:flex; flex-direction:column; gap:.35rem; margin-bottom:.8rem }
input, textarea { padding:.65rem .75rem; border:1px solid var(--border); border-radius: 8px; font: inherit }
input:focus, textarea:focus { outline:none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(14,90,146,0.15) }
.form-actions { margin-top:.5rem }
button.btn { cursor:pointer }

/* Projects */
.project { display:grid; grid-template-columns: 16px 1fr; gap: 1rem; align-items:start }
.project-media { background: linear-gradient(180deg, var(--brand), var(--brand-2)); border-radius: 8px }
.project-body { display:flex; flex-direction:column; justify-content:center; text-align: left; padding-left: 0 }
@media (max-width: 560px) {
  .project { grid-template-columns: 1fr; grid-template-rows: 8px auto; gap:.75rem }
  .project-media { height: 8px }
}

/* Footer */
.footer { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap }
.footer-brand { display:flex; align-items:center; gap:.75rem }
.footer-logo { height:32px; width:auto; border-radius:6px }
.footer .top-link { color: var(--link); text-decoration:none; font-weight: 600 }
.footer .top-link:hover { text-decoration: underline }

/* A11y utility */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }

/* Services Section Enhancements */
.section-intro { 
  font-size: 1.1rem; 
  color: var(--muted); 
  text-align: center; 
  margin: 0 auto 2rem; 
  max-width: 600px; 
  line-height: 1.6;
}

.benefits-section {
  --brand-light: rgba(11, 61, 96, 0.05);
  --accent-light: rgba(212, 160, 23, 0.05);
}

.benefits-section h4 {
  color: var(--brand);
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.benefits-section .small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.methodology-section h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.process-steps {
  display: grid;
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.step-number {
  background: var(--accent);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step h4 {
  margin: 0 0 0.25rem 0;
  color: var(--heading);
  font-size: 1rem;
}

.step .small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 600px) {
  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .step-number {
    margin-bottom: 0.5rem;
  }
}
