/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #061b3a;
    --secondary-color: #0a2d5c;
    --accent-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
}

body {
    font-family: "Graphik", Helvetica, "Lucida Sans Unicode", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-link, .social-link {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s;
}

.contact-link:hover, .social-link:hover {
    color: #d1d5db;
}

/* Header */
.header {
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    background-color: white;
    padding-top: 2.5rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}


.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.3;
    display: block;
    padding: 0px;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-light);
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 0.5rem;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    min-width: 14rem;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.nav-item:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}


.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger {
    display: block;
    width: 1.75rem;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}


.mobile-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
}

.mobile-section {
    border-bottom: 1px solid var(--border-color);
}

.mobile-section-title {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: #f9fafb;
}

.mobile-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    transition: background-color 0.3s;
}

.mobile-link:hover {
    background-color: #f9fafb;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background-image: url('newzealand.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    margin-top: 7.5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 27, 58, 0.5);
}


.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 48rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #d1d5db;
}

/* Page Header */
/* Page Header */
.page-header {
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    margin-top: 7.5rem;
}

.page-header.with-image {
    background-image: url('our-story-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-header.with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(6, 27, 58, 0.5);
    z-index: 1;
}

.page-header.with-image .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: #d1d5db;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 64rem;
    margin: 0 auto;
    line-height: 1.75;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
}

/* Content Box */
.content-box {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-medium {
    margin-bottom: 2rem;
}

.mb-large {
    margin-bottom: 4rem;
}

/* Content Sections */
.content-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 3rem;
}

.feature-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: var(--text-light);
    margin-bottom: 0;
}

.border-accent {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.highlight-box {
    background-color: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    margin: 3rem 0;
}

.highlight-box h2, .highlight-box h3, .highlight-box h4 {
    color: white;
}

.highlight-box p {
    color: #d1d5db;
}

/* Leadership Cards */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.leader-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leader-photo {
    width: 8rem;
    height: 8rem;
    background-color: #e5e7eb;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.leader-name {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.leader-title {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.leader-bio {
    color: var(--text-light);
    line-height: 1.75;
}

/* Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Form Styles */
.form-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info-box {
    margin-bottom: 2rem;
}

.contact-info-box h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info-box p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.form-box {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 27, 58, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #d1d5db;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-contact {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.social-icon {
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #d1d5db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-delay {
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

/* Carousel Styles */
.carousel-container {
    margin: 4rem 0;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
}

.carousel-button:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button-left {
    left: 20px;
}

.carousel-button-right {
    right: 20px;
}

.carousel-button svg {
    color: var(--primary-color);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: white;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .carousel-button-left {
        left: 10px;
    }
    
    .carousel-button-right {
        right: 10px;
    }
}

/* Rotating Earth */
@property --pulse {
  syntax: '<length>';
  inherits: false;
  initial-value: 80px;
}
@property --pulse2 {
  syntax: '<length>';
  inherits: false;
  initial-value: 56px;
}
@property --r {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* Header with Earth */
.header-with-earth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.header-text {
    flex: 1;
}

.page-header .earth {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 10px;
}


.earth {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-image: url(earth.jpg);
    background-repeat: repeat-x;
    background-size: cover;
    animation: earth 40s linear infinite, pulse 2s linear infinite alternate-reverse;
    box-shadow: 0 -1px 1px 1px white,
        -1px 1px 1px 1px #061b3a, 
        0 0 var(--pulse) -20px #061b3a, 
        inset 0 0 76px -10px #0a2d5c,
        inset 0 0 var(--pulse2) -10px #061b3a;
}

.earth::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 70px;
    height: 10px;
    border-radius: 45%;
    filter: blur(12px);
    transform: rotate(var(--r));
    animation: rotation 10s linear infinite;
}

.earth::before {
    width: 14%;
    box-shadow: inset 0 0 70px 90px #A47478, 
        0 0 140px 70px #A47478;
}

.earth::after {
    display: none;
}

@keyframes earth {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -199% 0;
    }
}

@keyframes pulse {
    0% {
        --pulse: 8rem;
        --pulse2: 5.6rem;
        --r: 0deg;
    }
    100% {
        --pulse: 10rem;
        --pulse2: 3.6rem;
        --r: 180deg;
    }
}

@keyframes rotation {
    from {
        --r: 0deg;
    }
    to {
        --r: 180deg;
    }
}

/* Responsive Earth */
@media (max-width: 768px) {
    .earth-container {
        height: 400px;
    }
    
    .earth {
        width: 280px;
        height: 280px;
    }
    
    .earth::after {
        left: 230px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        height: 500px;
        margin-top: 6.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .page-header {
        margin-top: 6.5rem;
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1.125rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 1.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

.header-with-earth {
        flex-direction: column;
        text-align: center;
    }
    
    .page-header .earth {
    width: 125px;
    height: 125px;
}

.earth::after {
    left: 90px;
}

}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}