/* 
 * DALBYCO Apex Digital - Main Stylesheet
 * Modern, premium digital advertising agency design
 * Colors: #FAF8F5, #142966, #312B36
 */

:root {
  --bg-primary: #FAF8F5;
  --bg-secondary: #F0EDE8;
  --bg-dark: #312B36;
  --text-primary: #312B36;
  --text-secondary: #5A5560;
  --text-light: #8A8680;
  --primary: #142966;
  --primary-dark: #0F1F4A;
  --primary-light: #1E3A8A;
  --accent: #3B82F6;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --border-color: #D1CDC6;
  --success: #10B981;
  --error: #EF4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Navigation - Sticky Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo svg {
  width: 42px;
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
}

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

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Hero Sections */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  margin-bottom: 40px;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-45%);
  width: 48%;
  max-width: 620px;
  z-index: 1;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .hero-visual {
    display: none;
  }
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

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

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.service-card, .industry-card, .process-card, .team-card {
  display: flex;
  flex-direction: column;
}

.service-card .icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: 24px;
}

/* Process / Timeline */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 70px;
  bottom: -48px;
  width: 3px;
  background-color: var(--border-color);
}

.process-step:last-child::before {
  display: none;
}

.step-number {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.step-content {
  flex: 1;
  padding-top: 12px;
}

.step-content h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-card .avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* Industries / Markets */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.industry-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.industry-card .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}

.faq summary {
  padding: 20px 28px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq details[open] summary::after {
  content: '−';
}

.faq .faq-content {
  padding: 0 28px 24px;
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--white);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 41, 102, 0.1);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Trust / Logos */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  opacity: 0.75;
}

.trust-logos span {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Disclosure Bar */
.disclosure-bar {
  background-color: var(--bg-dark);
  color: #C8C4BE;
  font-size: 0.8rem;
  padding: 14px 0;
  text-align: center;
  line-height: 1.5;
}

.disclosure-bar a {
  color: #A8A4A0;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: #C8C4BE;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a {
  color: #C8C4BE;
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #A8A4A0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: #E5E1DB;
  padding: 20px 0;
  z-index: 2000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: #C8C4BE;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cookie Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.modal-content h3 {
  margin-bottom: 20px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option label {
  font-weight: 500;
}

/* Platform badges */
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-badge {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Glassmorphic Dashboard Example */
.dashboard-mock {
  background: linear-gradient(145deg, #1E2937 0%, #0F172A 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #E2E8F0;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.dashboard-mock h4 {
  color: #F1F5F9;
  margin-bottom: 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.metric {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #F1F5F9;
}

.metric-label {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 4px;
}

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 60px 0;
}

/* Responsive Grid Helpers */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero { padding: 90px 0 70px; }
}