/*
Theme Name: Daedalus Design Redesign
Theme URI: https://daedalusdesign.co.uk
Author: Daedalus Design
Author URI: https://daedalusdesign.co.uk
Description: Custom premium theme for Daedalus Design featuring AI automation integration and glassmorphism.
Version: 2.0.6
Text Domain: daedalus-design
*/

:root {
  --obsidian: #0A0E14;
  --obsidian-light: #12161E;
  --obsidian-mid: #1A1E28;
  --gold: #D4AF37;
  --gold-hover: #E5C355;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0B0;
  --border-glass: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* 1. Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--obsidian);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gold-hover);
}

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

/* 2. Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section,
.services-section,
.pricing-section,
.portfolio-section,
.stats-section,
.testimonials-section,
.ai-suite-section,
.contact-section {
  padding: 6rem 0;
}

/* 3. Glassmorphism */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 4. Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--obsidian);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  color: var(--obsidian);
  box-shadow: 0 0 20px var(--gold-dim);
}

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

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--obsidian);
}

/* 5. Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.site-header.header-scrolled {
  background: rgba(10, 14, 20, 0.95);
  padding: 0.5rem 0;
}

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

.brand-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--gold);
}

.header-cta {
  padding: 0.6rem 1.2rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* 6. Hero */
.hero,
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero h1,
.hero-section h1 {
  font-size: 3.8rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero h1 span,
.hero-section h1 span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* 7. Services */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--gold);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon svg, .service-icon i {
  color: var(--gold);
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
}

.service-card h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 8. Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--gold);
  transform: scale(1.03);
  box-shadow: 0 0 30px var(--gold-dim);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--obsidian);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
}

.price {
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin: 1rem 0 0.5rem;
}

.price-period,
.pricing-card .price span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features ul,
.pricing-card .features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li,
.pricing-card .features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.pricing-features li::before,
.pricing-card .features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* 9. Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.85) 0%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.portfolio-overlay p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* 10. Stats */
.stats-section {
  background: var(--obsidian-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* 11. Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  color: var(--text-primary);
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.testimonial-role {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* 12. AI Suite */
.ai-suite-section {
  background: var(--obsidian-light);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.ai-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ai-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.ai-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.ai-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* 13. Contact/CTA */
.contact-section .glass-panel {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h2 {
  color: var(--gold);
}

.contact-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* 14. Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  background: var(--obsidian);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* 15. Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 var(--gold-dim); }
  70% { box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* 16. Responsive */
@media (max-width: 1024px) {
  .hero h1,
  .hero-section h1 {
    font-size: 3rem;
  }
  .stats-grid, .ai-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--obsidian);
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass);
  }
  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  .header-cta {
    display: none;
  }
  .hero h1,
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .services-grid, .pricing-grid, .testimonials-grid, .stats-grid, .ai-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero h1,
  .hero-section h1 {
    font-size: 2rem;
  }
  .section,
  .services-section,
  .pricing-section,
  .portfolio-section,
  .stats-section,
  .testimonials-section,
  .ai-suite-section,
  .contact-section {
    padding: 4rem 0;
  }
  .container {
    padding: 0 1.25rem;
  }
  .price {
    font-size: 2.25rem;
  }
}

/* 17. Content pages */
.content-area {
  padding: 8rem 0 4rem;
}

.content-area h1, .content-area h2, .content-area h3, .content-area h4, .content-area h5, .content-area h6 {
  color: var(--gold);
}

.content-area p {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Core block-library CSS is not enqueued, so lists, column blocks and button
   blocks arrive with no padding or margins: markers get clipped and each block
   collides with the heading that follows it. */
.content-area ul,
.content-area ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-area li {
  margin-bottom: 0.5rem;
}

.content-area h2,
.content-area h3 {
  margin-top: 2.5rem;
}

.content-area .wp-block-columns,
.content-area .wp-block-buttons {
  margin-bottom: 2rem;
}

.content-area .wp-block-columns {
  display: flex;
  gap: 2rem;
}

.content-area .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 768px) {
  .content-area .wp-block-columns {
    flex-direction: column;
  }
}

.post-thumbnail {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* 18. WordPress overrides */
/* Exclude the submit button: `.wpcf7 input` (0,1,1) outranks `.wpcf7-submit`
   (0,1,0), so without this the button inherited the field background and
   width:100% and rendered as an empty-looking text box instead of a gold CTA. */
.wpcf7 input:not([type="submit"]), .wpcf7 textarea, .wpcf7 select {
  background: var(--obsidian-mid);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  width: 100%;
  font-family: var(--font-body);
}

.wpcf7 input:not([type="submit"]):focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
  outline: none;
  border-color: var(--gold);
}

.wpcf7-submit {
  background-color: var(--gold);
  color: var(--obsidian);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7-submit:hover {
  background-color: var(--gold-hover);
}

#cmplz-cookiebanner-container {
  background: var(--obsidian-mid) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glass) !important;
}
