/* Global styles */

html, body {
    font-size: clamp(16px, 1vw + 0.5rem, 21px);
}
@font-face {
    font-family: 'Gotham-Ultra';
    src: url("../fonts/Gotham-Ultra.woff2") format("woff2"),
         url("../fonts/Gotham-Ultra.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Raleway-Bold';
    src: url('../fonts/Raleway-Bold.woff2') format('woff2'),
         url('../fonts/Raleway-Bold.woff') format('woff'),
         url('../fonts/Raleway-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
@font-face {
  font-family: 'Raleway-Regular';
  src: url('../fonts/Raleway-Regular.woff2') format('woff2'),
       url('../fonts/Raleway-Regular.woff') format('woff'),
       url('../fonts/Raleway-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Raleway-Black';
  src: url('../fonts/Raleway-Black.woff2') format('woff2'),
       url('../fonts/Raleway-Black.woff') format('woff'),
       url('../fonts/Raleway-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
h1 {
    font-family: 'Raleway-Black';
    font-size: 4rem;
    text-transform: uppercase;
}
h2, h3 {
    font-family: 'Raleway-Bold';
    font-size: 1.3rem;
    margin: 0.5rem 0rem 0.5rem 0rem;
}
a {
    font-family: 'Raleway-Bold';
    font-size: 1rem;
}
p {
    font-family: 'Raleway-Regular';
    font-size: 1rem;
    margin: 0.5rem 0rem 0.5rem 0rem;
}
.section-title {
    padding: 5rem 0rem 0rem;
    font-family: 'Raleway-Black';
    font-size: 3rem;
    text-transform: uppercase;
    grid-column: 1 / -1; /* span all columns */
}
.link-back {
    text-decoration: none;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 40px;
    pointer-events: none;
    transform-origin: center;
    transform: rotate(-30deg) scale(var(--cursor-scale)); /* Separate rotation & scale */
    z-index: 9999;
    --cursor-scale: 1; /* Default scale */
}

/* Apply spin effect **only** to the red rectangle */
.red-rect {
    transform-origin: 8px 8px; /* Half of width and height (16px / 2) */
    animation: spinEffect 3s infinite linear;
    transition: transform 0.5s ease-in-out;
}

/* Keep the grey rectangle static */
.grey-rect {
    transform-origin: center;
}

/* Animation: First 1.5s still, then spin 3 times & scale */
@keyframes spinEffect {
    0%, 50% { transform: rotate(-28deg) scale(1); } /* Still state */
    75% { transform: rotate(342deg) scale(1.5); }  /* 720° rotation */
    100% { transform: rotate(712deg) scale(1); } /* Ends at 720° (2 full rotations) */
}

/* Hide the default cursor on links */
a, button, input, textarea, select {
    cursor: none !important;
}

body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    background: #d0e6e7;
}

/* ==== BODY FIX TO PREVENT SCROLLING WHEN MENU IS OPEN ==== */
body.menu-open {
    overflow: hidden;
}

/* ==== GRID LAYOUT FOR PAGE CONTAINER ==== */
.container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
}

/* ==== FLEXBOX FOR HEADER ==== */
.header {
    width: 100vw; /* Ensure full width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(200, 200, 200, 0);
    color: white;
    padding: 20px;
    position: relative;
    z-index: 20;
}
.header-container {
    /* max-width: 1200px;  Adjust width to match other containers */
    max-width: 100vw;
    width: 49vw;
    margin: 0 auto; /* Center the content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Add some inner padding */
}

/* ==== HAMBURGER MENU BUTTON ==== */
.menu-toggle {
    font-size: 30px;
    display: block;
    background: none;
    border: none;
    color: #252525;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
/* Rotate the hamburger icon when active */
.menu-toggle.active {
    transform: rotate(90deg);
}

/* ==== OVERLAY (BACKGROUND CLICK AREA) ==== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Force black overlay */
    
    /* Instead of display: none, use visibility */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Keep transition on opacity only */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

    z-index: 15;
}

/* ✅ Overlay only appears when menu is active */
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==== NAVIGATION MENU ==== */
.nav {
    flex-grow: 1;
    text-align: right;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-links li {
    padding: 15px 20px 15px 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
}

/* ==== RESPONSIVE NAVIGATION FOR SMALL SCREENS ==== */
@media (max-width: 768px) {
    .header-container {
        width: 85vw;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; /* Fix at the very top */
        right: 0; /* Initially off-screen */
        height: 100vh; /* Full height */
        width: 80vw; /* Extends to 80% of screen width */
        padding-top: 60px; /* Push menu items below header */
        background: #222;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(100%); /* Use transform instead of right */
        transition: transform 0.3s ease-in-out;
        z-index: 20; /* Ensure it stays above other content */
    }

    .nav-links.active {
        transform: translateX(0); /* Slide menu in */
    }

    .nav-links li {
        text-align: left;
        padding: 15px 15px 15px 30px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    /* Fade-in effect for menu items */
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* ==== CLOSE BUTTON INSIDE MENU ==== */
    .menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 1.7rem;
        cursor: pointer;
        transition: transform 0.3s ease-in-out;
        opacity: 0; /* Initially hidden */
        pointer-events: none; /* Prevent interaction when hidden */
    }
    /* Show close button only when menu is active */
    .nav-links.active .menu-close {
        opacity: 1;
        pointer-events: auto; /* Make clickable */
    }

    .menu-close:hover {
        transform: scale(1.1);
    }
}

/* ==== DESKTOP MENU STYLES (Wide Screens) ==== */
@media (min-width: 769px) {
    /* Hide menu items and close button by default */
    .nav-links {
        display: none !important;
    }

    .menu-close {
        display: none !important;
    }

    /* ✅ Keep the menu hidden until activated */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px; /* Adjust width if needed */
        background: #222;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 20;
    }

    /* ✅ Make sure the menu slides in when active */
    .nav-links.active {
        transform: translateX(0);
        text-align: left;
    }

    /* ✅ Ensure the close button (`✖`) appears when menu is open */
    .nav-links.active .menu-close {
        position: static;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        transition: transform 0.3s ease-in-out;
        display: block !important;
        text-align: right;
    }
}

/* ==== MAIN CONTENT AREA ==== */
.content {
    padding: 20px;
    text-align: center;
}

/* ==== FLEXBOX FOR INTRO SECTION ==== */
.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==== CSS GRID FOR FEATURE SECTION ==== */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
/* Narrow + centered layout just for sections that need it */
.grid-section.grid-center {
    /* 3 columns: gutter | content | gutter */
    display: grid;
    grid-template-columns: 1fr minmax(340px, 960px) 1fr;
    gap: 20px;
}

/* Put both title and form in the middle column */
.grid-section.grid-center .section-title,
.grid-section.grid-center .grid-item {
  grid-column: 2;     /* center column */
}

.grid-item {
    background: rgba(200, 200, 200, 0);
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-family: 'Raleway-Regular';
}

/* ==== FLEXBOX FOR FOOTER ==== */
.footer {
    text-align: center;
    background: rgba(200, 200, 200, 0);
    color: rgb(0, 0, 0);
    padding: 15px;
}
/* ==== CONTACT FORM RELATED ==== */
:root{
    --fld-h: 66px;           /* default input height */
    --btn-min-w: 0px;        /* default */
    --gap: 14px;             /* gap between fields */
    --pad: 12px;             /* inner padding */
    --radius: 12px;          /* rounded corners */
    --border: 1px;           /* border width */
    --focus: 2px;            /* focus ring width */
    --shadow: 0 6px 18px rgba(0,0,0,.06);
    --ok: #0ea5e9;           /* primary (matches your theme) */
    --err: #ef4444;          /* error */
    --muted: #6b7280;
    --bg: #fff;
    --ink: #0f172a;
    --ink-muted: #334155;
}
  /* Layout container for the whole form */
.form {
    display: grid;
    grid-template-columns: 1fr;     /* 1 column on mobile */
    gap: var(--gap);
}
  /* Group each label+field+help into a row */
.form-row {
    display: grid;
    gap: 6px;
}
/* Two-up fields (e.g., name + email) on larger screens */
@media (min-width: 768px) {
    .form.grid-2 { grid-template-columns: 1fr 1fr; }    /* opt-in 2-col mode */
    .form.grid-2 .field-full { grid-column: 1 / -1; }   /* force full width */
}
/* Labels */
.form label {
    font-size: .95rem;
    color: var(--ink-muted);
}
/* Inputs (covers input, select, textarea without requiring widget classes) */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="url"],
.form input[type="number"],
.form input[type="search"],
.form select,
.form textarea {
  font: inherit;
  height: var(--fld-h);
  padding: var(--pad) calc(var(--pad) + 2px);
  border: var(--border) solid #e5e7eb;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Textarea is taller and resizable vertically only */
.form textarea {
  min-height: 140px;
  height: auto;
  resize: vertical;
}

/* Hover / focus */
.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: #d1d5db;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--ok);
  box-shadow: 0 0 0 var(--focus) color-mix(in srgb, var(--ok) 25%, transparent);
}

/* Help + error messages */
.form .help {
  font-size: .85rem;
  color: var(--muted);
}
.form .errorlist,
.form .field-error {
  margin: 2px 0 0;
  color: var(--err);
  font-size: .85rem;
}

/* Apply red border when wrapper has .is-error */
.form-row.is-error input,
.form-row.is-error select,
.form-row.is-error textarea {
  border-color: var(--err);
  box-shadow: 0 0 0 var(--focus) color-mix(in srgb, var(--err) 20%, transparent);
}

/* Actions row */
.form .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* Button */
.grid-section.grid-center { 
    --btn-min-w: 240px;
  }
  /* 3) Optional: full-width on narrow screens */
@media (max-width: 520px) {
    .actions .btn { width: 100%; }
  }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--fld-h);
  min-width: var(--btn-min-w);
  padding: 0 18px;
  border-radius: var(--radius);
  border: 0;
  background: var(--ok);
  color: white;
  font: inherit;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Loading state for button (add .is-loading + disabled in JS) */
.btn.is-loading {
  position: relative;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg);} }

/* Success / notice blocks */
.notice {
  padding: 12px 14px;
  border-radius: calc(var(--radius) - 2px);
  background: #ecfeff;
  color: #155e75;
  border: 1px solid #cffafe;
}

/* Honeypot: keep in DOM, out of viewport */
.hp-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

  