/*
Theme Name: Daitalens
Theme URI: https://daitalens.com
Author: Zendaita Pty Ltd
Author URI: https://zendaita.com
Description: Custom theme for Daitalens - Technology solutions that help businesses grow. Clean, modern design inspired by Aurora Tech styling.
Version: 1.0.0
License: Proprietary
Text Domain: daitalens

Aurora Tech Design System:
- Primary Blue: #1071B9
- Secondary Blue: #2AAAE1
- Text Dark: #2A2B2A
- White: #FFFFFF
- Font: Open Sans
*/

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #2A2B2A;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #1071B9;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2AAAE1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #1071B9;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section--blue {
    background-color: #1071B9;
    color: #FFFFFF;
}

.section--blue h1,
.section--blue h2,
.section--blue h3,
.section--blue h4,
.section--blue h5,
.section--blue h6 {
    color: #FFFFFF;
}

.section--light {
    background-color: #f7f7f7;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    background-color: #FFFFFF;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.site-logo img,
.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-logo a,
.custom-logo-link {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1071B9;
    text-transform: uppercase;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1071B9;
    padding: 8px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2AAAE1;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1071B9;
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #2A2B2A;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 113, 185, 0.85) 0%, rgba(42, 43, 42, 0.7) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: #FFFFFF;
    text-align: center;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: #1071B9;
    color: #FFFFFF;
    border-color: #1071B9;
}

.btn--primary:hover {
    background-color: #3C8ECB;
    border-color: #3C8ECB;
    color: #FFFFFF;
}

.btn--secondary {
    background-color: #FFFFFF;
    color: #1071B9;
    border-color: #1071B9;
}

.btn--secondary:hover {
    background-color: #1071B9;
    color: #FFFFFF;
}

.btn--outline-white {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn--outline-white:hover {
    background-color: #FFFFFF;
    color: #1071B9;
}

/* ============================================
   TEAM / FOUNDERS SECTION
   ============================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-top: 48px;
}

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

.team-member__image {
    width: 250px;
    height: 320px;
    margin: 0 auto 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member__name {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1071B9;
}

.team-member__bio {
    text-align: left;
    color: #2A2B2A;
    line-height: 1.8;
}

.team-member__bio p {
    margin-bottom: 1rem;
}

/* ============================================
   SERVICES / FEATURES GRID
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.feature-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: #1071B9;
}

.feature-card__title {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.feature-card__description {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   SERVICES PAGE
   ============================================ */

.services-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.service-card {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

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

.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.service-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1071B9 0%, #2AAAE1 100%);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.service-lead {
    font-size: 1.1rem;
    color: #1071B9;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    background: #2AAAE1;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 8px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Integrations Grid */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.integration-category {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    border-top: 3px solid #2AAAE1;
}

.integration-category h4 {
    color: #1071B9;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.integration-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.integration-category li {
    font-size: 0.9rem;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.integration-category li:last-child {
    border-bottom: none;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    text-align: center;
    padding: 80px 20px;
}

.cta__title {
    margin-bottom: 24px;
}

.cta__text {
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.125rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: #1071B9;
    color: #FFFFFF;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: #FFFFFF;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo {
    max-height: 40px;
    width: auto;
}

.footer-tagline {
    font-size: 1rem;
    max-width: 300px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 32px;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

.wp-block-image {
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

/* Page content */
.page-content {
    padding: 64px 0;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 48px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero__title {
        font-size: 2rem;
    }

    .section {
        padding: 48px 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.is-active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 16px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }

    .hero {
        min-height: 400px;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.8rem;
    }
}

/* ============================================
   ANIMATION ENHANCEMENTS
   ============================================ */

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced button hover with scale */
.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Hero text reveal animation */
.hero__title {
    animation: fadeSlideUp 0.8s ease-out;
}

.hero__subtitle {
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating geometric shapes for hero */
.hero {
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.05)"><polygon points="50,5 95,27.5 95,72.5 50,95 5,72.5 5,27.5"/></svg>') no-repeat center;
    background-size: contain;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero .hero__content {
    z-index: 2;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Second floating shape */
.hero__content::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.03)"><rect x="10" y="10" width="80" height="80" rx="10"/></svg>') no-repeat center;
    background-size: contain;
    animation: float 8s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

/* Enhanced card hover state */
.feature-card,
.service-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(16, 113, 185, 0.15);
}

/* Smooth section transitions */
.section {
    transition: background-color 0.3s ease;
}

/* Header scroll effect enhancement */
.site-header {
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Nav link hover enhancement */
.main-navigation a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-navigation a:hover {
    transform: translateY(-2px);
}

/* CTA section subtle animation */
.section--blue {
    position: relative;
}

.section--blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   FEATURE CARD WITH IMAGE
   ============================================ */

.feature-card--with-image {
    text-align: center;
}

.feature-card__image {
    margin: -32px -32px 24px -32px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-card__image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
}

.feature-card--with-image:hover .feature-card__image img {
    transform: scale(1.05);
}

/* Adjust grid for cards with images */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
    
    .feature-card--with-image .feature-card__description {
        min-height: auto;
    }
}

/* Cover image style for Aurora Tech */
.feature-card__image--cover img {
    object-fit: cover;
    height: 200px;
    padding: 0;
}

/* Icon placeholder for Bespoke Development */
.feature-card__icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 16px;
    color: #1071B9;
}

.feature-card__icon-placeholder svg {
    opacity: 0.8;
}

/* Team member hover effect */
.team-member__image {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-member:hover .team-member__image {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 113, 185, 0.2);
}

/* Service card enhancements */
.service-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(16, 113, 185, 0.12);
}

/* Service tag animation */
.service-tag {
    transition: transform 0.3s ease;
}

.service-card:hover .service-tag {
    transform: scale(1.05);
}
