/* ============================================================
   File: public/assets/css/home.css
   Landing page styles — Savinka Group / Ceylon Gems
============================================================ */


/* ============================================================
   HERO
============================================================ */
.home-hero {
    position: relative;
    min-height: 100vh;
    margin-top: calc(-1 * var(--nav-height)); /* pull behind fixed navbar */
    background: var(--forest-deep);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(201,168,76,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 20%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(201,168,76,0.11) 0%, transparent 68%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: calc(80px + var(--nav-height)) 0 80px; /* top offset compensates for navbar */
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-eyebrow-dot {
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 400;
    line-height: 1.04;
    color: var(--ivory);
    margin-bottom: 26px;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(247,243,236,0.54);
    margin-bottom: 44px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44%;
    overflow: hidden;
    pointer-events: none;
}

.hero-visual-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, #1A3D2B 0%, #0D1F15 50%, #122B1E 100%);
    position: relative;
}

.hero-visual-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--forest-deep) 0%, transparent 28%);
    z-index: 2;
}

.hero-visual-gem {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

@keyframes gemBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-22px); }
}

.hero-gem-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    mix-blend-mode: multiply;
    user-select: none;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-gem-img {
        width: clamp(240px, 55vw, 420px);
    }
}

@media (max-width: 767px) {
    .hero-gem-img {
        width: clamp(200px, 65vw, 340px);
    }
}

.hero-visual-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 30%;
    background: linear-gradient(to top, var(--forest-deep), transparent);
    z-index: 3;
}


.stat-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}


/* ============================================================
   SERVICES
============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--ivory-deep);
    border: 1px solid var(--ivory-deep);
}

.service-card {
    background: var(--ivory);
    padding: 44px 34px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    background: #fff;
    box-shadow: 0 12px 48px rgba(26,61,43,0.08);
    transform: translateY(-5px);
    z-index: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.05));
    border: 1px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    color: var(--gold);
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--forest);
    margin-bottom: 12px;
    line-height: 1.2;
}

.service-desc {
    font-size: 13.5px;
    line-height: 1.78;
    color: var(--earth);
    margin-bottom: 26px;
}

.service-link {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s;
}

.service-link svg {
    width: 13px;
    height: 13px;
    transition: transform 0.22s;
}

.service-link:hover {
    color: var(--gold);
}

.service-link:hover svg {
    transform: translateX(4px);
}


/* ============================================================
   ABOUT
============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-main {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(160deg, #1A3D2B 0%, #0D1F15 58%, #2A5040 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-map-img {
    width: 80%;
    height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 32px rgba(201,168,76,0.18))
            drop-shadow(0 2px 8px rgba(0,0,0,0.35));
    user-select: none;
    pointer-events: none;
}

.about-img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 52%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    opacity: 0.1;
    border: 1px solid rgba(201,168,76,0.25);
}

.about-img-badge {
    position: absolute;
    bottom: 20px;
    left: -14px;
    background: var(--forest);
    border: 1px solid rgba(201,168,76,0.25);
    padding: 12px 18px;
    z-index: 2;
}

.about-badge-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
}

.about-badge-label {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247,243,236,0.45);
    margin-top: 4px;
    max-width: 110px;
}

@media (max-width: 960px) {
    .about-img-badge {
        left: auto;
        right: 10px;
        bottom: 12px;
        padding: 8px 12px;
    }
    .about-badge-num   { font-size: 20px; }
    .about-badge-label { font-size: 7px; letter-spacing: 0.1em; max-width: 90px; }
}

.about-text p {
    font-size: 14.5px;
    line-height: 1.88;
    color: var(--earth-dark);
    margin-bottom: 18px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--forest);
}

.about-feature svg {
    width: 14px;
    height: 14px;
    color: var(--gold);
    flex-shrink: 0;
}


/* ============================================================
   DESTINATIONS
============================================================ */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dest-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.dest-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dest-card-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.dest-card-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.dest-card:hover .dest-card-bg {
    transform: scale(1.07);
}

.dest-card-bg-ratnapura {
    background: url('/assets/images/dest-ratnapura.jpg') center/cover no-repeat;
}

.dest-card-bg-elehara {
    background: url('/assets/images/dest-elehara.jpg') center/cover no-repeat;
}

