:root {
    --teal: #215C58;
    --teal-btn: #229088;
    --offwhite: #FCF7F3;
    --gold: #F8C830;
    --footer: #0D2825;
    --dark: #1C1C1C;
    --mid: #666666;
    --border: #E0DADA;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────────── */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.site-nav .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.site-nav .brand img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: 0.02em;
}

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

/* ── FIRST VIEWPORT (nav + hero + prayer = 100vh) */
.first-view {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Dark fallback in case image doesn't load */
    background: #1a2c28;

    background: url('https://emccs.ca/wp-content/uploads/2026/04/intirior.jpg') center/cover no-repeat;
	background-attachment: fixed;
}
@media (max-width: 767px){
	.hero {
		background-size: auto 100%;
	}
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background: #01100F;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 24px;
}

.hero-welcome {
    font-size: 2rem;
    font-weight: 200;
    line-height: 1.3;
    margin-bottom: 0;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -1px;
}

/* ── PRAYER BAR ───────────────────────────────── */
.prayer-bar {
    background: var(--offwhite);
    flex-shrink: 0;
    overflow: visible;
    /* allow countdown pill to protrude upward */
}

.prayer-inner {
    display: flex;
    align-items: stretch;
}

.prayer-date {
    padding: 22px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    min-width: 180px;
}

.prayer-date .day {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 0.8;
}

.prayer-date .date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--teal);
    margin-top: 10px;
    line-height: 0.8;
}

.prayer-date .hijri {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mid);
    margin-top: 10px;
    line-height: 0.8;
}

.prayer-slots {
    display: flex;
    flex: 1;
    background: #fff
}

.prayer-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    border-left: 1px solid var(--border);
    text-align: center;
    position: relative;
}

/* Active prayer — teal left & top border */
.prayer-slot.is-next {
    /*border: 3px solid var(--teal-btn);*/
    position: relative;
    background: #d5f5f2;
background: linear-gradient(144deg, rgba(213, 245, 242, 1) 0%, rgba(242, 255, 254, 1) 43%, rgba(242, 255, 254, 1) 64%, rgba(232, 252, 251, 1) 100%);
}

.countdown-badge {
    background: var(--teal-btn);
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    padding: 1px 14px;
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    white-space: nowrap;
}

.prayer-slot .p-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    line-height: 1;
    margin-top: 20px;
}

.prayer-slot .p-icon img {
    width: 40px;
}

.prayer-slot .p-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 0px;
}

.prayer-slot .p-iqama {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.prayer-slot .p-athan {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mid);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* ── ABOUT ────────────────────────────────────── */
.about-section {
    background: var(--teal);
}

.about-text-col {
    padding: 90px 60px 90px 0;
    display: flex;
    align-items: center;
    /* Indent text as if in container */
    padding-left: calc((100vw - 1320px) / 2 + 12px);
}

.about-text-col p {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
}

.about-photo-col {
    background: #888 center/cover no-repeat;
    /* replace with actual image URL below */
    background-image: url('../img/prayer.jpg');
    min-height: 480px;
    position: relative;
}

.about-photo-col:before {
	content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background: #022926;
}

/* ── JOIN ─────────────────────────────────────── */
.join-section {
    background: var(--offwhite);
    padding: 100px 0;
}

.join-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.join-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--mid);
    line-height: 1.2;
    max-width: 440px;
    margin: 0 auto 40px;
}

.join-form .form-control,
.join-form .form-select {
    border: 1px solid #BFBAB5;
    border-radius: 10px;
    padding: 13px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    box-shadow: none;
    color: var(--dark);
}

.join-form .form-control::placeholder {
    color: #AAAAAA;
}

.join-form .form-control:focus,
.join-form .form-select:focus {
    border-color: var(--teal-btn);
    box-shadow: 0 0 0 3px rgba(34, 144, 136, 0.12);
}

.btn-join, .wpcf7-submit {
    background: var(--teal-btn);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 80px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.2s;
    display: inline-block;
    margin-top: 25px;
    cursor: pointer;
}

.btn-join:hover , .wpcf7-submit:hover{
    background: var(--teal);
}

/* ── DONATION ─────────────────────────────────── */
.donate-section {
    background: #fff;
    overflow: hidden;
}

.donate-row {
    min-height: 300px;
}

.donate-left {
    padding:  0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.donate-left h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 5px;
}

.donate-left p {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--mid);
    max-width: 460px;
    padding: 0;
    border: none;
}

/* Teal panel — clip-path creates the diagonal left edge */
.donate-right {
    background: var(--teal);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5rem;
}

.donate-right .donate-label {
    font-size: 0.88rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0;
}

.donate-right .donate-email {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    word-break: break-all;
    line-height: 1.2;
}

