/* Al-tawakkal-poultryfarm home — mobile-first, every section fluid */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    width: 100%;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body.at-home {
    color: #eef5ff;
    background: #061530;
    font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img {
    max-width: 100%;
    display: block;
}

svg { display: block; max-width: 100%; }
a { color: inherit; }

.at-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 8% -8%, rgba(70, 150, 255, 0.28), transparent 55%),
        radial-gradient(760px 420px at 108% 18%, rgba(240, 196, 90, 0.16), transparent 50%),
        linear-gradient(180deg, #0a2a62 0%, #061530 48%, #0c3a7a 100%);
}

.at-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    animation: atFloat 11s ease-in-out infinite;
}

.at-orb-a {
    width: min(230px, 70vw);
    height: min(230px, 70vw);
    top: 6%;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 214, 120, 0.45), transparent 70%);
}

.at-orb-b {
    width: min(260px, 75vw);
    height: min(260px, 75vw);
    right: -90px;
    top: 42%;
    background: radial-gradient(circle, rgba(80, 170, 255, 0.35), transparent 70%);
    animation-delay: -3s;
}

.at-orb-c {
    width: min(160px, 50vw);
    height: min(160px, 50vw);
    left: 36%;
    bottom: 4%;
    background: rgba(255, 255, 255, 0.1);
    animation-delay: -6s;
}

.at-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffe8a8;
    box-shadow: 0 0 12px #ffd56a;
    animation: atRise 9s linear infinite;
}

.s1 { left: 12%; }
.s2 { left: 34%; animation-duration: 11s; animation-delay: -2s; }
.s3 { left: 58%; animation-duration: 8s; animation-delay: -4s; }
.s4 { left: 76%; animation-duration: 12s; animation-delay: -1s; }
.s5 { left: 90%; animation-duration: 7s; animation-delay: -3s; }

.at-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: max(10px, env(safe-area-inset-top, 0px))
        max(10px, env(safe-area-inset-right, 0px))
        max(28px, env(safe-area-inset-bottom, 0px))
        max(10px, env(safe-area-inset-left, 0px));
    display: grid;
    gap: 12px;
}

/* Navbar */
.at-bar {
    position: relative;
    z-index: 5;
    width: 100%;
    min-width: 0;
    animation: atDrop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.at-bar-frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 8px 10px 12px;
    background: linear-gradient(180deg, rgba(18, 58, 128, 0.96), rgba(8, 28, 72, 0.98));
    border: 1px solid rgba(255, 224, 138, 0.3);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
}

.at-bar-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, #ffe08a, transparent 40%, #5aa8ff, transparent 80%, #ffe08a);
    background-size: 220% 100%;
    animation: atBorder 5s linear infinite;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.at-bar-wave {
    display: block;
    width: 100%;
    height: 18px;
    margin-top: -1px;
    fill: #143a86;
}

.at-crest {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
}

.at-crest::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #ffe9a8, #c99220);
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
    animation: atPulse 3.2s ease-in-out infinite;
}

.at-crest img {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #061530;
}

.at-bar-copy { min-width: 0; }

.at-bar-copy strong {
    display: block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(0.62rem, 2.8vw, 0.92rem);
    line-height: 1.2;
    color: #ffe08a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.at-bar-copy small {
    display: none;
    color: #cfe0ff;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.at-bar-nav {
    display: flex;
    gap: 6px;
}

.at-nav-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 12px 20px;
    text-decoration: none;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #34d97b 0%, #16a34a 55%, #0f7a37 100%);
    box-shadow: 0 4px 10px rgba(10, 90, 40, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.at-nav-btn.is-fill {
    background: linear-gradient(135deg, #ff9f43 0%, #f97316 55%, #c2410c 100%);
    box-shadow: 0 4px 10px rgba(150, 60, 10, 0.35);
}

.at-nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.5), transparent 70%);
    transform: translateX(-130%);
    animation: atShimmer 2.6s ease-in-out infinite;
}