.dest-card-bg-mitigayargoda {
    background: url('/assets/images/dest-mitigayargoda.jpg') center/cover no-repeat;
}

.dest-card-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(201,168,76,0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.dest-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,31,21,0.96) 0%, rgba(13,31,21,0.25) 55%, transparent 100%);
    z-index: 1;
}

.dest-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 36px 28px;
    z-index: 2;
}

.dest-card-distance {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.dest-card-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: var(--ivory);
    line-height: 1.1;
    margin-bottom: 12px;
}

.dest-card-desc {
    font-size: 12.5px;
    line-height: 1.72;
    color: rgba(247,243,236,0.55);
    margin-bottom: 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s ease, opacity 0.32s ease;
    opacity: 0;
}

.dest-card:hover .dest-card-desc {
    max-height: 100px;
    opacity: 1;
}

.dest-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
}

.dest-card-cta svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.dest-card:hover .dest-card-cta svg {
    transform: translateX(4px);
}

@media (hover: none), (pointer: coarse) {
    .dest-card-desc {
        max-height: 140px;
        opacity: 1;
    }
}


/* ============================================================
   GEM TYPES SHOWCASE
============================================================ */
.gems-showcase-section {
    background: var(--forest);
}

.gem-type-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.04);
}

.gem-type-card {
    padding: 30px 18px 26px;
    background: transparent;
    text-align: center;
    transition: background 0.25s, border-color 0.25s;
    border: 1px solid transparent;
    cursor: default;
}

.gem-type-card:hover {
    background: rgba(201,168,76,0.06);
    border-color: rgba(201,168,76,0.16);
}

.gem-swatch {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 14px;
    border: 2px solid rgba(201,168,76,0.22);
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.gem-type-card:hover .gem-swatch {
    border-color: rgba(201,168,76,0.55);
    box-shadow: 0 0 14px rgba(201,168,76,0.18);
}

.gem-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gem-type-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    color: rgba(247,243,236,0.75);
    margin-bottom: 4px;
    line-height: 1.2;
}

.gem-type-origin {
    font-size: 9.5px;
    color: rgba(247,243,236,0.3);
    letter-spacing: 0.07em;
}


/* ============================================================
   WHY CHOOSE US
============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--ivory-deep);
    border: 1px solid var(--ivory-deep);
}

.why-card {
    background: #fff;
    padding: 52px 48px;
    transition: background 0.25s;
}

.why-card:hover {
    background: var(--ivory);
}

.why-card-num {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 300;
    color: var(--ivory-deep);
    line-height: 1;
    margin-bottom: -14px;
}

.why-card-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--forest);
    margin-bottom: 16px;
    line-height: 1.2;
}

.why-card-desc {
    font-size: 13.5px;
    line-height: 1.82;
    color: var(--earth);
}


/* ============================================================
   TESTIMONIALS
============================================================ */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testi-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.13);
    padding: 36px 30px;
    transition: var(--transition);
}

.testi-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(201,168,76,0.26);
    transform: translateY(-4px);
}

.testi-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.testi-stars svg {
    width: 13px;
    height: 13px;
    fill: var(--gold);
    color: var(--gold);
}

.testi-quote {
    font-family: var(--font-display);
    font-size: 17.5px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.74;
    color: rgba(247,243,236,0.82);
    margin-bottom: 28px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(201,168,76,0.1);
    padding-top: 20px;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest-light), var(--forest-dark));
    border: 2px solid rgba(201,168,76,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--gold);
}

.testi-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ivory);
    line-height: 1.3;
}

.testi-location {
    font-size: 11px;
    color: rgba(247,243,236,0.36);
    margin-top: 2px;
}

.testi-gem-tag {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.09);
    padding: 4px 10px;
    border: 1px solid rgba(201,168,76,0.16);
    flex-shrink: 0;
    white-space: nowrap;
}


/* ============================================================
   EXPERT SECTION
============================================================ */
.expert-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 88px;
    align-items: center;
}

.expert-photo {
    position: relative;
}

.expert-photo-frame {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(155deg, var(--forest-dark), var(--forest-deep));
    border: 1px solid rgba(201,168,76,0.18);
    position: relative;
    overflow: hidden;
}

.expert-photo-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
}

.expert-photo-icon svg {
    width: 130px;
    height: 130px;
    color: var(--gold);
}