.donate-row .about-text-col{
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/* ── FOOTER ───────────────────────────────────── */
.site-footer {
    background: var(--footer);
    padding: 26px 0;
    text-align: center;
}

.site-footer p {
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 72px;
    }

    .hero-welcome {
        font-size: 36px;
    }

    .about-text-col {
        padding-left: 48px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 52px;
    }

    .hero-welcome {
        font-size: 28px;
    }

    .about-text-col {
        padding: 60px 32px;
    }

    .donate-right {
        clip-path: none;
        padding: 60px 32px;
    }

    .pray-slots {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 38px;
    }

    .hero-welcome {
        font-size: 22px;
    }

    .nav-links {
        gap: 16px;
    }

    .prayer-date {
        min-width: 120px;
        padding: 16px;
    }

    .prayer-slot .p-iqama {
        font-size: 1rem;
    }

    .prayer-slot {
        padding: 12px 6px;
    }

    .donate-left {
        padding: 60px 0 40px;
    }
    .donate-right .donate-email {
	    font-size: 1.8rem;
	}
	.donate-right .donate-label {
	    font-size: 1rem;
	    margin-bottom: 10px;
	    text-align: center;
	}
}

@media (max-width: 575px) {
    .nav-links {
        display: none;
    }

    .prayer-slots {
        flex-wrap: wrap;
    }

    .prayer-slot {
        min-width: 50%;
    }
}

/* ── RESPONSIVE: PRAYER BAR MOBILE ───────────────── */
@media (max-width: 767px) {

  /* Date becomes its own full-width row */
  .prayer-inner {
    flex-direction: column;
  }

  .prayer-date {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-width: 100%;
    padding: 14px 20px;
  }

  .prayer-date .day  { font-size: 1.1rem; line-height: 1; }
  .prayer-date .date { font-size: 0.6rem; margin-top: 0; }
  .prayer-date .hijri{ font-size: 0.6rem; margin-top: 0; 
    font-weight: 700;}
  .prayer-date .hijri:before{
  	content: '|';
  	padding-right: 10px;
  }

  /* Slots scroll horizontally */
  .prayer-slots {
    overflow-x: auto;
    overflow-y: visible;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding-top: 8px; /* room for countdown badge */
  }

  .prayer-slots::-webkit-scrollbar { display: none; }

  .prayer-slot {
    flex: 0 0 140px;
    scroll-snap-align: center;
    border-left: 1px solid var(--border);
  }

  /* Keep active slot badge visible above the bar */
  .prayer-slot.is-next {
    scroll-snap-align: center;
  }

  .countdown-badge {
    font-size: 1rem;
    padding: 2px 10px;
  }
}

/* ── RESPONSIVE: ABOUT ───────────────────────────── */
@media (max-width: 991px) {
  .about-text-col {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Photo stacks below text, fixed height */
  .about-photo-col {
    min-height: 300px;
  }
}

/* ── RESPONSIVE: DONATION ────────────────────────── */
@media (max-width: 991px) {
  .donate-right {
    clip-path: none;
    padding: 60px 32px;
  }
}

@media (max-width: 767px) {
  .donate-row .about-text-col {
    padding: 48px 20px 32px;
  }
}

/* CF7 resets */
.wpcf7 { margin: 0; padding: 0; }
.wpcf7 form { margin: 0; }
.wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 10px 16px !important;
  border-radius: 4px !important;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
}
/* CF7 adds a span wrapper around inputs — make it full width */
.wpcf7 span.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-spinner{
    display: block !important;
    margin-top: 5px !important;
}

.join-form p{
    margin-bottom: 0 !important;
}


.site-footer a{
    color: #ddd;
    text-decoration: none;
}

/* ── MOBILE: first-view height fix ───────────────── */
@media (max-width: 767px) {

  /* Let content breathe instead of hard locking to 100vh */
  .first-view {
    height: auto;
    min-height: 100vh;
  }

  /* Give hero a sensible minimum so it still feels full-screen */
  .hero {
    min-height: 52vh;
  }

  /* Compact the date row so it takes less vertical space */
  .prayer-date {
    padding: 10px 16px;
    gap: 6px;
  }

  .prayer-date .day  { font-size: 1rem; }
  .prayer-date .date { font-size: 0.82rem; margin-top: 0; }
  .prayer-date .hijri{ font-size: 0.72rem; margin-top: 0; }

  /* Compact slot height */
  .prayer-slot {
    padding: 10px 6px;
  }

  .prayer-slot .p-icon img {
    width: 28px;
  }

  .prayer-slot .p-name   { font-size: 1rem; }
  .prayer-slot .p-iqama  { font-size: 1rem; }
  .prayer-slot .p-athan  { font-size: 0.65rem; }

  .countdown-badge {
    font-size: 0.72rem;
    padding: 2px 10px;
  }
}