/* Hero */
.fx-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 18px 12px 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(240, 196, 90, 0.2), transparent 52%),
        linear-gradient(180deg, rgba(20, 64, 140, 0.9), rgba(8, 28, 72, 0.94));
    border: 1px solid rgba(255, 224, 138, 0.28);
}

.fx-hero-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0c45a;
    box-shadow: 0 0 0 6px rgba(240, 196, 90, 0.18);
    animation: atPulse 3.2s ease-in-out infinite;
}

.at-kicker {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 10px;
    border-radius: 16px 28px;
    background: rgba(255, 224, 138, 0.12);
    color: #ffe08a;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fx-hero h1 {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.35rem, 7.2vw, 2.5rem);
    line-height: 1.2;
    color: #ffe08a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.at-sub {
    margin: 0 auto 16px;
    max-width: 42ch;
    color: #d5e4ff;
    font-size: clamp(0.86rem, 3.4vw, 1.02rem);
    line-height: 1.6;
}

.at-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.at-cta-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 14px 28px;
    text-decoration: none;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.7rem;
    font-weight: 700;
}

.at-cta-btn span { position: relative; z-index: 1; }

.at-cta-btn b {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.55), transparent 70%);
    transform: translateX(-130%);
    animation: atShimmer 2.4s ease-in-out infinite;
}