.expert-photo-badge {
    position: absolute;
    bottom: 22px;
    left: 22px;
    background: var(--gold);
    color: var(--forest-deep);
    padding: 8px 18px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.expert-frame-accent {
    position: absolute;
    top: -8px; right: -8px;
    bottom: 8px; left: 8px;
    border: 1px solid rgba(201,168,76,0.16);
    pointer-events: none;
}

.expert-credential {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--ivory-deep);
    font-size: 13px;
    color: var(--forest);
    font-weight: 500;
    margin-bottom: 10px;
}

.expert-credential svg {
    width: 15px;
    height: 15px;
    color: var(--gold);
    flex-shrink: 0;
}


/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-list-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-list-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-list-icon svg {
    width: 15px;
    height: 15px;
}

.contact-list-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.contact-list-value {
    font-size: 14px;
    color: rgba(247,243,236,0.68);
    line-height: 1.65;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

a.contact-list-value:hover {
    color: var(--gold);
}

.contact-map {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.12);
    aspect-ratio: 1 / 0.72;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
}

.contact-map svg {
    width: 34px;
    height: 34px;
    color: rgba(201,168,76,0.22);
}

.contact-map-label {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(247,243,236,0.16);
}

.contact-map-sub {
    font-size: 11px;
    color: rgba(201,168,76,0.2);
    letter-spacing: 0.07em;
}

.contact-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.contact-actions .btn {
    flex: 1;
    text-align: center;
}


/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 45%, var(--gold-light) 75%, var(--gold) 100%);
    background-size: 200% auto;
    padding: 88px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(26,61,43,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

.cta-banner-inner {
    position: relative;
    z-index: 1;
}

.cta-banner-company {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(13,31,21,0.52);
    margin-bottom: 14px;
}

.cta-banner-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--forest-deep);
    margin-bottom: 16px;
    line-height: 1.1;
}

.cta-banner-sub {
    font-size: 14.5px;
    color: rgba(13,31,21,0.58);
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-banner-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .expert-grid { grid-template-columns: 300px 1fr; gap: 56px; }
    .about-grid  { gap: 56px; }
}

@media (max-width: 960px) {
    .hero-visual     { display: none; }
    .services-grid   { grid-template-columns: repeat(2, 1fr); }
    .gem-type-grid   { grid-template-columns: repeat(4, 1fr); }
    .about-grid      { grid-template-columns: 1fr; gap: 48px; }
    .about-visual    { max-width: 440px; margin: 0 auto; }
    .dest-grid       { grid-template-columns: 1fr 1fr; }
    .dest-grid > :nth-child(3) { grid-column: span 2; }
    .dest-grid > :nth-child(3) .dest-card { aspect-ratio: 16/7; }
    .testi-grid      { grid-template-columns: 1fr 1fr; }
    .testi-grid > :last-child { grid-column: span 2; }
    .why-grid        { grid-template-columns: 1fr 1fr; }
    .expert-grid     { grid-template-columns: 1fr; }
    .expert-photo    { max-width: 340px; margin: 0 auto; }
    .contact-grid    { grid-template-columns: 1fr; gap: 48px; }
    .stat-strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 740px) {
    .services-grid { grid-template-columns: 1fr; }
    .gem-type-grid { grid-template-columns: repeat(3, 1fr); }
    .dest-grid     { grid-template-columns: 1fr; }
    .dest-grid > :nth-child(3) { grid-column: auto; }
    .dest-grid > :nth-child(3) .dest-card { aspect-ratio: 3/4; }
    .dest-card-desc { max-height: 140px; opacity: 1; }
    .testi-grid    { grid-template-columns: 1fr; }
    .testi-grid > :last-child { grid-column: auto; }
    .why-grid      { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .service-card   { padding: 36px 28px; }
    .why-card       { padding: 40px 32px; }
}

@media (max-width: 560px) {
    .hero-content      { padding: 60px 0; }
    .hero-actions      { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { text-align: center; }
    .gem-type-grid     { grid-template-columns: repeat(2, 1fr); }
    .stat-strip-grid   { grid-template-columns: repeat(2, 1fr); }
    .cta-banner        { padding: 64px 0; }
    .cta-banner-actions { flex-direction: column; align-items: center; }
    .contact-actions   { flex-direction: column; }
}