.at-cta-btn.is-gold,
.at-cta-btn.is-ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.at-cta-btn.is-gold {
    background: linear-gradient(135deg, #34d97b 0%, #16a34a 55%, #0f7a37 100%);
    box-shadow: 0 6px 14px rgba(10, 90, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.at-cta-btn.is-ghost {
    background: linear-gradient(135deg, #ff9f43 0%, #f97316 55%, #c2410c 100%);
    box-shadow: 0 6px 14px rgba(150, 60, 10, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.fx-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.fx-pills li {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 224, 138, 0.25);
    color: #ffe08a;
    font-size: 0.7rem;
}

/* Cards */
.fx-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.fx-card,
.fx-rates {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, #143a86, #0a204e);
    border: 1px solid rgba(255, 224, 138, 0.28);
}

.fx-shot {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.fx-shot.is-wide { height: 190px; }

.fx-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.fx-no,
.at-live-tag {
    position: absolute;
    z-index: 2;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
}

.fx-no {
    left: 10px;
    background: linear-gradient(180deg, #ffe9a8, #e0a82a);
    color: #12351f;
    font-family: 'Cinzel', Georgia, serif;
}

.at-live-tag {
    right: 10px;
    background: rgba(6, 20, 40, 0.72);
    color: #b8ffd4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.at-live-tag::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #3ee08a;
    animation: atLivePulse 1.6s ease-out infinite;
    vertical-align: middle;
}

.fx-body { padding: 14px; }

.fx-body h2,
.fx-shot-copy h2,
.at-foot-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}

.fx-body h2,
.fx-shot-copy h2 {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    font-style: italic;
    color: #fff8e4;
}

.fx-body p,
.fx-shot-copy p {
    margin: 0 0 12px;
    color: #dce7ff;
    line-height: 1.55;
    font-size: 0.92rem;
}

.at-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 16px 28px;
    background: linear-gradient(135deg, #34d97b 0%, #16a34a 55%, #0f7a37 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 10px rgba(10, 90, 40, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    font-weight: 700;
}

.fx-shot-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 12px 12px;
    background: linear-gradient(180deg, transparent, rgba(6, 16, 40, 0.92));
}

.fx-shot-copy p { margin: 0; color: #fff; }

.fx-tickets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 10px;
    list-style: none;
}

.fx-tickets li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255, 224, 138, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 224, 138, 0.22);
}

.fx-tickets em {
    color: #e8f0ff;
    font-style: normal;
    font-size: 0.86rem;
}

.fx-tickets strong {
    color: #ffe08a;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    text-align: right;
}

.fx-marks,
.fx-foot {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20, 64, 140, 0.88), rgba(8, 28, 72, 0.94));
    border: 1px solid rgba(255, 224, 138, 0.2);
}

.fx-marks ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-marks li {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
}

.fx-ico {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(6, 21, 48, 0.45);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.fx-ico svg {
    width: 36px;
    height: 36px;
}

.fx-marks strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    color: #ffe08a;
    font-size: clamp(0.82rem, 3.4vw, 1.15rem);
}

.fx-marks small {
    color: #dce7ff;
    font-size: clamp(0.62rem, 2.6vw, 0.78rem);
}

.fx-foot {
    text-align: center;
    font-size: 0.82rem;
    color: #dce7ff;
    overflow-wrap: anywhere;
}

.fx-foot img {
    width: 54px;
    height: 54px;
    margin: 0 auto 8px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f0c45a;
}

.at-foot-brand {
    margin: 0 0 6px;
    color: #ffe08a;
    font-size: 1.15rem;
    font-style: italic;
}

[data-reveal] {
    animation: atDrop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (max-width: 359px) {
    .at-bar-frame {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .at-bar-nav {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .at-nav-btn { width: 100%; }
}

/* 360–479: slightly roomier phone */
@media (min-width: 360px) {
    .at-crest { width: 46px; height: 46px; }
    .at-crest img { width: 34px; height: 34px; }
    .at-nav-btn { min-height: 36px; padding: 0 11px; font-size: 0.66rem; }
}

/* 480+: two CTAs, show subtitle */
@media (min-width: 480px) {
    .at-wrap { padding-left: 14px; padding-right: 14px; gap: 14px; }
    .at-bar-copy small { display: block; }
    .at-cta { max-width: 420px; margin-inline: auto; }
    .at-cta-btn { min-height: 48px; font-size: 0.78rem; padding: 0 14px; }
    .fx-hero { padding: 22px 16px; }
    .fx-hero-logo { width: 88px; height: 88px; }
    .fx-shot { height: 200px; }
    .fx-shot.is-wide { height: 210px; }
}

/* 640+: two feature cards */
@media (min-width: 640px) {
    .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-marks li { padding: 16px 10px; }
    .fx-ico { width: 56px; height: 56px; }
    .at-bar-frame { padding: 10px 14px 14px; border-radius: 26px 26px 0 0; }
    .at-crest { width: 52px; height: 52px; }
    .at-crest img { width: 40px; height: 40px; }
    .at-nav-btn { min-width: 88px; min-height: 38px; font-size: 0.72rem; }
    .at-bar-wave { height: 20px; }
}

/* 900+: three cards, three tickets */
@media (min-width: 900px) {
    .at-wrap { padding: 18px 20px 40px; gap: 16px; }
    .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fx-tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fx-hero { padding: 32px 28px; border-radius: 28px; }
    .fx-hero h1 { font-size: 2.7rem; }
    .fx-shot { height: 210px; }
    .fx-shot.is-wide { height: 230px; }
}

@media (hover: hover) and (min-width: 900px) {
    .fx-card,
    .fx-rates { transition: transform 0.18s ease; }
    .fx-card:hover,
    .fx-rates:hover { transform: translateY(-4px); }
    .fx-shot img { transition: transform 0.5s ease; }
    .fx-card:hover .fx-shot img,
    .fx-rates:hover .fx-shot img { transform: scale(1.08); }
    .at-nav-btn:hover,
    .at-cta-btn:hover { transform: translateY(-2px); }
}

@keyframes atFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(16px, -20px, 0) scale(1.06); }
}

@keyframes atRise {
    0% { transform: translateY(100vh) scale(0.4); opacity: 0; }
    18% { opacity: 0.85; }
    100% { transform: translateY(-16vh) scale(1); opacity: 0; }
}

@keyframes atDrop {
    from { transform: translateY(12px); }
    to { transform: none; }
}

@keyframes atShimmer {
    0% { transform: translateX(-130%); }
    55%, 100% { transform: translateX(130%); }
}

@keyframes atPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes atBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

@keyframes atLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(62, 224, 138, 0.7); }
    100% { box-shadow: 0 0 0 8px rgba(62, 224, 138, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .at-orb, .at-spark, .at-crest::before, .at-cta-btn b, .at-nav-btn::after,
    .at-bar-frame::before, .at-live-tag::before, .fx-hero-logo,
    [data-reveal] {
        animation: none !important;
    }
}
